Sequential Design Basics

Similar documents
Other Flip-Flops. Lecture 27 1

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

L5 Sequential Circuit Design

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Unit 11. Latches and Flip-Flops

ECE 341. Lecture # 2

Engr354: Digital Logic Circuits

Chapter 11 Latches and Flip-Flops

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Digital Logic Design I

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Sequential Circuits: Latches & Flip-Flops

Digital Circuits ECS 371

Logic Design. Flip Flops, Registers and Counters

Flip-Flops and Sequential Circuit Design

ELCT201: DIGITAL LOGIC DESIGN

Lecture 8: Sequential Logic

INTRODUCTION TO SEQUENTIAL CIRCUITS

ECE 331 Digital System Design

ECE 301 Digital Electronics

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Introduction to Sequential Circuits

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

ELCT201: DIGITAL LOGIC DESIGN

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

LATCHES & FLIP-FLOP. Chapter 7

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Introduction to Microprocessor & Digital Logic

Chapter 5: Synchronous Sequential Logic

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Flip-Flops and Registers

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Chapter 5 Synchronous Sequential Logic

CHAPTER 1 LATCHES & FLIP-FLOPS

Digital Fundamentals

ECE 301 Digital Electronics

CMSC 313 Preview Slides

Lecture 7: Sequential Networks

Sequential Logic Circuits

Exercise 2: D-Type Flip-Flop

CPS311 Lecture: Sequential Circuits

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

ECE321 Electronics I

D Latch (Transparent Latch)

Chapter. Synchronous Sequential Circuits

CHAPTER1: Digital Logic Circuits

Switching Circuits & Logic Design

CHAPTER 11 LATCHES AND FLIP-FLOPS

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

RS flip-flop using NOR gate

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Chapter 2. Digital Circuits

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Physics 323. Experiment # 10 - Digital Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

EET2411 DIGITAL ELECTRONICS

Lecture 11: Synchronous Sequential Logic

Synchronous Sequential Logic

Course Administration

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Advanced Digital Logic Design EECS 303

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

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

CMOS Latches and Flip-Flops

Chapter 5 Synchronous Sequential Logic

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

RS flip-flop using NOR gate

DIGITAL CIRCUIT COMBINATORIAL LOGIC

CH 11 Latches and Flip-Flops

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

Rangkaian Sekuensial. Flip-flop

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

Unit-5 Sequential Circuits - 1

Chapter 5 Flip-Flops and Related Devices

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

UNIVERSITI TEKNOLOGI MALAYSIA

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

LAB 7. Latches & Flip Flops

CHAPTER 4: Logic Circuits

UNIT 11 LATCHES AND FLIP-FLOPS

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Synchronous Sequential Logic

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

CHAPTER 4: Logic Circuits

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Transcription:

Sequential Design Basics

Lecture 2 topics A review of devices that hold state A review of Latches A review of Flip-Flops Unit of text Set-Reset Latch/Flip-Flops/D latch/ Edge triggered D Flip-Flop 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 2

Latches and Flip-Flops What is the difference? Flip-flops use a clock and are clock edge triggered When the clock edge occurs the data on the data inputs determines the next state of the flip-flop Latches are level sensitive Use a clock, and when the clock (or enable) is active the output of the latch follows the data input. Latches are very common in VLSI circuits. (Used as they require fewer transistors.) 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 3

The basis How do you design logic that holds state? Individual logic gates are feed forward devices who s output depends on the value of the inputs to that device. So how to create a device that holds a state? 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 4

The basis How do you design logic that holds state? Individual logic gates are feed forward devices who s output depends on the value of the inputs to that device. So how to create a device that holds a state? FEEDBACK!!! 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 5

The Set-Reset (SR) Latch The circuit has no memory Output depends not only on present inputs and the state of the latch when the current inputs were applied. The state on the inputs is not allowed. Why? 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 6

HDL code for SR Latch The core of the model --set up dataflow for SR latch <= R NOR bar AFTER 5 ns; bar <= S NOR AFTER 5 ns; Apply stimulus to S and R What does simulation show 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 7

HDL simulation of SR latch 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 8

The next state The state is not allowed S= to R= to S and R Hold state 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 9

Next state truth table From the table you can get the next state equation Here + = S + R An equation that expresses the state of a latch (or flip flop) in terms of its present state and inputs is referred to as the characteristic equation. 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU

The D Latch The D Latch is the most common element in CMOS design. 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU

Timing diagram for a D Latch 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 2

The D F/F The D Flip-Flop has edge triggered operation Can be positive edge triggered (as here) or negative edge triggered 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 3

Timing for a D Flip-Flop Important to note relationships 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 4

D F/F Behavior Some important timing parameters Clock to output Setup and hold time 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 5

D F/F with Preset and Clear Can add preset and clear for easier circuit initialization. 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 6

Scan Chains D F/F is the F/F used in scan chains. What are scan chains? 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 7

Scan Chains Can use scan chains to inputs data or extract data D F/F 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 8

The T Flip Flop Toggle Flip Flop 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 9

More on Basic Sequential Elements The S-R F/F *=S+R S R CLK Not allowed The Toggle F/F *= DT SET CLR T CLK * is next value or next state 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 2

D F/F and J/K F/F D F/F * = D D SET CLR D CLK J/K F/F *=J +K J K SET CLR J K CLK 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 2

A simple up down counter Start with state diagram Control is x 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 22

Then add state table Will use T F/Fs table reflect T F/Fs Next State T F/F inputs Pr St x= x= x= x= y y2 y y2 y y2 T T2 T T2 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 23

K Maps for the toggle F/Fs x y y2 y T x x y y2 y T2 x y2 y2 T = x y2 + x y2 = x xor y2 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 24

Implementation y y2 SET SET CLR SET CLR CLR SET D T D T CLR T D T T2 D T x 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 25

Some final notes Sequential elements (F/Fs) are bistable Def: Bistable can be in one of two states 8/22/22 9/25/8 ECE ECE 56356 Copyright 28 22 - Joanne DeGroat, ECE, OSU 26

Digital Circuit Types Combinational Logic Circuit one whose outputs depend only on its current inputs. A more descriptive term might be feedforward combinational logic circuits. These are circuits in which there is no feedback. Sequential Logic Circuit one whose output depends not only on its current inputs, but also on the past sequence of inputs. 8/22/22 9/25/8 ECE ECE 56356 Copyright 28 22 - Joanne DeGroat, ECE, OSU 27

State changes A sequential circuit changes its state at times specified by a clock Clock frequency C f = / T Where T is the Clock period 8/22/22 9/25/8 ECE ECE 56356 Copyright 28 22 - Joanne DeGroat, ECE, OSU 28

Homework L2 Read Unit Problem. not for turn in work for understanding answer is in the text. (borrow a text or go to library) Go through the study guide of Unit 8/22/22 ECE 356 Copyright 22 - Joanne DeGroat, ECE, OSU 29