Sequential Logic (2) Synchronous vs Asynchronous Sequential Circuit. Clock Signal. Synchronous Sequential Circuits. FSM Overview 9/10/12

Similar documents
Digital Design. Sequential Logic Design -- Controllers. Copyright 2007 Frank Vahid

CHAPTER 2 LITERATURE STUDY

Dataflow Language Model. DataFlow Models. Applications of Dataflow. Dataflow Languages. Kahn process networks. A Kahn Process (1)

CS 135: Computer Architecture I. Boolean Algebra. Basic Logic Gates

Math Circles Finite Automata Question Sheet 3 (Solutions)

& Y Connected resistors, Light emitting diode.

CHAPTER 3 AMPLIFIER DESIGN TECHNIQUES

EE Controls Lab #2: Implementing State-Transition Logic on a PLC

(1) Non-linear system

Mixed CMOS PTL Adders

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2005

ECE 274 Digital Logic Spring Digital Design. Combinational Logic Design Process and Common Combinational Components Digital Design

Section 16.3 Double Integrals over General Regions

Kirchhoff s Rules. Kirchhoff s Laws. Kirchhoff s Rules. Kirchhoff s Laws. Practice. Understanding SPH4UW. Kirchhoff s Voltage Rule (KVR):

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Geometric quantities for polar curves

Student Book SERIES. Patterns and Algebra. Name

Discontinued AN6262N, AN6263N. (planed maintenance type, maintenance type, planed discontinued typed, discontinued type)

ECE Digital Logic (Labs) ECE 274 Digital Logic. ECE Digital Logic (Textbook) ECE Digital Logic (Optional Textbook)

On the Description of Communications Between Software Components with UML

1 tray of toffee 1 bar of toffee. 10 In the decimal number, 0 7, the 7 refers to 7 tenths or

Experiment 8 Series DC Motor (II)

MAXIMUM FLOWS IN FUZZY NETWORKS WITH FUNNEL-SHAPED NODES

ABB STOTZ-KONTAKT. ABB i-bus EIB Current Module SM/S Intelligent Installation Systems. User Manual SM/S In = 16 A AC Un = 230 V AC

Module 9. DC Machines. Version 2 EE IIT, Kharagpur

Regular languages can be expressed as regular expressions.

MOS Transistors. Silicon Lattice

Chapter 2 Literature Review

Timing Macro-modeling of IP Blocks with Crosstalk

Algorithms for Memory Hierarchies Lecture 14

Solutions to exercise 1 in ETS052 Computer Communication

Student Book SERIES. Fractions. Name

SOLVING TRIANGLES USING THE SINE AND COSINE RULES

Translate and Classify Conic Sections

Analysis of circuits containing active elements by using modified T - graphs

Synchronous Machine Parameter Measurement

Synchronous Machine Parameter Measurement

Direct Current Circuits. Chapter Outline Electromotive Force 28.2 Resistors in Series and in Parallel 28.3 Kirchhoff s Rules 28.

A COMPARISON OF CIRCUIT IMPLEMENTATIONS FROM A SECURITY PERSPECTIVE

Domination and Independence on Square Chessboard

ITEC2620 Introduction to Data Structures

How to remove BRNS/BRFS series from a PWB

Timing Constraint-driven Technology Mapping for FPGAs Considering False Paths and Multi-Clock Domains

To provide data transmission in indoor

Three-Phase Synchronous Machines The synchronous machine can be used to operate as: 1. Synchronous motors 2. Synchronous generators (Alternator)

Experiment 3: The research of Thevenin theorem

Exercise 1-1. The Sine Wave EXERCISE OBJECTIVE DISCUSSION OUTLINE. Relationship between a rotating phasor and a sine wave DISCUSSION

Multi-beam antennas in a broadband wireless access system

A Practical DPA Countermeasure with BDD Architecture

The Math Learning Center PO Box 12929, Salem, Oregon Math Learning Center

Design and implementation of a high-speed bit-serial SFQ adder based on the binary decision diagram

Safety Relay Unit. Main contacts Auxiliary contact Number of input channels Rated voltage Model Category. possible 24 VAC/VDC G9SA-501.

Application Note. Differential Amplifier

GLONASS PhaseRange biases in RTK processing

Resolver Interface Card "OPC-G1. RES" Product Specifications

(1) Primary Trigonometric Ratios (SOH CAH TOA): Given a right triangle OPQ with acute angle, we have the following trig ratios: ADJ

