December 1999
LD201 : LOGIC DESIGN

QUESTION 5

Total Marks: 15 Marks

Click here to access other questions

SUGGESTED SOLUTIONS
Solutions and allocated marks are indicated in green.
Return to
Question 5

(a)

Draw the block diagram for an edge-triggered D flip-flop.
Edge-triggered D flip-flop:

(Must be correctly labelled to get the mark.)

 

[1]
(b)

Give the excitation table for such a flip-flop.
Excitation table:

(All or nothing.)

 

[1]
(c)

Show how to construct an edge-triggered D flip-flop from an edge-triggered SR flip-flop.
D flip-flop from SR flip-flop:

(Must be correctly labelled to get the mark.)

 

[1]
(d)

Show how to construct an edge-triggered D flip-flop from ordinary logic gates (NOT, AND, OR, NAND, NOR).
Circuit for D flip-flop:

(1 mark for the cross-coupled NAND gates; 1 mark for the rest of the circuit.)

 

[2]
(e)

Show how to connect three edge-triggered D flip-flops into a 3-bit ring counter, in which exactly one output is high at any one time. An initialization signal should put the flip-flops into a sensible starting state.
Ring counter:

(1 mark for connecting the flip-flops in a loop; 1 mark for connecting the clock signal; 1 mark for implementing the initialization signal correctly; 1 mark for clear labelling.)

 

[4]
(f)

A 3-bit register has three 1-bit memory cells , three data inputs and three data outputs As well as a clock, it also has two control inputs S (‘shift’) and C (‘choose’). At each clock pulse, the three memory cells change state as follows

•if S is low and C is low, the cells hold their contents unchanged;
•if S is low and C is high, the cells store the values held on the data inputs;
•if S is high and C is low, the contents of the cells rotate left (from from and wrapping round from );
•if S is high and C is high, the contents of the cells rotate right.

The contents of the cells are always available on the data outputs. Design a circuit to implement such a register, using three edge-triggered D flip-flops and three 4-to-1 multiplexors.
Register:

(1 mark for the three memory cells and their output signals; 1 mark for the connecting the outputs from the multiplexors to the inputs of the memory cells; 1 mark for connecting the data inputs to the multiplexors; 1 mark for connecting the control inputs to the multiplexors; 1 mark for labelling (including the multiplexor inputs); 1 mark for a clear diagram. Note that other arrangements are possible; for example, S and C could be connected to and instead of to and,in which case the connections of the multiplexors will be different.)

[6]