ENG2410 Digital Design Sequential Circuits: Part A

Similar documents
ENG2410 Digital Design Sequential Circuits: Part B

Department of Electrical Engineering, University of Waterloo. Introduction

ENG2410 Digital Design Arithmetic Circuits

ENG2410 Digital Design Sequencing and Control

Medium Scale Integrated (MSI) devices [Sections 2.9 and 2.10]

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

NUMBERS, MATHEMATICS AND EQUATIONS

READING STATECHART DIAGRAMS

THE LIFE OF AN OBJECT IT SYSTEMS

Activity Guide Loops and Random Numbers

Differentiation Applications 1: Related Rates

Lecture 02 CSE 40547/60547 Computing at the Nanoscale

Sequential vs. Combinational

ECE 545 Project Deliverables

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y )

Chem 163 Section: Team Number: ALE 24. Voltaic Cells and Standard Cell Potentials. (Reference: 21.2 and 21.3 Silberberg 5 th edition)

CONSTRUCTING STATECHART DIAGRAMS

Physical Layer: Outline

ELCT201: DIGITAL LOGIC DESIGN

Dead-beat controller design

BASIC DIRECT-CURRENT MEASUREMENTS

MODULE FOUR. This module addresses functions. SC Academic Elementary Algebra Standards:

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

Synchronous Sequential Logic

AIP Logic Chapter 4 Notes

Finite Automata. Human-aware Robo.cs. 2017/08/22 Chapter 1.1 in Sipser

, which yields. where z1. and z2

Building to Transformations on Coordinate Axis Grade 5: Geometry Graph points on the coordinate plane to solve real-world and mathematical problems.

Section I5: Feedback in Operational Amplifiers

Chapter 3 Digital Transmission Fundamentals

APPLICATION GUIDE (v4.1)

Lecture 17: Free Energy of Multi-phase Solutions at Equilibrium

Dispersion Ref Feynman Vol-I, Ch-31

Turing Machines. Human-aware Robotics. 2017/10/17 & 19 Chapter 3.2 & 3.3 in Sipser Ø Announcement:

Biocomputers. [edit]scientific Background

Physics 2010 Motion with Constant Acceleration Experiment 1

Dataflow Analysis and Abstract Interpretation

CHAPTER 2 Algebraic Expressions and Fundamental Operations

Technical Note

B. Definition of an exponential

Kinetic Model Completeness

Multiple Source Multiple. using Network Coding

x 1 Outline IAML: Logistic Regression Decision Boundaries Example Data

Homology groups of disks with holes

Hypothesis Tests for One Population Mean

making triangle (ie same reference angle) ). This is a standard form that will allow us all to have the X= y=

NTP Clock Discipline Principles

Sections 15.1 to 15.12, 16.1 and 16.2 of the textbook (Robbins-Miller) cover the materials required for this topic.

5 th Grade Goal Sheet

Physics 2B Chapter 23 Notes - Faraday s Law & Inductors Spring 2018

Purpose: Use this reference guide to effectively communicate the new process customers will use for creating a TWC ID. Mobile Manager Call History

Chapter 16. Capacitance. Capacitance, cont. Parallel-Plate Capacitor, Example 1/20/2011. Electric Energy and Capacitance

EEO 401 Digital Signal Processing Prof. Mark Fowler

ENSC Discrete Time Systems. Project Outline. Semester

MODULE ONE. This module addresses the foundational concepts and skills that support all of the Elementary Algebra academic standards.

5 th Grade Goal Sheet

Thermodynamics and Equilibrium

Revision: August 19, E Main Suite D Pullman, WA (509) Voice and Fax

Name: Period: Date: ATOMIC STRUCTURE NOTES ADVANCED CHEMISTRY

Synchronous Motor V-Curves

David HORN and Irit OPHER. School of Physics and Astronomy. Raymond and Beverly Sackler Faculty of Exact Sciences

Pattern Recognition 2014 Support Vector Machines

Module 4: General Formulation of Electric Circuit Theory

Five Whys How To Do It Better

Design and Simulation of Dc-Dc Voltage Converters Using Matlab/Simulink

You need to be able to define the following terms and answer basic questions about them:

The standards are taught in the following sequence.

User Guide: Operation of ActiveAhead Mobile Application

Chapter 3 Digital Transmission Fundamentals

We can see from the graph above that the intersection is, i.e., [ ).

Weathering. Title: Chemical and Mechanical Weathering. Grade Level: Subject/Content: Earth and Space Science

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

Purchase Order Workflow Processing

the results to larger systems due to prop'erties of the projection algorithm. First, the number of hidden nodes must

Admin. MDP Search Trees. Optimal Quantities. Reinforcement Learning

