Menu. Part 2 of 3701: Sequential Digital Machines Latches and Flip-Flops: >S-R latches >D latches >T latches. Comb. n. Logic. m Q.

Similar documents
ELCT201: DIGITAL LOGIC DESIGN

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

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Synchronous Sequential Logic

Menu. Master-Slave Flip-Flop

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

Chapter 7 Sequential Logic

Chapter #6: Sequential Logic Design

Sequential Logic Circuits

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Lecture 7: Logic design. Combinational logic circuits

Chapter 4. Sequential Logic Circuits

Gates and Flip-Flops

Digital Circuits ECS 371

Synchronous Sequential Circuit

Sequential vs. Combinational

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Sequential Circuits Sequential circuits combinational circuits state gate delay

Digital Logic Design - Chapter 4

Chapter 14 Sequential logic, Latches and Flip-Flops

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Problem Set 9 Solutions

CHW 261: Logic Design

EET 310 Flip-Flops 11/17/2011 1

Different encodings generate different circuits

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Digital Electronics Final Examination. Part A

Lecture 9: Digital Electronics

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Topic 8: Sequential Circuits

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

I. Motivation & Examples

Digital Fundamentals

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

Clocked Synchronous State-machine Analysis

Latches. October 13, 2003 Latches 1

Sequential Circuit Analysis

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

CPE100: Digital Logic Design I

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Chapter 5 Synchronous Sequential Logic

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

UMBC. At the system level, DFT includes boundary scan and analog test bus. The DFT techniques discussed focus on improving testability of SAFs.

Fundamentals of Computer Systems

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

ELCT201: DIGITAL LOGIC DESIGN

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

State & Finite State Machines

State Machines ELCTEC-131

State & Finite State Machines

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Chapter 6 Introduction to state machines

5. Sequential Logic x Computation Structures Part 1 Digital Circuits. Copyright 2015 MIT EECS

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

NTE74HC109 Integrated Circuit TTL High Speed CMOS, Dual J K Positive Edge Triggered Flip Flop w/set & Reset

Using the NOT realization from the NAND, we can NOT the output of the NAND gate making it a NOT NOT AND or simply an AND gate.

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

ECE 341. Lecture # 3

Digital Control of Electric Drives

Overview of Chapter 4

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

Digital Fundamentals

ELEN Electronique numérique

ALU A functional unit

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

ENGR4300 Fall 2005 Test 3A. Name. Section. Question 1 (25 points) Question 2 (25 points) Question 3 (25 points) Question 4 (25 points)

Lecture 14 Finite state machines

Mealy & Moore Machines

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

ALU, Latches and Flip-Flops

Chapter 13. Clocked Circuits SEQUENTIAL VS. COMBINATIONAL CMOS TG LATCHES, FLIP FLOPS. Baker Ch. 13 Clocked Circuits. Introduction to VLSI

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

State and Finite State Machines

Introduction to Digital Logic

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Philadelphia University Student Name: Student Number:

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Sample Test Paper - I

Lecture 13: Sequential Circuits, FSM

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Preparation of Examination Questions and Exercises: Solutions

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

Lecture 13: Sequential Circuits, FSM

Synchronous Sequential Logic Part I

Counters. We ll look at different kinds of counters and discuss how to build them

DIGITAL LOGIC CIRCUITS

LECTURE 28. Analyzing digital computation at a very low level! The Latch Pipelined Datapath Control Signals Concept of State

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Transcription:

Menu Part 2 of 3701: equential Digital Machines Latches and Flip-Flops: >- latches >D latches >T latches Look into my... 1 Topic 2 : equential Digital Machines or equential Logic LID from Lecture #2 X Comb. n Logic m Network + Y k Memory k ach is called a state a summary of the past or historical behavior. Y = F(,X) There are m equations or m scalar functions. + = G(,X) There are k equations or k scalar functions. 2 1

equential Logic and Memory General Model + = F(,X) Y = G(,X) Observation: All circuits so far have had no feedback. What happens if we add feedback? >f 20MHz >We call this a un-gated oscillator or clock >Z turns on & off >Go to LogicWorks (stick/unstick) X Combinational Y Logic + Memory Z = H L H L Z = L H L H Z 3_Nots.cct t Z 3 Consider what happens if we replace the first Level-hifter with a NAND gate We call this a gated- oscillator or clock X turns it on & off >Go to LogicWorks Note that the circuit is stable! What if we connect the following circuit Gated-Oscillators X Y When X=1 t Z Y Gated_Osc.cct 4 2

