Logic level sequential blocks Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA)

Slides:



Advertisements
Similar presentations
Chapter 6 -- Introduction to Sequential Devices. The Sequential Circuit Model Figure 6.1.
Advertisements

Chapter 6 -- Introduction to Sequential Devices
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
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.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
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.
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Circuits require memory to store intermediate data
EET 1131 Unit 10 Flip-Flops and Registers
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
CSE 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
RT level combinational blocks Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA)
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
Digital networks classification Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA)
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Karnaugh map covering Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA)
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Sequential logic circuits
EKT 121 / 4 ELEKTRONIK DIGIT I
Synchronous Sequential Logic Part I
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
5 - 1 Chapter 6 Analysis of Sequential Systems Chapter 6 Analysis of Sequential Systems 6.0 Introduction  Clocked System Clock A signal that alternates.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Dept. of Electrical Engineering
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Sequential Circuits.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Chapter #6: Sequential Logic Design
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip-FLops and Latches
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Chapter 11 Sequential Circuits.
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
Chapter 6 -- Introduction to Sequential Devices
Synchronous sequential
Synchronous Sequential
SEQUENTIAL CIRCUITS __________________________________________________
Presentation transcript:

Logic level sequential blocks Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA) Lecture 5.2

2 5.2 Goal  This lecture presents the set of functional sequential blocks that are usually considered to be “elementary” or “basic” at the logic level.

3 5.2 Prerequisites  Module 3 and 4

4 5.2 Homework  No particular homework is foreseen

5 5.2 Further readings  Students interested in making a reference to a text book on the arguments covered in this lecture can refer, for instance, to:  M. Morris Mano, C.R.Kime: “Logic and Computer Design Fundamentals,” 2nd edition updated Prentice Hall, Upple Saddle River, NJ (USA), 2001, (chapter 4, pp )

6 5.2 Further readings or to:  J. P. Hayes: “Introduction to Digital Logic Design,” Addison Wesley, Reading, MA (USA), 1994, (chapter 6, pp )

7 5.2 Outline  Latch  Flip-flop  Scannable Flip-flop

8 5.2 behavior structure physical system RT logic device Logic level elementary sequential blocks Devices capable of storing a single bit: latchlatch flip-flopflip-flop

9 5.2 CLK D Latch vs. Flip-flop

CLK D Q latch Latch vs. Flip-flop

CLK D Q Q flip-flop latch Latch vs. Flip-flop

Pro’s & Con’s  A latch is a Mealy machine  A flip-flop is a Moore machine  Flip-flops improve testability

Latch A latch is a single-bit storage device implemented as a Mealy machine. The most widely used is the so called D latch.

D latch 1D Q QN C1 IEEE Symbol

D latch 1D Q QN C1 IEEE Symbol Characteristic Table

D latch 1D Q QN C1 IEEE Symbol Characteristic Table Describes the logical properties of the latch by describing its operation in tabular form

D latch 1D Q QN C1 IEEE Symbol CDQQN 0-Q -1 QN Characteristic Table Previous value of Q

Waveforms C D Q CD1S 1RQQN 0-11Q -1 QN

D C Q QN Hazard-free polarity hold latch Within the in-house developed LSSD design methodology, IBM uses the following implementation:

Set-Reset latch  The Set-Reset latch can be considered the elementary building block for the implementation of all synchronous sequential circuits.  It has:  2 inputs S and R  2 output Q and QN, such that QN = Q’. S R Q QN

Set-Reset latch  The Set-Reset latch can be considered the elementary building block for the implementation of all synchronous sequential circuits.  It has:  2 inputs S and R  2 output Q and QN, such that QN = Q’. Of the 4 combinations of S and R:   One forces Q QN = 0 1 (reset)   One forces Q QN = 1 0 (set)   One lets Q QN unchanged   One is forbidden S R Q QN

Set-Reset latch  The Set-Reset latch can be considered the elementary building block for the implementation of all synchronous sequential circuits.  It has:  2 inputs S and R  2 output Q and QN, such that QN = Q’. Of the 4 combinations of S and R:   One forces Q QN = 0 1 (reset)   One forces Q QN = 1 0 (set)   One lets Q QN unchanged   One is forbidden S R Q QN The correspondence input combination  performed operation is technology and implementation dependent

Set-Reset latch (nand implementation) S R Q QN

Set-Reset latch (nand implementation) S R S R Q QN Q Q -1

S R Q Q -1 Karnaugh Map Set-Reset latch (nand implementation)

S R Q Q -1 S RQ QN Q -1 QN -1 Characteristic Table Karnaugh Map Set-Reset latch (nand implementation)

S R Q -1 S RQ QN Q -1 QN -1 Characteristic Table Karnaugh Map Set-Reset latch (nand implementation) This combination is forbidden due to:   It forces both outputs to 1, thus preventing QN = Q’   a transition S R = 00  S R = 11   forces the circuit to enter an unpredictable state, whose value depends from internal delays.

S R Q Q -1 S RQ QN Q -1 QN -1 Q -1  QSR 0     1- 1 Transition Table Characteristic Table Karnaugh Map Set-Reset latch (nand implementation)

S R Q QN Set-Reset latch (nor implementation)

S R Q Q -1 S RQ QN 00Q -1 QN Q -1  QSR 0     10 - Transition Table Characteristic Table Karnaugh Map Set-Reset latch (nor implementation)