MODULE 1. e x + c. [You can t separate a demominator, but you can divide a single denominator into each numerator term] a + b a(a + b)+1 = a + b

Intelligent Pharma- Chemical and Oil & Gas Division Page 1 of 7. Global Business Centre Ave SE, Calgary, AB T2G 0K6, AB.

High penetration of renewable resources and the impact on power system stability. Dharshana Muthumuni

1996 Engineering Systems Design and Analysis Conference, Montpellier, France, July 1-4, 1996, Vol. 7, pp

Part a: Writing the nodal equations and solving for v o gives the magnitude and phase response: tan ( 0.25 )

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method.

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Review Problems 3. Four FIR Filter Types

SPH3U1 Lesson 06 Kinematics

CAUSAL INFERENCE. Technical Track Session I. Phillippe Leite. The World Bank

BIOLOGY 101. CHAPTER 17: Gene Expression: From Gene to Protein. The Flow of Genetic Information

Edexcel GCSE Physics

11. DUAL NATURE OF RADIATION AND MATTER

^YawataR&D Laboratory, Nippon Steel Corporation, Tobata, Kitakyushu, Japan

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving.

Pipetting 101 Developed by BSU CityLab

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

(2) Even if such a value of k was possible, the neutrons multiply

Lecture 7: Damped and Driven Oscillations

Electrochemical Reactions

ECE 2100 Circuit Analysis

1. Transformer A transformer is used to obtain the approximate output voltage of the power supply. The output of the transformer is still AC.

Public Key Cryptography. Tim van der Horst & Kent Seamons

ECE 2100 Circuit Analysis

Tree Structured Classifier

Transcription:

ENG2410 Digital Design Sequential Circuits: Part A Fall 2017 S. Areibi Schl f Engineering University f Guelph Week #6 Tpics Sequential Circuit Definitins Latches Flip-Flps Delays in Sequential Circuits Clck Gating 2 Resurces Cmbinatinal Circuits Chapter #6, Man Sectins 6.1 Sequential Circuit Definitin 6.2 Latches 6.3 Flip-Flps A cmbinatinal lgic circuit has: A set f m Blean inputs, A set f n Blean utputs, and The utput depends nly n the current input values N Feedback, n cycles A blck diagram: Cmbinatrial Lgic Circuit 3 m Blean Inputs n Blean Outputs 4 Cmbinatinal vs. Sequential Circuits Cmbinatinal lgic are very interesting and useful fr designing arithmetic circuits(adders, multipliers) r in ther wrds the Data Path f a cmputer. Cmbinatinal circuits cannt remember what happened in the past (i.e. utputs are a functin f current inputs). In certain cases we might need t stre sme inf befre we prceed with ur cmputatin r take actin based n a certain state that happened in the past. Sequential circuits are capable f string infrmatin between peratins. They are useful in designing registers, cunters, and CONTROL Circuits. Examples: 1. Cunters: Remembering States 1. yu start with cunt 0 and then prceed with cunt 1 and then t cunt 2 2. The cunter is an example f a sequential circuit that needs t remember the previus state in rder fr it g t the crrect new state. 3. The utput f the cunter is based n the current state and als the inputs. 2. ATM Machine: 1. Yu insert yur card (state 0) 2. The system will then g t (state 1) that will ask yu t enter yur pin number 3. If successful then the machine will g t (state 2) that will ask yu fr the service required (withdraw cash, determine the balance, ) 4. The ATM machine is yet anther example f a sequential machine that will give the crrect respnse (utput) based n yur input and als n the current state. 3. Cntrl f Appliances: 1. A washing machine is an example f a sequential machine. 2. It starts with an initial state (des nthing!!) 3. It will wait fr sme input frm the user (setting the dials t perfrm a certain task). 4. Based n the input and current state it will mve frm ne state t anther (wash, then rinse then spin ) 5 6 Schl f Engineering 1

Sequential Circuits Infrmatin that is stred in the strage elements represent the state f the system. The utputs will depend n the inputs and present state f the strage elements. Strage Elements Types f Sequential Circuits Tw main types and their classificatin depends n the times at which their inputs are bserved and their internal state changes. Synchrnus State changes synchrnized by ne r mre clcks Asynchrnus Changes ccur independently 7 8 Signal Examples Over Time Clcking f Synchrnus Circuits Time Analg Digital Asynchrnus Synchrnus Cntinuus in value & time Discrete in value & cntinuus in time Discrete in value & time Changes enabled by a Glbal Clck 9 10 Basic Strage (Hw?) 1. Apply lw r high fr lnger than t pd But we are interested in string infrmatin indefinitely! 2. Feedback will hld value Hwever we want inputs t ur circuitry! SR (set-reset) Latches: Replace the inverters with NAND, NOR Gates Basic strage made frm gates The infrmatin can be changed 1 0 1 11 S & R bth 0 in resting state Avid bth frm being 1 at same time 12 Schl f Engineering 2

