EECS 3201: Digital Logic Design Lecture 9. Ihab Amer, PhD, SMIEEE, P.Eng.

Similar documents
analysis with T flip-flops Follow the same procedure for JK flip-flops next state is determined by characteristic table or characteristic equation

Chapter 5 Synchronous Sequential Logic

Unit-5 Sequential Circuits - 1

Chapter 5. Introduction

FSMD%Block%Diagram. FSM$Datapath*Systems. Datapath%Elements

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

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


Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

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

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

Other Flip-Flops. Lecture 27 1

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

Unit 11. Latches and Flip-Flops

Chapter 5 Synchronous Sequential Logic

D Latch (Transparent Latch)

Chapter. Synchronous Sequential Circuits

Sequential Circuits: Latches & Flip-Flops

ELCT201: DIGITAL LOGIC DESIGN

Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

ECE 341. Lecture # 2

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

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

Registers & Counters. BME208 Logic Circuits Yalçın İŞLER

Experiment 8 Introduction to Latches and Flip-Flops and registers

Logic Design. Flip Flops, Registers and Counters

PESIT Bangalore South Campus

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

Chapter 11 Latches and Flip-Flops

Sequential Logic Circuits

Engr354: Digital Logic Circuits

Digital Circuits ECS 371

Introduction to Sequential Circuits

Synchronous Sequential Logic

Part II. Chapter2: Synchronous Sequential Logic

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

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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.

RS flip-flop using NOR gate

Synchronous Sequential Logic

Digital Logic Design I

Outputs Combinational circuit. Next state. Fig. 4-1 Block Diagram of a Sequential Circuit

Synchronous Sequential Logic

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

Lecture 8: Sequential Logic

Chapter 5 Sequential Circuits

Registers and Counters

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

ENGR 303 Introduction to Logic Design Lecture 10. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Sequential Design Basics

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

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

IT T35 Digital system desigm y - ii /s - iii

Flip-flop and Registers

CHAPTER 4: Logic Circuits

INTRODUCTION TO SEQUENTIAL CIRCUITS

Synchronous Sequential Logic

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

MC9211 Computer Organization

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

CHAPTER 4: Logic Circuits

RS flip-flop using NOR gate

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

CHAPTER1: Digital Logic Circuits

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Flip-Flops and Registers

Synchronous Sequential Logic. Chapter 5

CHAPTER 1 LATCHES & FLIP-FLOPS

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

Asynchronous (Ripple) Counters

ENGN3213 Digital Systems and Microprocessors Sequential Circuits

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

EET2411 DIGITAL ELECTRONICS

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Chapter 8 Sequential Circuits

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

Review of Flip-Flop. Divya Aggarwal. Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi. their state.

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Combinational vs Sequential

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

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

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

Last time, we saw how latches can be used as memory in a circuit

Counter dan Register

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Rangkaian Sekuensial. Flip-flop

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

Advanced Digital Logic Design EECS 303

Multiplexor (aka MUX) An example, yet VERY useful circuit!

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

Registers and Counters

LAB 7. Latches & Flip Flops

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

Transcription:

EECS 3201: Digital Logic Design Lecture 9 Ihab Amer, PhD, SMIEEE, P.Eng.

Progress so far 2

Digital Logic Classification Digital Logic Combinational o/p s depend on i/p s only E.g. Logic Gates Sequential o/p s depend on i/p s & state of storage elements Asynchronous E.g. Latches Synchronous E.g. Flip Flops 3

Think about this With the info we encountered so far, can we build this? No! 1. State i.e. the circuit should have memory 2. The o/p changes by an i/p event (pushing a button) rather than an input value (level) 4

What does it take? Ability to store digital state Memory stores current state Combinational Logic computes Next State (from input, current state) Output (from input, current state) State changes on LOAD control input 5

What is a Latch? 6

SR Latch 7

D Latch 8

HDL for D Latch module D_latch (Q,D,control); output Q; input D,control; reg Q; always @ ( control or D ) if (control) Q = D; //Same as: if (control == 1) endmodule 9

Lets try this out G = 1 G = 0 Latch transparent Latch stores state Special timing considerations should be taken! 10