REVIEW QUESTIONS. Figure For Review Question Figure For Review Question Figure For Review Question 10.2.

Convolutional Networks. Lecture slides for Chapter 9 of Deep Learning Ian Goodfellow

Homework #1 due Monday at 6pm. White drop box in Student Lounge on the second floor of Cory. Tuesday labs cancelled next week

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 4143/5195 Electrical Machinery Fall 2009

Topic 20: Huffman Coding

Aquauno Select MINUTES. (duration) FREQUENCY LED. OFF 8h AQUAUNO SELECT 5 MIN FREQUENCY. the timer is being programmed;

Abacaba-Dabacaba! by Michael Naylor Western Washington University

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN fall 2008

Asynchronous Data-Driven Circuit Synthesis

(CATALYST GROUP) B"sic Electric"l Engineering

Section 17.2: Line Integrals. 1 Objectives. 2 Assignments. 3 Maple Commands. 1. Compute line integrals in IR 2 and IR Read Section 17.

FOMA M702iG Manual for Data Communication

Comparison of soundscape on the ground floor of tube-houses in Hanoi and open urban space in Bordeaux

Job Sheet 2. Variable Speed Drive Operation OBJECTIVE PROCEDURE. To install and operate a Variable Speed Drive.

DIGITAL multipliers [1], [2] are the core components of

ISSCC 2006 / SESSION 21 / ADVANCED CLOCKING, LOGIC AND SIGNALING TECHNIQUES / 21.5

Lecture 16: Four Quadrant operation of DC Drive (or) TYPE E Four Quadrant chopper Fed Drive: Operation

Area-Time Efficient Digit-Serial-Serial Two s Complement Multiplier

9.4. ; 65. A family of curves has polar equations. ; 66. The astronomer Giovanni Cassini ( ) studied the family of curves with polar equations

Use of compiler optimization of software bypassing as a method to improve energy efficiency of exposed data path architectures

Network Theorems. Objectives 9.1 INTRODUCTION 9.2 SUPERPOSITION THEOREM

Alternating-Current Circuits

Compared to generators DC MOTORS. Back e.m.f. Back e.m.f. Example. Example. The construction of a d.c. motor is the same as a d.c. generator.

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO ECE-238L:

The Discussion of this exercise covers the following points:

Spiral Tilings with C-curves

Engineer-to-Engineer Note

Operation Manual. Product Code 885-V55. Computerized Embroidery Machine GETTING READY EMBROIDERY APPENDIX

Separation Constraint Partitioning - A New Algorithm for Partitioning. Non-strict Programs into Sequential Threads. David E. Culler, Seth C.

10.4 AREAS AND LENGTHS IN POLAR COORDINATES

Lecture 20. Intro to line integrals. Dan Nichols MATH 233, Spring 2018 University of Massachusetts.

REVIEW, pages

Magnetic monopole field exposed by electrons

MATH 118 PROBLEM SET 6

Color gamut reduction techniques for printing with custom inks

Section 6.1 Law of Sines. Notes. Oblique Triangles - triangles that have no right angles. A c. A is acute. A is obtuse

Make Your Math Super Powered

Logic Design of Elementary Functional Operators in Quaternary Algebra

Diffraction and Interference. 6.1 Diffraction. Diffraction grating. Diffraction grating. Question. Use of a diffraction grating in a spectrometer

Electrical data Nominal voltage AC/DC 24 V Nominal voltage frequency

MEASURE THE CHARACTERISTIC CURVES RELEVANT TO AN NPN TRANSISTOR

Synchronous Generator Line Synchronization

Proposed Cable Tables for SAS2

High Speed On-Chip Interconnects: Trade offs in Passive Termination

Transcription:

