Chapter 3 Flashcards

1
Q

What are latches?

A

Latches are bistable memory devices which are level
sensitive.

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

Draw SR Latch.

A

Two NOR Gates one takes S as input and output of other NOR gate.
Other takes R as input and output of original NOR GATE.

The first outputs !Q
The second outputs Q

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

Explain instruction set for SR latch.

A

SET (S = 1, R = 0) Q is high
RESET (S=0, R=1) Q is low
Memory Mode (S=0, R=0) Q does not change
Invalid (S=1, R=1)

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

Give truth table for ‘S’R latch using NAND gates.

A

‘S ‘R Q ‘Q
1 1 NC NC (No change)
0 1 1 0 (set)
1 0 0 1 (reset)
0 0 1 1 (invalid)

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

How does gated SR latch differ from SR latch?

A

If enable is on transparent, Q follows S and R, if off memory mode Q doesn’t change.

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

How does D latch build on gated SR latch?

A

Input D is S and negation of same input is R making it impossible for them to be the same.

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

What are flip-flops?

A

Flip-flops are synchronous bistable memory devices. The output of synchronous devices only changes state on the edge of a triggering control input.

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

What is the clock?

A

The clock is a signal which oscillates between 0 and 1 at a
fixed rate.

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

Differentiate between positive edge and negative edge.

A

Positive edge is when clock rises from 0 to 1.
Negative edge is when clock falls from 1 to 0.

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

How is a Gated SR latch adapted to an SR flip-flop?

A

There are two joined together.

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

Explain master-slave latch theory.

A

When clock is low, master is transparent and the slave is in memory mode.
When clock changes level the latches flip mode.
When clock goes from low to high a latch captures in the current input.

So when clock goes up master stores input, slave transparent.
When clock goes down master is transparent, slave stores master’s input.

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

How does a D-flip flop differ from an SR flip-flop?

A

Input D into S and !D into R.

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

How does a JK flip-flop differ from an SR flip-flop?

A

Input J and output !Q goes into S.
Input K AND output Q goes into R.

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

Explain how T flip-flop differs from JK flip-flop.

A

Input T is put into both J and K. So T = 0, no change and T = 1 toggle.

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

How is a flip flop converted into a negative edge flip-flop?

A

Negate clock signal.

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

Define a synchronous circuit.

A

Every circuit element is a flipflop or combinational circuit.
At least one circuit element is a flipflop
All flipflops receive the same clock signal.
Every cyclic path contains at least one flipflop.

17
Q

What is a register?

A

A register is a group of flip-flops which store one word of data

18
Q

Why is a synchronous reset required?

A

On power up the value stored in memory is unknown, it could be 0 or 1. So we must initialise this value.

19
Q

What is an Asynchronous reset?

A

Built into the flip-flop to reset without need for positive edge of clock. Can lead to glitches.

20
Q

Explain serial communication.

A

The process of sending data one bit at a time across some communication channel. Parallel-in Serial-out when transmitting. Serial-in Parallel-out when receiving.

21
Q

Draw ripple adder.

A

Two JK flip-flops used both with asynchronous reset. High input put into J and K in both. !Q0 output of first JK flip-flop put into clock of 2nd flip-flop.

Q0 and Q1 are the important outputs. Will cycle through values 00, 01, 10, 11.

22
Q

What is the state of a sequential circuit?

A

The value currently stored in
its memory

23
Q

What is a finite state machine?

A

A Finite State Machine is a logic circuit which exhibits a sequence of states and is controlled by internal logic and, optionally, also by external inputs.

24
Q

Distinguish between a Moore and a Mealy machine.

A

Moore machine, outputs only depend on the current state of the machine.
Mealy machine, outputs depend on both the current state of the machine and the current inputs.

25
Q

Explain finite state machine controllers.

A

Input data sent to datapath.
Information signals sent to FSM.
Control signals FSM outputs into datapath.
Datapath outputs data.

26
Q

What is clock to Q propagation delay?

A

Time from positive edge of clock to Q being updated.

27
Q

What is setup time?

A

Is the amount of time before the positive edge of the clock that the input to the flip-flop must be stable to ensure that it is captured correctly.

28
Q

What is the hold time?

A

Is the amount of time after the positive edge of the clock that the input to the flip-flop must be stable to ensure that it is captured correctly.

29
Q

What is a setup violation?

A

The input to the flip-flop arrives too late. As a result, the flip-flop does not capture the final input value correctly.

30
Q

What is a metastable state?

A

Flip-flop captures a transition between 0 and 1. Unable to settle into a stable 0 or 1 within the time required for proper operation. Will do so eventually but resolution time is unbounded. Caused by both setup and hold violations.

31
Q

What is a hold violation?

A

The final input to the flip-flop changes too soon after the clock edge, the input changes before it has been captured correctly.

32
Q

How is a setup time violation avoided, give formula.

A

The clock period must be selected to allow for

critical path + clock-to-Q (inputs) + setup-time (outputs)

33
Q

How is a hold time violation avoided? Give formula.

A

If (clock to Q + path) lower than hold time a violation occurs.

34
Q

What is clock skew?

A

Is the difference in clock time of arrival at different flip-flops.

35
Q

Why should clock signal reach all flip-flops at same time?

A

As delays will be more predictable.