E21 Lecture #8

Administrivia

Exam: Thursday, 8 October, in class, 1 8.5 x 11 page of notes

Lab due Thursday

Next lab out after break (Traffic light lab w/programmable logic)

1-2 problems due on Tuesday (handed back Wednesday)

Simple Registers

A set of D flip-flops with the load line being the clock pulse

Need logic attached to the clock pulse to enable/disable the load feature of the register

SR flip-flop register with parallel load and clear

Reduce the fan-out seen by other circuits
  • Inputs to SR go through AND gates with the load signal
  • Clear signal goes directly to the FF clear input
  • Clock goes through an inverter to decrease the load on the master clock
Flip-flops change state on the falling edge of the master clock

D flip-flop register with parallel load and clear

  • When load line is high, the inputs are ANDed with the load line to drive the D inputs
  • When the load line is low, the D outputs are ANDed with the inverse load line to drive the D inputs
D flip-flop value must be fed back around in order to maintain its value when the load line is low because there is no way to tell a D flip-flop to maintain its last value

Example: ROM and a Register

If we have a large truth table, we may want to implement the circuit with ROM and a register.

Counters

4-bit counter using D flip-flops (me)

4-bit counter using JK flip-flops (Bill)

Modulo 9 (BCD) counter using JK flip-flops (Bill)

Up-down binary counter using JK flip-flops (Paul)

Binary counter with parallel load using JK flip-flops