Flakey Control System Here is a strategy to save a couple of dollars in the coming holidays! 11

Flakey Control System Here is a strategy to save a couple of dollars in the coming holidays! 12

Flakey Control System Here is a strategy to save a couple of dollars in the coming holidays! 13

Escapement Strategy The Solution: Add two gates and only open one at a time 14

Escapement Strategy The Solution: Add two gates and only open one at a time 15

Escapement Strategy The Solution: Add two gates and only open one at a time 16

Escapement Strategy The Solution: Add two gates and only open one at a time 17

Escapement Strategy The Solution: Add two gates and only open one at a time 18

Escapement Strategy The Solution: Add two gates and only open one at a time 19

Escapement Strategy The Solution: Add two gates and only open one at a time 20

Escapement Strategy The Solution: Add two gates and only open one at a time 21

Escapement Strategy The Solution: Add two gates and only open one at a time 22

Escapement Strategy The Solution: Add two gates and only open one at a time Key: At no time is there an open path through both gates 23

Back to Digital Systems Master-Slave Flip-Flop Same idea as doublegate toll station 24

What is a FF? Simply, it is a clocked latch Characteristics Table D Q(t+1) 0 0 Reset 1 1 Set HDL (Behavioral) module D_FF (Q,D,CLK); output Q; input D,CLK; reg Q; always @ ( posedge CLK ) Q = D; endmodule 25

How to construct it? Master-Slave Edge Triggering CLK Pulse transition detector Delay CLK A type of pulse transition detector 26

D Flip-Flop with Asynch RST HDL (Behavioral) module DFF (Q,D,CLK,RST); output Q; input D,CLK,RST; reg Q; always @ ( posedge CLK or negedge RST ) if (~RST) Q = 1'b0; else Q = D; endmodule How would the D-FF with Synch RST look like? 27

JK Flip-Flop J K Q(t+1) Characteristics Table 0 0 0 1 1 0 1 1 Q(t) 0 1 Q (t) No Change Reset Set Complement 28

T Flip-Flop T Q(t+1) Characteristics Table 0 Q(t) No Change 1 Q (t) Complement 29

HDL for JK & T Flip-Flops //T flip-flop from D flip-flop and gates module TFF (Q,T,CLK,RST); output Q; input T,CLK,RST; wire DT; assign DT = Q ^ T ; //Instantiate the D flip-flop DFF TF1 (Q,DT,CLK,RST); endmodule /*****************************************/ //JK flip-flop from D flip-flop and gates module JKFF (Q,J,K,CLK,RST); output Q; input J,K,CLK,RST; wire JK; assign JK = (J & ~Q) (~K & Q); //Instantiate D flipflop DFF JK1 (Q,JK,CLK,RST); endmodule FF s with asynchronous RST //D flip-flop module DFF (Q,D,CLK,RST); output Q; input D,CLK,RST; reg Q; always @ (posedge CLK or negedge RST) if (~RST) Q = 1'b0; else Q = D; endmodule 30

HDL for JK FF (Functional) module JK_FF (J,K,CLK,Q,Qnot); output Q,Qnot; input J,K,CLK; reg Q; assign Qnot = ~ Q ; always @ (posedge CLK) case ({J,K}) 2'b00: Q = Q; 2'b01: Q = 1'b0; 2'b10: Q = 1'b1; 2'b11: Q = ~ Q; endcase endmodule JK FF without asynchronous RST 31

Important Book Chapters Related sections of chapter 5 in the textbook 32

References Digital Design (3 rd and 4 th Editions), Morris Mano, Prentice Hall, (2002/2007) Digital Fundamentals (10 th Edition), Thomas L. Floyd, Prentice Hall, 2010 http://ece.gmu.edu/coursewebpages/ece/ece448/s10/ cpk.auc.dk/education/ssu-2007/mm10/ssu_mm10.pdf www.ece.cmu.edu/~thomas/vslides.pdf http://ece.gmu.edu/courses/ece448/index_s06.htm MIT Lecture Notes on: http://www.ece.concordia.ca/~asim 33