Gated Set-Reset latch It’s a variation of the Set-Reset latch, in which data are allowed to enter the latch when a given control signal C is asserted, only. 1S 1R Q QN C1 Symbol IEEE

SiSi RiRi Q QN 1S 1R C1 Possible implementation

C1 1S1RS i R i Q QN 0--11Q -1 QN Q -1 QN Excitation table

Outline  Latch  Flip-flop  Scannable Flip-flop

behavior structure physical system RT logic device Devices capable of storing a single bit: latchlatch  flip-flop Logic level elementary sequential blocks

Flip-Flop A flip-flop is a single-bit storage device implemented as a Moore machine.

Temporal constraints Flip-flops works properly iff some temporal constraints are satisfied.

Set-up time The time interval in which data inputs and control inputs must be stable before the clock event

Hold time The time interval in which data inputs and control inputs must be stable after the clock event

FF classification w.r.t. data inputs According to their behavior w.r.t. data inputs, flip- flops are usually classified as:  D  SR  JK  T.

D behavior D Q QN CLK DQ0011DQ Characteristic Table

Q -1  QD 0  00 0  11 1  00 1  11 -  00 -  11 DQ0011DQ Transition Table Characteristic Table

Caveat Distinction between data inputs and control inputs is context and application dependent.

Example (D = data input) At any CLK, it stores the input data D Q CLK

Example (D = control input) If ( D = 0 ) thenforce Q=0 elseforce Q=1 D Q CLK

Set-Reset behavior S R Q QN CLK S RQ QN Q -1 QN -1

Q -1  QSR 0       101 S RQ QN Q -1 QN -1 Transition Table Characteristic Table

JK behavior J K Q QN CLK J KQ 00Q QN -1

Q -1  QJK 0       110 J KQ 00Q QN -1 Transition Table Characteristic Table

D FF implemented by a JK FF D K Q QN CLK J

T behavior T Q QN CLK TQ 0Q -1 1QN -1

Q -1  QT 0  00 0  11 1  01 1  10 -  0? -  1? TQ 0Q -1 1QN -1 Transition Table Characteristic Table

Caveat A T type flip-flop cannot be initialized: if you don’t know the value of the output, acting only on the input T, you cannot state the value of the output.

T FF implemented by a JK FF T K Q QN CLK J

T FF implemented by a D FF T D Q QN CLK

D FF implemented by a T FF D T Q QN CLK

Dlatch D FF positive edge triggered implemented by latches Q QN CLK D Dlatch D D A Master-slave implementation

Waveforms CLK D Q A Dlatch Q QN CLK D Dlatch D D A

D FF positive edge triggered implemented in TTL logic (‘74) preset clear CLK D Q QN

The D FF as a library cell A D flip flop is a sequential functional block able to perform the following operations:  asynchronous clear  synchronous clear  synchronous preset  data parallel load  stored data hold.

Flip flop D: Flip flop D: I/O signals Input Data signals: D Output Data signals: Q, QN Clock signal: CLK Reset signal: ASYNC_CLR Input Control signals: CLK_EN, SYNC_CLR, PRESET Output Control signals:none

Flip flop D: symbol D ASYNC_CLR SYNC_CLR CLK_EN CLK Q QN PRESET

Flip flop D: Asynchronous clear D ASYNC_CLR SYNC_CLR CLK_EN Q QN PRESET - 1 ASYNC_CLR = 1  Q = 0 = 1 QN = 1 CLK

Flip flop D: Synchronous clear  0 D ASYNC_CLR SYNC_CLR CLK_EN Q QN PRESET - 1 ASYNC_CLR = 0 CLK_EN = 1 SYNC_CLR = 1 CLOCK   Q = 0 = 1 QN = 1 CLK

Flip flop D: Synchronous preset  1 D ASYNC_CLR SYNC_CLR CLK_EN Q QN PRESET 1 0 ASYNC_CLR = 0 CLK_EN = 1 SYNC_CLR = 0 PRESET = 1 CLOCK   Q = 1 = 0 QN = 0 CLK

Flip flop D: Data load 0 value 0 1  value D ASYNC_CLR SYNC_CLR CLK_EN Q QN PRESET 0 Value’ ASYNC_CLR = 0 CLK_EN = 1 SYNC_CLR = 0 PRESET = 0 CLOCK   Q = D = D’ QN = D’ CLK

Flip flop D: Data hold  D ASYNC_CLR SYNC_CLR CLK_EN Q QN PRESET 0 ASYNC_CLR = 0 CLK_EN = 0  Q t+1 = Q t QN t+1 = QN t CLK

Outline  Latch  Flip-flop  Scannable Flip-flop

Scannable Flip-flops Most cell libraries include particular FF families, particularly suited to improve testability, resorting to the so called Scan chains.

Flip-Flop

Flip-Flop Scan Chain

Flip-flop scannable D SCAN_IN CLK Q Control signal

Implementations  The control signal states value to be stored in the FF, i.e., the D or the SCAN_IN, respectively.  Two implementations are usually adopted :  mux-scan  clock-scan.

Mux-scan approach D SCAN_IN CLK Q Normal/~Scan

Clock-scan approach D SCAN_IN CLK Q CLK_SCAN