690 likes | 724 Views
EEL 3705 / 3705L Digital Logic Design. Spring 2007 Instructor: Dr. Michael Frank Module #14: Modular Sequential Design (Thanks to Dr. Perry for some slides). Frequently-Used Modular Sequential Components. Memory elements: Flip-flops & Registers (already covered)
E N D
EEL 3705 / 3705LDigital Logic Design Spring 2007Instructor: Dr. Michael FrankModule #14: Modular Sequential Design(Thanks to Dr. Perry for some slides)
Frequently-Used Modular Sequential Components • Memory elements: • Flip-flops & Registers (already covered) • Synchronous ROMs (w. registered I/O ports) • RAMs (asynchronous & synchronous) • Simple, common state machines: • Counters (plain binary and mod-n) • Accumulators • Shift registers (left/right, w. serial & parallel I/O)
Insert more slides here… • Most of the remaining slides in this module need to be deleted, and replaced with some slides giving examples of modular sequential designs of the above components, and explaining their functions…
Dr. Perry’s Slides Following are some old slides by Dr. Perry on Counters and Shift Registers, left over from previous semesters…
Example– 2-bit Up Counter • State Diagram Clock is implied
Example – 2-bit Up Counter • State Table State Value Assignment Let Output Vector Let S0 = reset state
Example – 2-bit Up Counter • Truth Table
Example – 2-bit Up Counter • Excitation Equations
Moore FSM Next State Present State Output Vector Input Vector Clock Feedback Path Reset State Equations
Reg Block F Logic Y Vector H Logic Logic Diagram No X Vector in this Example No H Logic needed
Example 3– 2-bit Down Counter • State Diagram Clock is implied
Example – 2-bit Down Counter • State Table Let Let S0 = reset state
Example – 2-bit Down Counter • Truth Table
Example – 2-bit Down Counter • Excitation Equations
Recall Moore FSM Next State Present State Output Vector Input Vector Clock Feedback Path Reset State Equations
Logic Diagram Reg Block F Logic Y Vector H Logic No X Vector in this Example
Example 4 – 2-bit Up/Down Counter • State Diagram
Example – 2-bit Up/Down Counter • State Diagram Shorthand Notation
Example – 2-bit Up/Down Counter • State Table Let Let S0 = reset state
Example – 2-bit Up/Down Counter • Truth Table
Example – 2-bit Up/Down Counter • Excitation Equations
Recall Moore FSM Next State Present State Output Vector Input Vector Clock Feedback Path Reset State Equations
Logic Diagram Reg Block X Vector F Logic Y Vector H Logic
Example 5– 3-bit Arbitrary Counter • Design a 3-bit arbitrary counter that will count in the following sequence 3,2,3,1,2,3 If a state is not used reset it to state zero. • How may states do we have? • How many registers do we need? • How many bits do we need for Y?
Example 5– 3-bit Arbitrary Counter • State Diagram
Example – Arbitrary 3-bit Counter Assign State Values • State Table Let Let S0 = reset state
Example – 2-bit Arbitrary Counter • Develop Excitation Equations -- F Logic
Example – 2-bit Arbitrary Counter • Excitation Equations -- H Logic
Recall Moore FSM Next State Present State Output Vector Input Vector Clock Feedback Path Reset State Equations
Logic Circuit H REG F
Example 5– 2-bit Up/Down Counter with Active Low Enable and Synchronous RESET (SRESET) • State Diagram Clock is implied
Example – 2-bit Up/Down Counter with Enable and SRESET • Functional Table Highest Level of Priority Lowest Level of Priority
Truth Table (5 variables!!) Although, we could design this circuit directly from the truth table we will use design partitioning.
Moore FSM Architecture Next State Present State Output Vector Input Vector Feedback Path
Partitioned Design We have srn en Note, with the partitioned design we can “reuse” already designed submodules to create the “new” design.
UP/Down Logic Logic Circuit Symbol
Register Block Symbol Logic Circuit
2 Bit 4x1 Mux Circuit Symbol
1-bit 4x1 Mux Logic Circuit Symbol