Latches Operatin Are strage elements that can maintain a binary state indefinitely (as lng as pwer is delivered t the circuit) until directed by an input signalt switch states. Latches are asynchrnus circuits Latches are used t build mre cmplex synchrnus circuits such as Flip Flps. Reset, Q=0 Set, Q=1 Undefined! 13 Keep State 14 SR Latch Add Cntrl Input: SR Latch Similar made frm NANDs An additinal input determines when the state f the latch can be changed! S & R bth 1 in resting state Have t keep bth frm 0 at same time Can we avid the undefined state? 15 16 D-type Latch Standard Symbls Latches N illegal state 1 Circle at input indicates negatin 0 17 18 Schl f Engineering 3

Transparency f Latches Effects f Transparency The state f a latch is allwed t switchby a mmentary change in value n the cntrl input. As lng as C (the trigger ) is high, state can change! This is called transparency What is wrng with transparency? Clck Strage Element Output f ne latch may feedback As sn as the input changes, shrtly thereafter the crrespnding utput changes t match it. The final state will depend n hw lng the clck pulse stays at level lgic 1! (unreliable) We need t predict the utputsat a certain mment in time! Want t change latch state nce Depending n inputs at time f clck 19 20 Flip-Flps Master-Slave SR Flip-Flp Ensure nly ne transitin Tw majr types 1. Master-Slave (level triggered) Tw stage Output nt changed until clck disabled 2. Edge triggered Change happens when clck level changes When Master is enabled, Slave is disabled! Output Q will nt change when inputs change S S C C R R Master SR Latch Slave 21 22 Timing Diagram Have We Fixed the Prblem? Output n lnger transparent Cmbinatinal circuit can use last values New inputs appear at latches Nt sent t utput until clck lw In ne clck cycle we can predict what will happen Nte: Master-Slave = pulse triggered Trace the behavir Is it transparent? 1 0 1 0 23 24 Schl f Engineering 4

JK Flip Flp Master-Slave JK Flip Flp The JK Flip Flp is a mdified versin f the SR Flip Flp. The JK flip flp perfrms three peratins: 1. Set Q t 1 2. reset Q t 0 3. cmplement the utput The J inputsets the flip flp t 1. The K input resetsthe flip flp t 0. When bth J and K are enabled, the utput is cmplemented. 25 26 Symbls Master-Slave Edge-Triggered Flip-Flps Inverted L indicates pstpned utput Circle indicates whether enable is psitive r negative An Edge Triggered Flip-Flp ignres the pulse while it is at a cnstant level and triggers nly during a transitin f the clck signal. New state latched n clck transitin Lw-t-high r high-t-lw Changes when clck high are ignred 27 28 Clck Respnses Edge Triggered D-Flip-Flp We can classify Flip/Flps accrding t the respnse t the clck. D Latch D C S C R SR Latch 29 30 Schl f Engineering 5

Characteristic Tables D FF Characteristic Table Define the lgical prperties f a flip flp by describing its peratins in tabular frm. They define the next state as a functin f the inputs and the present state. Q(t) refers t the present state prir t the applicatin f a clck edge. Q(t + 1) refers t the next state ne clck perid later. Clck edges are nt listed as inputs but are implied by the transitin frm t t t + 1. The Characteristic Equatin: Q(t + 1) = D(t) This indicates that the utput (next state) always fllws the input!! 31 32 Edge-Triggered D Flip Flp: Graphic Symbls The triangle is called: dynamic indicatr Other Flip Flps Other types f flip flps can be cnstructed by using the D flip flp and external lgic. The tw mst cmmnly used are: 1. Edge triggered JK flip flps 2. T flip flps 33 34 JK Characteristic Table Edge-Triggered JK Flip Flp Characteristic Equatin: Q(t+1) = J(t) Q (t) + K (t)q(t) Utilize the equatin t create a JK flipflp frm an existing D flipflp Q(t+1) = J(t) Q (t) + K (t)q(t) 35 36 Schl f Engineering 6

