December 1998
LD201: LOGIC DESIGN

QUESTION 5

Total Marks: 20 Marks

Click here to access other questions

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

 

This is an easy question for candidates who have some intuition regarding flip-flops and sequential circuits; it is completely unfamiliar, which may help to balance the low degree of difficulty - it will be interesting to see if candidates feel able to tackle it, and how they perform if and when they do.

 

A universal J-K flip-flop has two synchronous (clocked) inputs J and K, two asynchronous inputs S and R, anc a clock input CLK.

pic8.gif (3976 bytes)

(a) When R = 0 and S = 0, the flip-flop behaves exactly as an simple J-K flip-flop: it will hold, reset, set or toggle the output depending upon the values of J and K when the clock reaches a negative edge. Using this information, copy and complete the following characteristic table:

pic9.gif (8206 bytes)

In a table, indicates that the clock reaches a negative edge and x indicates a don't care condition.

 

[6]

pic20s.gif (3398 bytes)

quick and easy: 1 mark per connect row

 

(b) When R = 1 then the Q output of the flip-flop is reset immediately to ), whatever the value of the other inputs; the flip-flop will change state without waiting for the next negative edge. When R = 0 and S = 1, the output Q is set immediately to 1; again the values of the other inputs do not matter. Using this information, copy and complete the following table.

pic10.gif (4593 bytes)

In the table, x indicates a don't care condition.

 

[2]

pic21s.gif (1660 bytes)

if anything, quicker and easier: 1 mark per correct row

 

(c) Draw a fully label a circuit diagram to show how 4 universal J-K flip-flops can be linked to produce a four-bit binary asynchronous counter (a ripple up-counter). Your counter should have a shared reset input which has the effect of setting all outputs to 0.

 

[6]

pic22s.gif (4681 bytes)

one mark for each of the following features:

  • connect Q output to clock input of next flip-flop
  • all S inputs to 0
  • all R inputs to RESET
  • labelled outputs Q0 to  Q3 (any letter will do, as long as the different outputs have different numbers, in order, starting with the LSB)
  • all J and K inputs to 1
  • CLK input to first flip-flop

 

Draw a fully label another circuit diagram to show how 4 universal J-K flip-flops can be linked to produce a four-bit binary asynchronous counter with a mod number of 10. This counter should return to 0000 after reaching the output 1001. Again, there is a shared reset input which - when set to 1 - will immediately return all outputs to 0. [6]

pic23s.gif (5379 bytes)

one mark for each of the following features:

  • all S inputs to 0
  • all R inputs to output of or gate
  • RESET input to input of or gate
  • output of and gate to other input of or gate
  • Q1 and  Q3 to inputs of and gate
  • labelled outputs Q1 to Q3 (any letter will do, as long as the different outputs have different numbers, in order, starting with the LSB)

The other features have already been examined in the previous part of the question. An equivalent circuit selecting 0101 (read backward! = 1010 binary) for the RESET should also be considered. However, this is the expected solution.