L5-6 Combinational Logic & Sequential Logic Flashcards

1
Q

Define combinational circuits.

A

Outputs depend only on current inputs. Memoryless.

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

Define sequential circuits.

A

Outputs depend on both current and previous values of the inputs. Circuits with memory.

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

Define timing specification.

A

Specifies the lower and upper bounds on the delay from input to output.

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

Define functional specification.

A

Expresses o/p values in terms of current input values.

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

Define minterm.

A

Product involving all of the inputs to the function.

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

Define maxterm.

A

Sum involving all of the inputs to the function.

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

What do multiplexers (mux) do?

A

Allow user to choose between multiple inputs.

-2^k input bits and k select bits.

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

What do decoders do?

A

Decoders select one o/p bit to be high and the rest to be low. k input bits produce to k output bits.

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

How do you create a simple bistable element?

A

Connect two NOT gates (inverters) back-to-back/ criss-cross, with feedback. //This will produce a sequential circuit//

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

Problems with bistable circuits?

A

Can’t be reset/ no input/ no user control.

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

What does the S-R latch change about the simple bistable circuit?

A

Replaces NOT gates with NOR gates and adds a set and reset for user control.

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

What happens when S-R Latch is reset and set to 0?

A

Output, Q, will equal Qprev i.e. memory state.

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

What happens when S=1 and R=1?

A

The system can’t choose whether the output will be 1 or zero and states begin to contradict. Don’t set both to 1.

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

How would you improve the SR Latch?

A

Make it a D-Latch. This will prevent S and R being 1 simultaneously.

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

What does ‘D’ do in the D-Latch?

A

Controls what the state should be.

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

What does ‘CLK’ do in the D-latch?

A

Controls when the state should change.

17
Q

What happens when the CLK is set to 0?

A

System becomes opaque and D cannot be set.

18
Q

What are the problems with the D Latch?

A

Updates its state continuously when CLK=1. //It’s often useful to update state only at specific time//

19
Q

How would you improve D-Latch?

A

Make it a D-Flip flop.

20
Q

What is a D-FF composed of?

A

Back-to-back D latches controlled by complementary clocks.

21
Q

How does a D-FF work?

A

CLK is set to 0 so master is transparent and slave is translucent. Signal is set as D=1 and this propagates to Q then through to N1,
CLK is then set to 1 so master becomes opaque and slave transparent, so N1 propagates from D to Q in the slave FF.
Therefore, what was copied into Q is what was there in D when the CLK went from 0 to 1.

22
Q

What is the rising edge time?

A

The moment when the CLK rises from 0 to 1 and when the value gets copied from D to Q in the DFF.

23
Q

What are registers composed of?

A

N-bit register is a bank of N flip-flops that share a common CLK.

24
Q

Problems for sequential circuits?

A
  1. ) Astable circuits- i/p and o/p keep changing.
  2. ) Race conditions- delays through different components mean information doesn’t get passed to the tight place in time (or passed too fast)
    - The o/p will become stuck.
25
Q

How do you improve a sequential circuit?

A

Create a synchronous sequential circuit by splitting the cyclic path by inserting registers. //E.g. FSM//

26
Q

What is a FSM composed of?

A

A circuit with k registers, next state logic and output logic.
-Register can be in one of 2^k states and stores the state.

27
Q

What are the two types of synchronous sequential circuits (i.e. FSMs)?

A

Moore Machine and Mealy Machine.

28
Q

What is the difference between a Moore Machine and Mealy Machine?

A

Output depends only on current state for Moore machine whilst a Mealy machine’s output depends on current state and current input.