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
-
Usually a system will have a master clock
-
We want delays in clock to be minmal at best
-
Logic between the clock and the flip-flop inputs delay the system
SR flip-flop register with parallel load and clear
-
Load signal goes through a buffer
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.
-
2N states
-
Given a truth table with I inputs, N state variables, N next state values, and M outputs
-
Create an N + I input ROM (2N+I words) with 8 + M outputs
-
Feed N of the values back into the register at each clock cycle
-
Outputs come directly from the ROM
-
2-chip circuit implementation of a very complex state machine
-
simple uCode controller for a processor
Counters
4-bit counter using D flip-flops (me)
-
Look at D functions in the truth table
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
-
JK inputs toggle as appropriate when count is high and the load is low
-
Load input inhibits count input and forces JK inputs to their appropriate values
-
Carry-out is high when count is high and counter is all 1s