9//2 Sequentil (2) ENGG5 st Semester, 22 Dr. Hden So Deprtment of Electricl nd Electronic Engineering http://www.eee.hku.hk/~engg5 Snchronous vs Asnchronous Sequentil Circuit This Course snchronous Sequentil snchronous Comintionl n In snchronous sequentil circuits, ll stte elements re updted snchronousl ccording to single clock signl n In snchronous sequentil circuits, stte elements m e updted with multiple clocks, no clock signl, or n other schemes. st semester, 22 ENGG5 - H. So 2 input Snchronous Sequentil Circuits n A snchronous sequentil circuit contins exctl clock signl n All stte elements re connected to the sme clock signl è the stte of the entire circuit is updted t the sme time n Common form of snchronous sequentil circuits: Com Com Com Com output Clock Signl n A clock signl is prticulrl importnt signl in snchronous sequentil circuit It controls the ction of ll DFFs n A clock signl toggles etween nd periodicll n The frequenc of the toggling determines the mximum speed of the circuit E.g.: in the ccumultor exmple erlier, the output S cnnot chnge fster thn the clock frequenc X x x x2 S x x + x x + x + x2 clock period = clock frequenc clock period e.g. Intel CPU runs t 3 GHz, Moile phone processors t GHz L FPGA ord t 5 MHz st semester, 22 ENGG5 - H. So 3 st semester, 22 ENGG5 - H. So 4 FSM Overview FINITE STATE MACHINE n Finite Stte Mchine (FSM) is n strction of computtion Cn e used to model mn computing tsks, oth in softwre nd in hrdwre n Ver useful strction to help design sequentil circuits It is sstemtic, nd cn e nlzed mthemticll n Used to descrie ver complex ehvior of circuits nd sstems Decision mking Network communiction Microprocessor control st semester, 22 ENGG5 - H. So 5 st semester, 22 ENGG5 - H. So 6

9//2 Defining Finite Stte Mchines n Ech FSM defines: Finite numer of sttes tht the mchine cn e in The conditions under which it will trnsition from one stte to nother n At n moment in time, n FSM cn onl exist in of the defined sttes n The output of n FSM depends on the stte tht the FSM Optionll depend on the input to the FSM Stte Trnsition Digrm n A grphicl tool to descrie the ehvior of n FSM n Represent sttes s locks Leled: nme of the stte n Represent trnsitions s directed edge Direction of n edge represents the direction of stte trnsition n All possile sttes & trnsitions re included S3 S S2 S st semester, 22 ENGG5 - H. So 7 st semester, 22 ENGG5 - H. So 8 Quick Quiz Stte Trnsitions n Which of the following is/ re possile sequence(s) of sttes tht the FSM m go through? S S condition / output S S S S3 S2 S 2 S S S S2 S2 S 3 S S S S S3 S3 S3 4 S2 S2 S S S S S3 S2 S n Ech stte trnsition is leled with:. Condition tht the trnsition should tke plce 2. Output of the FSM during the trnsition n There should onl e ctive trnsition t n one time The input conditions of ll trnsitions in FSM should e mutull exclusive st semester, 22 ENGG5 - H. So 9 st semester, 22 ENGG5 - H. So Ex: Ticket Gte t MTR n The gte should onl open fter vlid Octopus crd is scnned. n It should close the gte fter person hs pssed through the gte. FSM in Hrdwre n FSM cn e efficientl implemented in hrdwre using snchronous sequentil circuits FSM sttes cn e implemented registers Stte trnsition conditions cn e implemented comintionl function on input signls nd the sttes FSM outputs re simpl output signls of the circuit n Trnsition condition is checked on ever clock edge st semester, 22 ENGG5 - H. So st semester, 22 ENGG5 - H. So 2 2

9//2 Ticket Gte Control () Ticket Gte Control (2) Step : Define the input/output signls n We use the following signls: Tpe Nme Description input vlid if vlid Octopus crd is presented, otherwise input pssed if pssenger hs completel pssed through the gte, otherwise output motor close the ticket gte turning on motor, otherwise st semester, 22 ENGG5 - H. So 3 Step 2: Determine how the FSM sttes will e represented in hrdwre n 2 FSM sttes è DFF needed n Encode the stte s follows: è stte è stte st semester, 22 ENGG5 - H. So 4 Ticket Gte Control (3) Step 3: Implement the stte trnsition logic n At ech ccle, determine wht is the next stte this FSM should e in in the next ccle Determine which trnsition is ctive checking ll the trnsition conditions n The next stte logic is comintionl function of the current stte nd the input signls the input to the stte register Cn e found using truth tle st semester, 22 ENGG5 - H. So 5 Ticket Gte Control (3) ns = s vlid + s pssed s vlid pssed ns st semester, 22 ENGG5 - H. So 6 Ticket Gte Control (4) Ticket Gte Control (4) Step 4: Determine the output logic n Cn e performed similr to the w the next stte logic is otined st semester, 22 ENGG5 - H. So 7 motor = s vlid + s pssed s vlid pssed ns motor st semester, 22 ENGG5 - H. So 8 3

