Asynchronous Machines

Slides:



Advertisements
Similar presentations
CS370 – Spring 2003 Hazards/Glitches. Time Response in Combinational Networks Gate Delays and Timing Waveforms Hazards/Glitches and How To Avoid Them.
Advertisements

ECE 3110: Introduction to Digital Systems
Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical.
Digital Design - Sequential Logic Design Chapter 3 - Sequential Logic Design.
Sequential circuits Part 1: flip flops All illustrations  , Jones & Bartlett Publishers LLC, (
1 Fundamentals of Computer Science Sequential Circuits.
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Chapter 9 Asynchronous Sequential Logic 9-1 Introduction Introduction 9-2 Analysis Procedure Analysis ProcedureAnalysis Procedure 9-3 Circuits With Latches.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
1 CS 151: Digital Design Chapter 5: Sequential Circuits 5-3: Flip-Flops I.
Logical Circuit Design Week 11: Sequential Logic Circuits Mentor Hamiti, MSc Office ,
Asynchronous Sequential Logic
Circuits require memory to store intermediate data
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Digital Logic Design Lecture 22. Announcements Homework 7 due today Homework 8 on course webpage, due 11/20. Recitation quiz on Monday on material from.
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
Asynchronous Circuit Design
Reconfigurable Computing - Clocks John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots on Cockburn Sound, Western Australia.
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
ECE 331 – Digital System Design
Sequential Logic Design Process A sequential circuit that controls Boolean outputs and a specific time- ordered behavior is called a controller. StepDescription.
EECC341 - Shaaban #1 Lec # 8 Winter Combinational Logic Circuit Transient Vs. Steady-state Output Gate propagation delay: The time between.
Give qualifications of instructors: DAP
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 –Selected Design Topics Part 3 – Asynchronous.
Asynchronous Sequential Logic
Asynchronous Sequential Circuits. 2 Asynch. vs. Synch.  Asynchronous circuits don’t use clock pulses  State transitions by changes in inputs  Storage.
Embedded Systems Hardware:
Asynchronous Sequential Circuits
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
Spring 2002EECS150 - Lec15-seq2 Page 1 EECS150 - Digital Design Lecture 15 - Sequential Circuits II (Finite State Machines revisited) March 14, 2002 John.
ECE C03 Lecture 61 Lecture 6 Delays and Timing in Multilevel Logic Synthesis Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
Embedded Systems Hardware: Storage Elements; Finite State Machines; Sequential Logic.
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
CS 151 Digital Systems Design Lecture 32 Hazards
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Clocked Synchronous State Machine Design
Sequential Networks Two major classes of Sequential Circuits 1.Fundamental Mode – A sequential circuit where: Only one input is allowed to change at any.
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
1 Digital Design: Time Behavior of Combinational Networks Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth,
Asynchronous Sequential Circuit Design  SSC versus ASC  Asynchronous Sequential Machine Modes Prepared By AJIT SARAF.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Asynchronous Sequential Circuits aka ‘Feedback sequential circuits’ - Wakerly Chap 7.9.
COUNTERS Why do we need counters?
LECTURE IX CH 5 LATCHES AND FLIP-FLOPS. Sequential logic circuits by definition progressive from one logic state to the next. In order for this to occur,
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
1 Asynchronous Sequential Logic For most figures:.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Hazard.
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Asynchronous Sequential Logic
CSE 370 – Winter Sequential Logic - 1
Regular Expression Manipulation FSM Model
Chapter 3 Overview • Multi-Level Logic
ECE 352 Digital System Fundamentals
Presentation transcript:

Asynchronous Machines Used slides from Mitch Thornton and Prof. Hintz

Flip-Flop or Latch Selection Reduce States State Assignment Flip-Flop or Latch Selection

Asynchronous FSM Fundamental Mode Assumption Only one input can change at a time Analysis too complicated if multiple inputs are allowed to change simultaneously Circuit must be allowed to settle to its final value before an input is allowed to change Behavior is unpredictable (nondeterministic) if circuit not allowed to settle

Asynch. Design Difficulties Delay in Feedback Path Not reproducible from implementation to implementation Variable may be temperature or electrical parameter dependent within the same device Analog not known exactly Tell my stories how I worked with asynchronous machines in 1968

Stable State PS = present state NS = next state PS = NS = Stability Machine may pass through none or more intermediate states on the way to a stable state Desired behavior since only time delay separates PS from NS Oscillation Machine never stabilizes in a single state

Races A Race Occurs in a Transition From One State to the Next When More Than One Next State Variables Changes in Response to a Change in an Input Slight Environment Differences Can Cause Different State Transitions to Occur Supply voltage Temperature, etc.

Races 01 10 11 00 PS desired NS if Y1 changes first

Types of Races Non-Critical Critical Machine stabilizes in desired state, but may transition through other states on the way Critical Machine does not stabilize in the desired state

Races PS 01 10 11 00 if Y2 changes first if Y1 changes first critical race 00 desired NS non- critical race

Asynchronous FSM Benefits Fastest FSM Economical No need for clock generator Output Changes When Signals Change, Not When Clock Occurs Data Can Be Passed Between Two Circuits Which Are Not Synchronized In some technologies, like quantum, clock is just not possible to exist, no clocks in live organisms.

Asynchronous FSM Example input next state present state y1 y2

You can analyze this machine at home Next State Variables You can analyze this machine at home

Asynchronous State Tables States are either Stable or Unstable. Stable states encircled with symbol. Present state Next state, output x=0 x=1 Q0 Q0,0 Q1,0 Q1 Q2,0 Q2 Q3,1 Q3 Q0, 0 Oscillations occur if all states are unstable for an input value. Total State is a pair (x, Qi)

Constraints on Asynchronous Networks If the next input change occurs before the previous ones effects are fed back to the input, the machine may not function correctly. Thus, constraints are needed to insure proper operation. Fundamental Mode – Input changes only when the machine is in a stable state. Normal Fundamental Mode – A single input change occurring when the machine is in a stable state produces a single output change.

Example 8.4 Find state table for network Let Q0 be state when y1 = 0 and Q1 be state when y1 = 1. Present state Input x1,x2 00 01 11 10 Q0 Q0,01 Q0,00 Q1,00 Q1 Q1,10 Q0,10 z1z2

Ask student to do this analysis Example 8.5 Analyze circuit with fundamental model State Code y1,y2 Q0 00 Q1 01 Q2 11 Q3 10 Present state Input x1,x2 00 01 11 10 Q0[\ =00 Q2 Q3 Q0 Q1 Q1 = 01 Q2 = 11 Q3 = 10 Ask student to do this analysis

Example 8.5 Analyze circuit without fundamental mode State Code y1,y2 Q0 00 Q1 01 Q2 11 Q3 10 Present state Input x1,x2 00 01 11 10 Q0 Q2 Q3 Q1

Example 8.6 Design the network for the given state table using SR-latches Use state assignment Present state Next state, output x=0 x=1 Q0 Q0,0 Q1,0 Q1 Q2,0 Q2 Q3,1 Q3 Q0, 0 State Code y1,y2 Q0 00 Q1 01 Q2 11 Q3 10

Example 8.6 (Continued) Use S when state variable must change from 0 to 1 Use R when state variable must change from 1 to 0 Use s when state variable remains 1 Use r when state variable remains 0

Example 8.7 – D Flip-Flop Design the circuit from the state table using SR-latches Present state Input x1,x2 00 01 11 10 Q0 Q1 Q2 Q3

Example 8.8 Derive the state table from the circuit 1’s where Set and (present state is 1 and not R)

Example 8.8 (Continued) y1,y2 Present state Input x1,x2 00 01 11 10 Q0

Race Conditions - Example 8.9 Race Condition – when two or more variable change at a time Critical Race – final state dependent on order in which the state variables change Present state Input x1,x2 00 01 11 10 Q0 Q1 Q3 Q2 State Code y1,y2 Q0 00 Q1 01 Q2 11 Q3 10 Present state y1,y2 Input x1,x2 00 01 11 10 Q0 Q1 Q2 Q3 Input x1,x2 10 00 10, 00, 01 ok 10, 11, 01 not ok.

Table from previous page Avoiding Race State Adjacency Diagram State Adjacency Diagram Present state Input x1,x2 00 01 11 10 Q0 Q1 Q3 Q2 Q0 Q1 Q2 Q3 Impossible to have hamming distance of 1 between all adjacent states. Must add states. Table from previous page

Asynchronous Machine Hazards Steady-State Hazards – Occurs when a sequential network goes to an erroneous state due to gate delay. Static-1 Hazard In (01, Q1) consider input change (00)  (01) Present state y1,y2 Input x1,x2 00 01 11 10 Q0 Q1 Q2 Q3 y1= x1x2 + x1 y1y2+ x2 y1y2 y2 = x1x2 + x2 y2+ x1y1

Steady-State Hazards Elimination of Static-1 Hazard y1= x1x2 + x1 y1y2+ x2 y1y2 y2 = x1x2 + x2 y2+ x1y1 + x1 y2

Hazard Example Feedback Sequential Implementation Maps resulting from State Table 8.5, Example 8.7

Essential Hazard Essential Hazard – Erroneous sequential operation that cannot be eliminated without controlling delays in the circuit. Not affected by elimination of combinational logic hazards.

Essential Hazard Example Caused by multiple paths for x Starting in stable state Q2 with input 0  1 Present state Input x 1 Q0 = 00 Q0 Q3 Q1 = 01 Q1 Q2= 11 Q2 Q3 = 10 Slow Students should complete this example in class, on Friday or at home