Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No. 12-1 Chapter #6: Sequential Logic Design 6.1 -- Sequential Switching Networks.

Slides:



Advertisements
Similar presentations
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.
Advertisements

11/12/2004EE 42 fall 2004 lecture 311 Lecture #31 Flip-Flops, Clocks, Timing Last lecture: –Finite State Machines This lecture: –Digital circuits with.
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Sequential Logic Building Blocks – Flip-flops
1 Sequential Ckts, Latches and Timing Issues Today: Sequential Circuits, LatchesFirst Hour: Sequential Circuits, Latches –Section of Katz’s Textbook.
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,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Sequential Circuits. 2 ياداوري  آموزش تکنيک هاي طراحي و پياده سازي سيستم هاي پيچيده: سيستم:  داراي ورودي ها، خروجي ها و رفتار مشخصي است −اين رفتار توسط.
Chapter #6: Sequential Logic Design
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.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Page 1 Sequential Logic Basic Binary Memory Elements.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
INTRODUCTION TO SEQUENCIAL CIRCUIT
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.
Lecture 9 Memory Elements and Clocking
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
11/15/2004EE 42 fall 2004 lecture 321 Lecture #32 Registers, counters etc. Last lecture: –Digital circuits with feedback –Clocks –Flip-Flops This Lecture:
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Chapter #6: Sequential Logic Design 6.2 Timing Methodologies
ELEC 256 / Saif Zahir UBC / 2000 Sequential Logic Design Sequential Networks Simple Circuits with Feedback R-S Latch J-K Flipflop Edge -Triggered Flip-Flops.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
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.
1 Flip Flops, Registers Today: Latches, Flip FlipsFirst Hour: Types of Latches, Flip Flips –Section of Katz’s Textbook –In-class Activity #1.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Chap 4. Sequential Circuits
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Digital Integrated Circuits for Communication
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
6-1 Programmable and Steering Logic Chapter #6: Sequential Logic Design.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential logic circuits
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Flip Flops, Registers Today: First Hour: Types of Latches, Flip Flips
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Design: Sequential Logic Principles
Chapter #6: Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
CSE 370 – Winter Sequential Logic - 1
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
CSE 370 – Winter Sequential Logic-2 - 1
SEQUENTIAL CIRCUITS __________________________________________________
FLIPFLOPS.
Presentation transcript:

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Simple Circuits with Feedback Simple memory elements created from cascaded gates Simplest gate component: inverter Basis for commercial static RAM designs Cross-coupled NOR gates and NAND gates also possible These two types of memory elements form the basic building blocks of the latch and flip-fllop memory elements

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Simple Circuits with Feedback 1. Cascaded Inverters: (a) Static Memory Cell "0" "1" Selectively break feedback path to load new value into cell. CMOS transmission gates are used to implement a 2:1 MUX on the inputs to the memory element. When LD (load) is asserted, the feedback path is broken and the value at input A can be stored in the element. When LD is unasserted, the input from A is broken, and feedback path is reasserted. Many logic simulators have difficulty modeling these signal flows because of the critical nature of the timing of the signals in these kinds of circuits.

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Inverter Chains -- (b) Ring Oscillators Odd # of stages leads to ring oscillator Snapshot taken just before last inverter changes Repeats every tp time units --- period Duty cycle -- percentage of time a signal is high during the period Output high propagating thru this stage Timing Waveform: A (=X) B C D E Period of Repeating Waveform (tp) Gate Delay (td) tp = 2n * td n = # inverters each node stays low or high for exactly 5 gate delays

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Inverter Chains Propagation of Signals through the Inverter Chain

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks 2. Cross-Coupled NOR (or NAND) Gates as a basic Memory Element R R S S Q \Q R = 1 and S=0, Q output is reset to 0, Q’=1 R = 0 and S = 1, Q is set to 1, Q’ =0. R = 0 and S = 0, outputs hold their current vals -- Q=0, Q’ =1 R - Reset input, S -- Set input ==> R-S latch Just like cascaded inverters, with capability to force output to 0 (reset) or 1 (set) Two alternatives to represent cross-coupled NORs. R-S Latch R S Q Q’

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Timing Waveform Reset Hold Set Forbidden State ResetSet Forbidden State Race When R=S=0, the NOR gates behave like invertors, switching the outputs back to 0. This oscillatory behavior is called race condition.

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks State Behavior of R-S Latch Truth Table Summary of R-S Latch Behavior - - reset -- set

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Logic Networks Theoretical R-S Latch State Diagram State Diagram: node - repr state of the circuit arc - labeled with input combinations that cause a transition from one state to another ResetSet Hold

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Logic Networks Observed R-S Latch Behavior Very difficult to observe R-S Latch in the 11 state Ambiguously returns to state 01 or 10 A so-called "race condition" Reset Set

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Definition of Terms Setup Time (Tsu) Clock: Periodic Event, causes change from current state to next state rising edge, falling edge, high level, low level There is a timing "window" around the clocking event during which the input must remain stable and unchanged in order to be recognized There is a timing "window" around the clocking event during which the input must remain stable and unchanged in order to be recognized Minimum time before the clocking event by which the input must be stable Hold Time (Th) Minimum time after the clocking event during which the input must remain stable Output of a sequential circuit is a function of the current inputs and any signals that are fed back to the inputs. Feedback signals are called the current state.

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Latches vs. Flipflops Input/Output Behavior of Latches and Flipflops Type When Inputs are Sampled When Outputs are Valid unclocked always propagation delay from latch input change level clock high propagation delay from sensitive (Tsu, Th around input change latch falling clock edge) positive edge clock lo-to-hi transition propagation delay from flipflop (Tsu, Th around rising edge of clock rising clock edge) negative edge clock hi-to-lo transition propagation delay from flipflop (Tsu, Th around falling edge of clock falling clock edge) master/slave clock hi-to-lo transition propagation delay from flipflop (Tsu, Th around falling edge of clock falling clock edge) Primitive memory elements fall into two classes: latches and flip-flops

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Level-Sensitive Latch Schematic: aka Gated \R-\S Latch R=S=1hold state R=S=0forbidden state R’ = 1, S’=0set R’=0, S’=1reset Enable signal is active low. When it is high the outputs are in a holding state. R S Q 0 0 unstable reset set 1 1 hold

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Bubble here if negative edge triggered device Timing Diagram: Behavior the same unless input changes while the clock is high Edge triggered device sample inputs on the event edge Transparent latches sample inputs as long as the clock is asserted D Clk Q Q Output ‘Q’ = Input ‘D’ Q+ = D

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Elements Typical Timing Specifications: Flipflops vs. Latches 74LS74 Positive Edge Triggered D Flipflop Setup time Hold time Minimum clock width Propagation delays (low to high, high to low, max and typical) All measurements are made from the clocking event that is, the rising edge of the clock

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Typical Timing Specifications: Flipflops vs. Latches 74LS76 Transparent Latch Setup time Hold time Minimum Clock Width Propagation Delays: high to low, low to high, maximum, typical data to output clock to output Measurements from falling clock edge or rising or falling data edge

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Elements R-S Latch Revisited Truth Table: Next State = F(S, R, Current State) Derived K-Map: Characteristic Equation: Q+ = S + R Q t Qt = Q(t +  ) HOLD RESET SET NOT ALLOWED

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks J-K Latch How to eliminate the forbidden state of the R-S latch? Idea: use output feedback to guarantee that R and S are never both one J, K both one yields toggle Characteristic Equation: Q+ = Q K + Q J HOLD RESET SET TOGGLE JK Q(t)

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks J-K Latch: Race Condition Set Reset Toggle Race Condition Toggle Correctness: Single State change per clocking event Solution: Master/Slave Flipflop Since toggle values of J,K = 11 remain asserted to RS while the output is changing, thus flipping the value of RS presented to internal latch, causing it to toggle again (continues until toggle removed).

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Network Master/Slave J-K Flipflop Master Stage Slave Stage Sample inputs while clock high Sample inputs while clock low Uses time to break feedback path from outputs to inputs!

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Network Master/Slave J-K Flipflop Correct Toggle Operation

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Edge-Triggered Flipflops 1's Catching: a glitch on the J or K inputs leads to a state change! forces designer to use hazard-free logic Solution: edge-triggered logic (sample inputs only on rising or falling clock edge) Negative Edge-Triggered D flipflop 4-5 gate delays setup, hold times necessary to successfully latch the input Characteristic Equation: Q+ = D Negative edge-triggered FF when clock is high Now have problem of 1’s catching.

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Network Edge-triggered Flipflops Step-by-step analysis Negative edge-triggered FF when clock goes high-to-low data is latched Negative edge-triggered FF when clock is low data is held If D=1, R-S latch sets If D=0, R-S latch resets Changes to 0, gates 2,4,5 hold their previous values D changes

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks Positive vs. Negative Edge Triggered Devices Positive Edge Triggered Inputs sampled on rising edge Outputs change after rising edge Negative Edge Triggered Inputs sampled on falling edge Outputs change after falling edge

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Toggle Flipflop Single input that causes the stored state to be complemented when the input is asserted. Not normally found in stardard parts catalogs because they are so easy to construct from other flip flops Formed from J-K with both inputs wired together Sequential Switching Networks J K Q Q’ T J K Q Q T Q Q

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Sequential Switching Networks

Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No HW #12 -- Section 6.1