5. Logic Design Flashcards

1
Q

Why do we use binary (on/off) as opposed to ternary (full, half, off)?

A

The computer could misread a shift from off to full as a half state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is meant by a combinational logic circuit?

A

A circuit whose output only depends on the current inputs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is meant by a sequential logic circuit?

A

A circuit whose outputs depends on the current inputs and previous inputs (requires memory).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give three examples of minimally functionally complete gates.

A

Any from:
{AND, NOT}
{OR, NOT}
{NAND}
{NOR}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A multiplexer takes in three inputs, a, b and S.
When S is on, value a is outputted. When S is off, value b is outputted.

What is the simplified combinational circuit for a multiplexer?

A

a.S + b.{not S}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Construct a 1 bit adder for an arithmetic n-bit adder.

A

The adder requires three inputs (a,b and a carry c) and two outputs (the sum s and the output carry o).

Then, considering the sum and carry independently,

s = ~a.~b.~c + ~a.b.~c + a.~b.~c + a.b.c
c = b.c + a.c + a.b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain how a ripple carry adder is formed, stating the minimum total gate time for an 8-bit adder.

A

A ripple carry adder is made up of a set of 1-bit adders.

Minimum adder is:
bit 1 is half-adder: 2 gates
bit 2-7 is full adders: 3 gates * 6 = 18 gates
bit 8 is adder (but no carry) : 2 gates.

Thus, total is 22 gates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What affects the propagation delay?

A

The technology, delay through each gate and number of gates driven by a gate’s output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If there are n feedback signals in a sequential logic circuit, how many states are there possible?

A

2n states

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A sequential circuit with an original input and a feedback input OR’ed together has what function?

A

Outputs 1 if there has ever been a 1 given to the circuit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a NOR SR-latch, what happens when IN1 has the following sequence of bits passed to it: 0110?

[Assume IN1, IN2 and OUT2 are 0 to begin]

A

0: No change
1: OUT1 -> 0, OUT2 -> 1
1: No change
0: No change

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In a NOR SR-latch, with a reset, set and outputs Q and ~Q, what does setting the reset line to 1 do?

A

Setting the reset line sets Q to be 0 (likewise the set line sets it to 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give an example of a circuit that causes a glitch due to asynchronicity.

A

(~~~a).a

To begin, a is 0, so ~~~a is 1. When a 1 signal is sent in, a becomes 1, and so the output is 1. Then, the ~~~a becomes 0 and it quickly flicks back to 0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How are glitches prevented in a SR-latch?

A

A clock is added (set of ands between the dividing ‘NOT’ and the latch itself).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

State the common name for a clocked SR latch?

A

D flip-flop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Compare the level-triggered D flip-flop and edge-triggered D flip-flop.

A

The level-triggered D flip-flop has D propagated to Q when the clock is 1.

The edge-triggered D flip-flop has D propagated to Q on a positive clock edge.

17
Q

How are registers created in logic?

A

Multiple D flip-flops together using a common clock.

18
Q

What is the process for implementing an FSM?

A
  • Choose encoding for states (e.g S0 = 00, …, )
  • Build truth table for next state s1’, s0’ and output z
  • Generate logic equations for s1’, s0’ and z.
  • Design combination logic from logic equations and add state-holding register.