Latch: The Beginning Consider the following circuit: K-Map for z 1 (everything active-high) /x 1 z 1 = /x 1 + x 0 z 1 x 0 z 1.cct Tracing through the circuit: z 1 x 0 x 1 z 0 z 1 z 0 z 1 L L L H H H H L L H H L L H L H H L H L H H H L H L L H H H L H H L H L H H L L H H H H L H This device is called a latch or Flip- Flop. It flip flops between 2 states. 5 Latch Interpretations If we change the names of this device, we can better relate it to our model. Below makes sense except when x 0 and x 1 are both false (L). x 0 z 0 x 0 + z 1+ = /x 1 + x 0 z 1 x 1 z 1 x 1 + A better interpretation: Noticing that x 1 (H)=L sets the device (z 1 =H, =1) and x 0 (H)=L resets the device (z 1 =L, =0 when x 1 (H)=1=H), we can call: >x 0 (H) /x 0 (L)=(L) x 1 (H) /x 1 (L)=(L) z 1 (H) (H) Demonstrate latch in LogicWorks _circuit.cct + = + / 6 3

- Latch edrawing the latch circuit (and choosing z 0 to as the active-low output and z 1 as the active-high output); and are the active-low inputs:.cct 7 - Latch Using a truth table >When ( = 1) ( = 1), (H)=1 & (L)=0 These are a contradictions. No Boolean variable can be like this! What if & switch states (from 0 1 to 1 0, or from 1 0 to 0 1) but not simultaneously (so 1 1 for some time)? (eal life) Answer: The next state is uncertain! Convention: The case where =1 & = 1 simultaneously is forbidden!! Thus, when =1 is forbidden we still get : + = + / (L) (H) (L) (H) 000 0 1 0 1 001 0 0 010 0 1 1 1 011 0 0 100 0 1 101 0 0 0 0 110 1 1 111 1 1 / 8 4

- Latch + = + / edrawing this circuit using mixed-logic we have the traditional form:.cct (L) (H) (L) (L) 9 NO ealization of - Previous page has the NAND realization of the - latch: + = + /.cct Move feedback bubbles to outputs (& reverse output active levels): emove input bubbles; change activation levels of & : 10 5

Feedback and Latches Observation: The feedback latches the signal. ince 1, if = 1 then becomes 1 & it reinforces the input to the gate so that even if becomes 0 the output remains = 1. The same is true when = 1 ( must be 0) & reinforces the state. We note that the changes occur only when and change. This is called an asynchronous or unclocked FF model, but more appropriated this is called a latch. Latch Latch 11 Gated-latches Often in digital circuits (e.g., computers) signals change are synchronized to a clock pulse (not necessarily a continuous or oscillator clock). is active-high enable (almost a clock) >This is a third type of enable X X Do it in LogicWorks! _FFa.cct Latch Gated (nabled) Latch 12 6

Gated- ince the signal gates the inputs, &, we call this a gated-clock -latch a gated-clock -FF (since it is almost synchronous), or my favorite: a enabled -Latch When we refer to synchronous logic, the ANDing (gating) of the inputs (and therefore outputs) is UNDTOOD >ven though + =f(, ) the is assumed and generally not written in the equation, e.g., + = ( + / ) Adding more functionality to the basic -latch yields other latches and FFs in commercially available configurations Observation: In most synchronous circuits, the clock is a pulse and an edge activates the outputs. The synchronizing clock pulse is often derived from other logic in a circuit. X X 13 with Pre-et/Clear Pre-set/pre-clear inputs: Add these to force the latch to asynchronously et or eset the outputs Pre-et Pre-et X X (L) (H) and can not simultaneously true and can not simultaneously true and Pre-et can not simultaneously true Pre-et and can not simultaneously true Demo in LogicWorks! P PC P PC _FFb.cct 14 7

Delay Latch Delay-, Data-, or D-Latch D-Latch + = D + = ( + / )=(D + D ) Pre-et D P PC D D-Latch using -Latch = D(1+)= D Pre-et P PC 15 Toggle-latch or T-latch Toggle Latch - Useful in counters A Toggle or T-FF changes state (no matter what the value of ) when the toggle input is true When T=1, changes 0 1 or from 1 0. When T= 0, holds. Pre-et T T T_latch.cct Gated-Toggle Latch Pre-et (L) (H) 16 8

Problem with Gated- or Unclocked- Toggle Latch Problem with this circuit is that if stays on too long (longer than the gate delays), as long as T=1, the circuit will oscillate @Freq 1/t PD t PD gate propagation delay T_FF.cct T Pre-et (L) (H) eal T-FFs do not have this problem, i.e., they are not designed as above (i.e., no T-latches!) T 17 olution to Gated- or Unclocked-Latch Problem To solve this, we can add a capacitor to differentiate the CLK, and a diode to get rid of the negative blip nable To CLK nable Blip To CLK Blip is the output of the cap (used as a differentiator) The Zener diode chops off the negative part of blip Logic designers want to help you avoid this, (1) They add the capacitor/diode for you O (2) They design edge-only trigger devices O (3) They solve it some other way (digitally) These solutions are built-in by the IC manufacturer 18 9

The nd! 19 10