9//2 Ticket Gte Control (5) Moore Mchine vs Mel Mchine Step 4: Implement the circuit input s Next Stte ns stte register s Output output n In Mel mchine, the output depends on oth input nd the current stte of the mchine n In Moore mchine, the output depends onl on the current stte, ut not the input n Next stte (ns) is comintionl function on current stte (s) nd current input n After clock edge, ns ecomes the current stte (s) in the next ccle è connect to stte register n Output depends on current stte n Output m depend on input s well n Moore mchine void comintionl pth etween input nd output of stte mchine n However, in generl, Moore mchine requires more sttes to implement the sme function thn Mel mchine st semester, 22 ENGG5 - H. So 9 st semester, 22 ENGG5 - H. So 2 Stte Encoding n Stte encoding refers to the w the strct FSM sttes re represented in hrdwre n In inr encoding scheme, ech stte is encoded using n n-it inr numer. 2 n possile sttes The ticket gte exmple is the simplest inr encoding with it = 2 sttes n In one-hot encoding scheme, ech FSM stte is encoded using it t unique it position n DFFs re used to encode n FSM sttes Stte Encoding Stte Binr One-Hot Stte_A Stte_B Stte_C Stte_D Oservtions: Exmple: encoding 4 sttes using different encoding scheme n One-hot encoding scheme requires more DFFs for lrge FSMs But generll simpler next stte/output logic n The mpping etween stte nd its encoding cn e quite ritrr E.g. No reson wh Stte_C cnnot e n Non-trivil to define the est encoding st semester, 22 ENGG5 - H. So 2 st semester, 22 ENGG5 - H. So 22 Stte Encoding n In either encoding scheme, there will e codes tht do not correspond to n FSM stte E.g. is not vlid one-hot encoding E.g. m not e vlid if there re onl 5 sttes in the FSM. n How to hndle invlid sttes? Ignore them since in theor our stte mchine will never end up in tht stte Flg n error, stop the mchine Reset the mchine/jump to defult stte Tke dvntge of them to simplif the design of next stte/output logic CIRCUIT TIMING st semester, 22 ENGG5 - H. So 23 st semester, 22 ENGG5 - H. So 24 4

9//2 Timing of Circuits n So fr, we hve ssumed: output of comintionl circuit chnges instntneous w.r.t. input Output of FF chnges instntneousl w.r.t. clock edge n In relit, it tkes finite mount of time for signl to trvel through circuit. n The timing of different prts of circuit m cuse glitches in output, limit the mximum speed of design st semester, 22 ENGG5 - H. So 25 Propgtion Del c d n Ech logic gte incurs del etween the input nd output to llow signl to propgte Such del is referred s propgtion del n Exct vlue is technolog-dependent n In this clss, we ssume ll gtes hve the sme unit propgtion del. The speed of circuit is lws limited the slowest pth st semester, 22 ENGG5 - H. So 26 3 units of del from to unit of del from d to Worst cse del = 3 units Glitches x n Glitches refer to n momentril chnge in signl vlue n One common cuse is due to rce condition etween signl pths Imlnced propgtion del n M cuse incorrect output if signl is used during the glitch x stle time Timing in Snchronous Circuits c d n In snchronous sequentil circuit, signl chnges occur onl during clock edge n All signls re therefore snchronized to chnge vlues right fter clock edge n In the ove exmple, need to mke sure correct vlue of ville BEFORE next clock edge st semester, 22 ENGG5 - H. So 27 st semester, 22 ENGG5 - H. So 28 Timing in Snchronous Circuits n In generl, the propgtion del through the comintionl logic etween n two registers must e shorter thn the clock period n The longest such pth is clled the criticl pth of the circuit n The criticl pth determines the mximum clock speed x From glitch exmple Com Stle efore clock edge Snchronous Circuits Timing Trdeoff n Since onl vlues right efore the clock edge in the input port re cptured, ll the glitches within the circuit re ignored n A short period of time efore clock edge must e llocted to ensure stle inputs Too smll è Chnce of filing circuit Too ig è Wsted idle time n Since ll circuit runs on the sme clock, clock frequenc limited the longest criticl pth st semester, 22 ENGG5 - H. So 29 st semester, 22 ENGG5 - H. So 3 5

9//2 Summr n Snchronous sequentil circuits contin one single clock All FFs connected to the sme clock All signl chnge snchronized to the sme clock edge n Stte mchine is n importnt strction for computtion Stright forwrd implementtion s snchronous sequentil logic n Propgtion del of logic gtes determines the highest frequenc snchronous sequentil circuit cn run st semester, 22 ENGG5 - H. So 3 6