Sequential Logic - Week 11 Flashcards

(28 cards)

1
Q

What distinguishes sequential logic from combinational logic?

A

Sequential logic has feedback, meaning outputs depend on current inputs and previous inputs (the system has state).

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

What causes a sequential system to have state?

A

The output of a gate is fed back as input to an earlier gate, so past inputs influence current outputs.

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

What are the inputs and outputs of an SR latch?

A

Inputs: S (Set), R (Reset). Outputs: Q and Q′ (complements).

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

What logic gates are used to build a basic SR latch?

A

Two NOR gates connected with feedback.

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

What does the SR latch store?

A

One bit of memory — the value of Q.

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

What happens when S = 0 and R = 0 in an SR latch?

A

Lower NOR inputs: (Q, S) = (previous Q, 0) → Q′ becomes the complement of Q ( Q’ = 1)

Upper NOR inputs: (R, Q′) = (0, complement of Q) → Q remains the same
Therefore the latch holds its previous state.

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

What happens when S = 1 and R = 0 in an SR latch?

A

Lower NOR inputs: (Q, S) = (anything, 1) → Q′ = 0

Upper NOR inputs: (R, Q′) = (0, 0) → Q = 1
Therefore the latch sets: Q becomes 1.

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

What happens when S = 0 and R = 1 in an SR latch?

A

Upper NOR inputs: (R, Q′) = (1, anything) → Q = 0

Lower NOR inputs: (Q, S) = (0, 0) → Q′ = 1
Therefore the latch resets: Q becomes 0.

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

Why is the input combination S = 1 and R = 1 not allowed in an SR latch?

A

Both Q and Q′ become 0, violating the rule that they should be a complement of each other.

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

What is a characteristic table in the context of latches?

A

A truth table showing the next state (Qₙ₊₁) given inputs and current state (Qₙ).

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

Why are SR latches considered asynchronous?

A

They change state immediately when inputs change; no clock controls transitions.

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

Why can asynchronous SR latches be problematic in larger circuits?

A

Output may depend on the order/timing of input changes, causing nondeterministic behaviour.

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

How does an inverted SR latch differ from a NOR-based SR latch?

A

It uses NAND gates and is active-low: S = 0 sets, R = 0 resets.

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

What input combination is forbidden in an inverted SR latch?

A

S = 0 and R = 0 simultaneously.

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

What are the two main problems with simple SR latches?

A

They are asynchronous

Non-deterministic transitions associated with certain inputs

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

How do we solve asynchronous transition issues in latches?

A

Add a clock to create a gated latch or flip-flop.

17
Q

How do we avoid nondeterministic transitions in SR latches?

A

Add gates to control inputs or use a different flip-flop design.

18
Q

What is the purpose of adding a clock to a latch?

A

To synchronise state transitions across sequential circuits.

19
Q

What are the three flip-flop types introduced in the lecture?

A

SR, D, and J-K flip-flops.

20
Q

How does a clocked SR flip-flop differ from a simple SR latch?

A

It only responds to S and R when the clock signal is active.

21
Q

What is another name for the clocked SR flip-flop?

A

Gated SR latch.

22
Q

Why was the D flip-flop introduced?

A

To eliminate the invalid S = 1, R = 1 condition in SR flip-flops.

23
Q

How does the D flip-flop ensure S and R are always different?

A

It uses an inverter so the two inputs to the internal gates are always opposite.

24
Q

What does the D in D flip-flop stand for?

A

Data or Delay.

25
What does a D flip-flop store?
The most recent value applied to the D input.
26
Why is the D flip-flop called a delay flip-flop?
It outputs the input value one clock pulse later.
27
What special behaviour does the J-K flip-flop allow?
It uses the (1,1) input combination to toggle the output.
28
Why is the J-K flip-flop called a universal flip-flop?
It can behave like an SR flip-flop or a D flip-flop