JK- Characteristic Equatin T Flip Flp J K Q CLK Q+ 0 0 0 ^ 0 0 0 1 ^ 1 0 1 0 ^ 0 0 1 1 ^ 0 1 0 0 ^ 1 1 0 1 ^ 1 1 1 0 ^ 1 1 1 1 ^ 0 Q JK 00 01 11 10 0 0 1 1 0 1 1 0 0 1 The T Flip Flp is a cmplementing flip flp. Hw can we btain a T Flip Flp frm a JK Flip Flp r D Flip Flp? T Q(t+1) = J(t) Q (t) + K (t)q(t) Q(t+1) = TQ (t) + T Q(t) 37 38 T Flip Flp Symbls Edge-Triggered TheT flip flp can be btained frm a JK flip flp when inputs J and K are tied tgether. Arrw indicates edge trigger 39 40 Characteristic Equatins Direct Inputs The D flip flp can be expressed as: Q(t + 1) = D The JK flip flp can be expressed as: Q(t + 1) = JQ + K Q The T flip flp can be expressed as: Q(t + 1) = TQ + T Q Set/Reset independent f clck Direct set r preset Direct reset r clear Often used fr pwer-up reset Characteristic Tables are used t 1. Derive the characteristic equatins, 2. Analyze Sequential Circuits. 41 42 Schl f Engineering 7

VHDL Design Styles VHDL Fr Sequential Circuits dataflw Cncurrent statements VHDL Design Styles structural Cmpnents and intercnnects behaviral (algrithmic) Sequential statements Registers State machines Test benches Several techniques have been discussed in class t describe the architecture f cmbinatinal lgic circuits: 1. Data Flw 2. Structural Statements used in Data Flw and Structural descriptins can be executed in parallel i.e. cncurrently. Anther technique t describe the architecture f any circuit is t use Behaviral descriptin. The prcess statementis usually used t describe sequential designs. The prcess statementcnsists f nly sequential statements 43 44 VHDL Fr Sequential Circuits VHDL fr Psitive Edge Triggered D-FF T describe sequential circuits we usually use the prcess statement. A prcess statement cnsists f 1. Sensitivity list Prcess (CLK, RESET) This list enumerates exactly which signals causes the prcess statement t be executed. (Only events n these signals cause the prcess statement t be executed!) 2. Declarative regin Prcess (CLK, RESET) (declare lcal vars) Begin.. END -- psitive Edge-Triggered D flip-flp with reset -- VHDL Prcess Descriptin library ieee; use ieee.std_lgic_1164.all; entity dff is prt(clk, RESET, D : in std_lgic; Q : ut std_lgic); end dff; architecture pet_pr f dff is begin prcess (CLK, RESET) begin if(reset = `1 ) then Q <= `0 ; elsif(clk event and CLK = `1 ) then --yu can use rising_edge(clk) instead! Q <= D; end if; end prcess; end; 45 46 Flip-Flp Timing Setup time (t s ) time that D must be available befre clck edge Hld time (t h ) time that D must be stable after clck edge Summary Cmbinatinal lgic are very interesting and useful fr designing arithmetic circuits(adders, multipliers) r in ther wrds the Data Path f a cmputer. Sequential circuits are capable f string infrmatin between peratins. They are useful in designing registers, cunters, and CONTROL Circuits. Latches are strage elements that are asynchrnus, transparent and are used t build mre cmplex synchrnus circuits such as Flip-Flps. Flip-flps avid the transparency prblem faced by latches and are either Master-Slave pulse active r edge triggered. Characteristic tables will be used t analyzethe behavir f sequential circuits. 47 48 Schl f Engineering 8

Cmparisn Synchrnus Easier t analyze because can factr ut gate delays Speed f the system is determined by the clck (maybe slwed!) Asynchrnus Ptentially faster Harder t analyze We will mainly lk at synchrnus 50 Analysis f the JK Circuit Prpagatin Delay The circuit applied t the D input is: D = JQ + K Q I. If J = 1 and K = 0, D = Q + Q = 1 (Set) II. If J = 0 and K = 1, D = 0 (Reset) III. If J = K = 0, D = Q, (N Change) IV. If J = K = 1, D = Q (Cmplement) Prpagatin delay time after edge when utput is available 51 52 Psitive D-Type Edge Triggered Have We Fixed the Prblem? D C S C R Output n lnger transparent Cmbinatinal circuit can use last values New inputs appear at latches Nt sent t utput until clck lw In ne clck cycle we can predict what will happen But changes at input f FF when clck high trigger next state Transient state where S ges high caused by gate delays As clck faster, mre prblems Have t guarantee circuit settles while clck lw Nte: Master-Slave = pulse triggered 53 54 Schl f Engineering 9

Clck Pulse Requirements Clck Gating Basically a max clck frequency Can gate clcks (t keep any FF frm changing states, fr example) Clck gating used t reduce pwer drain Hwever, can cause clck skew Clck edges at different times n different FFs Clck skew als caused by wire lengths ver chip 55 56 T Flip Flp Master-Slave JK Flip Flp The T flip flp can als be btained frm a D flip flp by using an XOR as the input fr D. Q(t+1) = J(t) Q (t) + K (t)q(t) 57 58 Schl f Engineering 10