Title: Registers
1ECE U322Digital Logic Design
Nov. 21, 2005
- Lecture 30
- Synchronous Counters
- FSM Design
- Homework 8 due Thursday, Dec. 1.
2Sequential Circuit Design
Procedure 1. Specify Obtain state diagram or
state table based on problem specification 2.
Write state table if not given in 1 3. Determine
type and number of flip-flops 4. Determine
binary codes for states. 5. Derive flip-flop
input equations. 6. Derive output equations. 7.
Simplify equations from 5 and 6. 8. Draw logic
diagram.
3Counters are FSMs
- Registers that go through a prescribed sequence
of states upon the application of pulses. - Design procedure for a synchronous counter is the
same as with any other synchronous sequential
circuit. - In a counter, the output is the state.
4State Diagram for a 4-bit counter
5Binary Counter
6K-maps
7With EN (count enable input), the flip-flop input
equations are JQ0 KQ0 JQ1 KQ1 JQ2 KQ2
JQ3 KQ3 The input equation for flip-flop,
Qi, at any stage for i 1,2, n (n-bit counter)
is JQi KQi
8(No Transcript)
92-bit Down Counter using J-K flip-flops
10- State Table
- Present State Input Next State FF-Inputs
11- Input/Output Equations
- Circuit Diagram
12 13Up-Down Counter
- For an Up-Counter
- The input equation for flip-flop, Qi, at any
stage for i 1,2, n (n-bit counter) is - JQi KQi
- For a Down-Counter
- The input equation for flip-flop, Qi, at any
stage for i 1,2, n (n-bit counter) is - JQi KQi
144-bit Up-Down Counter
15Arbitrary Count Sequence
- (0,1,3,4,6,7)
- State Diagram
16State Table
What do we do with unused states?
17K-Maps
18Circuit Diagram
19Timing Diagram
20Binary Counter with Parallel Load
- It is often useful to have a parallel load for
transferring an initial binary number into the
counter prior to counting. - When the input load control is equal to 1, it
disables the count operation and causes a
transfer of data from the four data inputs into
the four flip-flops. - If both control inputs are 0, clock pulses do not
change the state of the register.
214-Bit Binary Counter with Parallel Load
22Register with count, load, shift functions
- Design a register that can perform the following
functions