1 Sequential Logic The Forbidden Zone Ellen Spertus MCS 111 September 10 and 12, 2002.

Slides:



Advertisements
Similar presentations
Lab 08: SR Flip Flop Fundamentals:
Advertisements

Sequential Logic Circuits. Set-Reset Latch The Set-Reset latch or bistable is a simple sequential logic circuit that remembers what has happened to the.
Digital Techniques Fall 2007 André Deutz, Leiden University
Lecture 13: Sequential Circuits
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.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Give qualifications of instructors: DAP
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
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.
Sequential logic circuits. 2 Outline Sequential Circuit Models –Asynchronous –Synchronous Latches Flip-Flops.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Circuits require memory to store intermediate data
IKI a-Latches & Flip-flops
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
LOGIC GATES ADDERS FLIP-FLOPS REGISTERS Digital Electronics Mark Neil - Microprocessor Course 1.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
Latches Section 4-2 Mano & Kime. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
Sequential Logic Design
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
Digital Electronics and Computer Interfacing Tim Mewes 3. Digital Electronics.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
Chapter 4 Gates and Circuits.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Circuit, State Diagram, State Table
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Review of Digital Logic Design Concepts OR: What I Need to Know from Digital Logic Design (EEL3705)
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Logic Design / Processor and Control Units Tony Diep.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Ellen Spertus MCS 111 October 16, 2001 Review. 2 What you will learn this semester Given devices that implement simple boolean functions… Understand how.
Boolean and Sequential Logic Last week – Basic Gates AND OR NOT NOR XOR NAND.
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,
EKT 121 / 4 ELEKTRONIK DIGIT I
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
 Flip-flops are digital logic circuits that can be in one of two states.  Flip-flops maintain their state indefinitely until an input pulse called a.
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Latches, Flip Flops, and Memory ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Combinational circuits
Jeremy R. Johnson Mon. Apr. 3, 2000
AWIM Series Lawndale High School Experiment 6 Dec, 2017
Finite State Machine Continued
Presentation transcript:

1 Sequential Logic The Forbidden Zone Ellen Spertus MCS 111 September 10 and 12, 2002

2 What does a computer do? Calculates mathematical functions Allows different operations to be specified

3 Combinational logic Everything we’ve done so far Outputs depend only on the inputs No cycles (loops)

4 Sequential logic What we’ll look at this week Outputs depend on –inputs –previous values (“state”) Cycles (loops) in circuits Purpose?

5 Useful memory unit Remember old value Set to high Reset to low

6 RS-latch symbol and truth table Q = R + ~Q ~Q = S + Q

7 RS-latch implementation Q = R + ~Q ~Q = S + Q

8 RS-latch timing diagram

9 RS-latch dangerous transition 1  01  0 1  01  0 0 0  0 0 

10 Low-level summary Meaning of RS? –R –S Behavior –R=0, S=0  –R=0, S=1  –R=1, S=0  –R=1, S=1 

11 High-level summary: RS latch Capabilities: Limitations: What improvements would we like?

12 Preventing forbidden transition How can we prevent R and S from simultaneously changing from 1 to 0?

13 D-latch

14 D-latch behavior

15

16 4-bit D-latch

17 Counter: first attempt

Behind the Curtain18 Behind the curtain

Behind the Curtain19 Representation of 0s and 1s Logical zero (false):0 –.8 Volts Logical one (high):2 – 5 Volts What is:.4 Volts 3.5 Volts 1.2 Volts

Behind the Curtain20 The Forbidden Zone A range of voltages that represent neither zero nor one; specifically:

Behind the Curtain21 Inverter (not gate) behavior If input voltage is low, output is: If input voltage is high, output is: In input voltage is in between, output is: 0 5

Behind the Curtain22 How to deal with forbidden zone ? Never allow any point in the circuit to have a voltage in the forbidden zone.

Behind the Curtain23 A closer look at a “square” wave time voltage

Behind the Curtain24 We can’t avoid the forbidden zone You can’t get from here to there without going in between.

Behind the Curtain25 How to deal with forbidden zone ? Never allow any point in the circuit to have a voltage in the forbidden zone. Never allow a value in the forbidden zone to be an input to a gate.

Behind the Curtain26 Propagation delays Every gate has a propagation delay, the time it takes to make the complete transition. During this period, the result may be in the forbidden zone. After the propagation delay, the result will not be in the forbidden zone.

Behind the Curtain27 Combined propagation delays If each gate has a propagation delay of 5 ns, what is the total propagation delay? Meaning:

Behind the Curtain28 How to deal with forbidden zone? Never allow any point in the circuit to have a voltage in the forbidden zone. Never allow a value in the forbidden zone to be an input to a gate. Don’t look at an output until after the propagation delay.

29 Counter: first attempt

30 The problem If we have cycles in our circuit, values in the forbidden region will propagate through the circuit, contaminating all data.

31 How to deal with forbidden zone ? Don’t look at an output until after the propagation delay -If no loops, just wait out propagation delay -If loops, insert a barrier to prevent forbidden values from contaminating the rest of the circuit

32 D flip-flop

33 D flip-flop behavior Only accept new data when Otherwise, keep the same data

34 Counter: correct

35 Counter: correct (close-up)

36 Timing diagram

37 LS377: octal D-type flip-flop OE = output enable (active low) Inputs D7-D0 Outputs Q7-Q0 Clock input

38 Wiring diagrams Shows logical shape Has chip number Includes pin numbers in logical order (outside chip) Includes signal names (inside chip) Bubble indicates active-low input “nc” stands for:

39 Looking ahead Assignments –Lab 1 due tomorrow (September 13) –Homework 3 due Tuesday (September 19) –Lab 2 due next Friday (September 20) Topics –You now know the basics –Start studying assembly language from Hennessy and Patterson