Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Sequential machine implementation: –clocking. n Sequential machine design.

Slides:



Advertisements
Similar presentations
Lecture 13: Sequential Circuits
Advertisements

FSM Word Problems Today:
Chapter #10: Finite State Machine Implementation
Finite State Machines (FSMs)
Give qualifications of instructors: DAP
COE 202: Digital Logic Design Sequential Circuits Part 3
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n State assignment. n Power optimization of sequential machines. n Design validation.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Memory elements. n Basics of sequential machines.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking disciplines Flip-flops. Latches.
Lecture 22: Sequential Circuits Today’s topic –Clocks and sequential circuits –Finite state machines 1.
Our First Real System.
Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.
Modern VLSI Design 4e: Chapter 8 Copyright  2008 Wayne Wolf Topics High-level synthesis. Architectures for low power. GALS design.
FPGA-Based System Design: Chapter 6 Copyright  2004 Prentice Hall PTR Register-transfer Design n Basics of register-transfer design: –data paths and controllers.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
Sequential Logic Design Process A sequential circuit that controls Boolean outputs and a specific time- ordered behavior is called a controller. StepDescription.
Modern VLSI Design 2e: Chapter4 Copyright  1998 Prentice Hall PTR.
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design 8.5 Finite State Machine.
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Memory elements. n Basics of sequential machines.
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design Finite State.
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n State assignment. n Power optimization of sequential machines. n Design validation.
1 Lecture 14: FSM and Basic CPU Design Today’s topics:  Finite state machines  Single-cycle CPU Reminder: midterm on Tue 10/24  will cover Chapters.
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
Lecture 21 Overview Counters Sequential logic design.
Lecture 23 Design example: Traffic light controller.
FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Verilog for sequential machines.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Topics n Basics of sequential machines. n Sequential machine specification. n Sequential.
1 COMP541 State Machines Montek Singh Feb 8, 2012.
FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Topics n Verilog styles for sequential machines. n Flip-flops and latches.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
EE434 ASIC & Digital Systems
Modern VLSI Design 3e: Chapter 5,6 Copyright  2002 Prentice Hall PTR Adapted by Yunsi Fei Topics n Sequential machine (§5.2, §5.3) n FSM construction.
Sequential Logic Materials taken from: Digital Design and Computer Architecture by David and Sarah Harris & The Essentials of Computer Organization and.
Chapter #8: Finite State Machine Design
Modern VLSI Design 3e: Chapter 4 Copyright  1998, 2002 Prentice Hall PTR Topics n Combinational network delay. n Logic optimization.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Complete Example.
Chapter 3 Digital Logic Structures. 3-2 Combinational vs. Sequential Combinational Circuit always gives the same output for a given set of inputs  ex:
Modern VLSI Design 4e: Chapter 8 Copyright  2008 Wayne Wolf Topics VHDL register-transfer modeling: –basics using traffic light controller; –synthesis.
DLD Lecture 26 Finite State Machine Design Procedure.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Sequential machine implementation: –clocking. n Sequential machine design.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Modern VLSI Design 3e: Chapter 8 Copyright  1998, 2002 Prentice Hall PTR Topics n Basics of register-transfer design: –data paths and controllers; –ASM.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
EE 466/586 VLSI Design Partha Pande School of EECS Washington State University
Finite State Machine. Clock Clock cycle Sequential circuit Digital logic systems can be classified as combinational or sequential. – Combinational circuits.
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
1 Lecture 13: Sequential Circuits, FSM Today’s topics:  Sequential circuits  Finite state machines  Single-cycle CPU Reminder: midterm on Tue 10/20.
Finite State Machines Mealy machine inputs Outputs next state function
Digital Design - Sequential Logic Design
Lecture 4. Sequential Logic #2
© Copyright 2004, Gaetano Borriello and Randy H. Katz
COMP541 Sequential Logic – 2: Finite State Machines
Lecture 13: Sequential Circuits, FSM
Lecture 13: Sequential Circuits, FSM
Topics Performance analysis..
Introduction to Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Topics Verilog styles for sequential machines. Flip-flops and latches.
Lecture 24 Logistics Last lecture Today HW7 back today
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Finite State Machine Continued
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Sequential machine implementation: –clocking. n Sequential machine design.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Clock period n For each phase, phase period must be longer than sum of: –combinational delay; –latch propagation delay. n Phase period depends on longest path.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Unbalanced delays Logic with unbalanced delays leads to inefficient use of logic: long clock periodshort clock period

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Retiming Retiming moves memory elements through combinational logic:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Retiming properties n Retiming changes encoding of values in registers, but proper values can be reconstructed with combinational logic. n Retiming may increase number of registers required. n Retiming must preserve number of latches around a cycle - may not be possible with reconvergent fanout.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Advanced performance analysis n Latch-based systems always have some idle logic. n Can increase performance by blurring phase boundaries. Results in cycle time closer to average of phases.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Example with unbalanced phases One phase is much longer than the other:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Spreading out a phase Compute only part of long paths in one phase:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Spreading out a phase, cont. Use other phase for end of long logic block and all of short logic block:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Problems n Hard to debug - can’t stop the system. n Hard to initialize system state. n More sensitive to process variations.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Sequential machine design n Two ways to specify sequential machine: –structure: interconnection of logic gates and memory elements. –function: Boolean description of next-state and output functions. n Best way depends on type of machine being described.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Counter n Easy to specify as one-bit counter. n Harder to specify n-bit counter behavior. Can specify n-bit counter as structure made of 1-bit counters.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR One-bit counter Truth table: countC in nextC out

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR One-bit counter implementation

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR One-bit counter operation All operations are performed as s  2. n XOR computes next value of this bit of counter. n NAND/inverter compute carry-out.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR One-bit counter sticks l1(latch)n(NAND)i(INV)x(XOR)l2(latch) C in C out V DD V SS 11 11 22 22

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR n-bit counter structure

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR State transition graphs/tables n Basic functional description of FSM. n Symbolic truth table for next-state, output functions: –no structure of logic; –no encoding of states. n State transition graph and table are functionally equivalent.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR 01 string recognizer Behavior of machine which recognizes “01”in continuous stream of bits: time input statebit1bit2bit2bit1bit1bit2 nextbit2bit2bit1bit1bit2bit1 output001001

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR 01 recognizer operation n Waits for 0 to appear in state bit1. n Goes into separate state bit2 when 0 appears. n If 1 appears immediately after 0, can have a 01 on next cycle, so can go back to wait for 0 in state bit1.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR State transition table Symbolic state transition table: inputpresentnextoutput 0bit1bit20 1bit1bit10 0bit2bit20 1bit2bit11

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR State transition graph Equivalent to state transition table:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR State assignment n Must find binary encoding for symbolic statesstate assignment. n Choice of state assignment directly affects both the next-state and output logic: –area; –delay. n May also encode some machine inputs/outputs.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR 01 recognizer encoding Choose bit1= 0, bit2 = 1: inputpresentnextoutput

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Logic implementation After encoding, truth table can be implemented in gates:

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Traffic light controller n Intersection of two roads: –highway (busy); –farm (not busy). n Want to give green light to highway as much as possible. n Want to give green to farm when needed. n Must always have at least one red light.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Traffic light

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Communicating sequential machine countersequencer reset short long carshighwayfarm

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR System operation n Sensor on farm road indicates when cars on farm road are waiting for green light. n Must obey required lengths for green, yellow lights.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Traffic light machine n Build controller out of two machines: –sequencer which sets colors of lights, etc. –timer which is used to control durations of lights. n Separate counter isolates logical design from clock period. n Separate counter greatly reduces number of states in sequencer.

Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Sequencer state transition graph hwy- green farm- green hwy- yellow farm- yellow (cars & long) / 0 green red cars & long / 1 green red short / 0 yellow red short / 1 yellow red cars & long / 0 green red cars?& long / 1 green red short / 0 red yellow short/ 1 red yellow