Fundamentals of Computer Systems

Similar documents
Fundamentals of Computer Systems

Fundamentals of Computer Systems

LATCHES & FLIP-FLOP. Chapter 7

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

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design

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

Chapter 11 Latches and Flip-Flops

Unit 11. Latches and Flip-Flops

Lecture 8: Sequential Logic

DIGITAL CIRCUIT COMBINATORIAL LOGIC

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

give sequence to events have memory (short-term) use feedback from output to input to store information

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

Basis of sequential circuits: the R-S latch

Switching Circuits & Logic Design

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

Review of digital electronics. Storage units Sequential circuits Counters Shifters

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

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

Digital Fundamentals

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

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

Introduction to Sequential Circuits

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

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

Universal Asynchronous Receiver- Transmitter (UART)

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

Engr354: Digital Logic Circuits

Introduction. Serial In - Serial Out Shift Registers (SISO)

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

EKT 121/4 ELEKTRONIK DIGIT 1

Digital Circuits and Systems

Registers and Counters

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

Logic Design. Flip Flops, Registers and Counters

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

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

Digital Circuits ECS 371

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

ELE2120 Digital Circuits and Systems. Tutorial Note 8

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

Chapter 5 Synchronous Sequential Logic

CHAPTER 11 LATCHES AND FLIP-FLOPS

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Sequential Circuit Design: Part 1

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

Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

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

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

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

RS flip-flop using NOR gate

Rangkaian Sekuensial. Flip-flop

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Final Exam review: chapter 4 and 5. Supplement 3 and 4

RS flip-flop using NOR gate

Switching Circuits & Logic Design

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

6.S084 Tutorial Problems L05 Sequential Circuits

Chapter 9. Timing Design. (Based on Chapter 7 and Chapter 8 of Wakerly) Data Path Comb. Logic. Reg. Reg. Reg C <= A + B

Sequential Circuit Design: Principle

Sequential Logic and Clocked Circuits

Chapter 2. Digital Circuits

INTRODUCTION TO SEQUENTIAL CIRCUITS

CHAPTER 1 LATCHES & 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

CPE/EE 427, CPE 527 VLSI Design I Sequential Circuits. Sequencing

Sequential Circuits: Latches & Flip-Flops

FLIP-FLOPS AND RELATED DEVICES

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

Chapter. Synchronous Sequential Circuits

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

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

Other Flip-Flops. Lecture 27 1

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Sequential Circuit Design: Part 1

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

Asynchronous (Ripple) Counters

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

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

The NOR latch is similar to the NAND latch

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

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

PGT104 Digital Electronics. PGT104 Digital Electronics

Combinational vs Sequential

Registers and Counters

Combinational / Sequential Logic

6. Sequential Logic Flip-Flops

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.

Chapter 5 Flip-Flops and Related Devices

Counters

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

Lecture 11: Sequential Circuit Design

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

Transcription:

Fundamentals of Computer Systems Sequential Logic Stephen A. Edwards Columbia University Fall 2012

State-Holding Elements

Bistable Elements Equivalent circuits; right is more traditional. Two stable states: 0 1 1 0

A Bistable in the Wild This debounces the coin switch. Breakout, Atari 1976.

S Latch S S

S Latch 0 1 S 1 0 S S Set

S Latch 0 1 S 0 0 S S Hold, State 1

S Latch 1 0 S 0 1 S S eset

S Latch 0 0 S 0 1 S S Hold, State 0

S Latch 1 0 S 1 0 S S Huh?

S Latch 0 1 S 1 0 S S Set

S Latch 0 1 S 0 0 S S Hold, State 1

S Latch 1 0 S 1 0 S S Huh?

S Latch 0 X S 0 X S S Undefined

S Latches in the Wild Generates horizontal and vertical synchronization waveforms from counter bits. Stunt Cycle, Atari 1976.

Latch C C inputs outputs C 0 X 1 0 0 1 1 1 1 0

A Challenge A simple traffic light controller. Want the lights to cycle green-yellow-red. C C Y C G oes this work?

Positive-Edge-Triggered Flip-Flop C M Master C Slave C S C C C C M transparent C S opaque

Positive-Edge-Triggered Flip-Flop C M Master C Slave C S C C C C M transparent C S opaque

Positive-Edge-Triggered Flip-Flop C M Master C Slave C S C C C C M C S transparent opaque opaque transparent

Positive-Edge-Triggered Flip-Flop C M Master C Slave C S C C C C M C S transparent opaque opaque transparent

Positive-Edge-Triggered Flip-Flop C M Master C Slave C S C C C C M transparent opaque transparent C S opaque transparent opaque

Positive-Edge-Triggered Flip-Flop C M Master C Slave C S C C C C M transparent opaque transparent opaque C S opaque transparent opaque transparent

The Traffic Light Controller: A second try Let s try this again with flip-flops. Y G Y G

The Traffic Light Controller: A second try Let s try this again with flip-flops. Y G Y G

The Traffic Light Controller: A second try Let s try this again with flip-flops. Y G Y G

The Traffic Light Controller: A second try Let s try this again with flip-flops. Y G Y G

The Traffic Light Controller: A second try Let s try this again with flip-flops. Y G Y G

The Traffic Light Controller with eset ESET Y G ESET Y G

The Traffic Light Controller with eset ESET Y G ESET Y G

The Traffic Light Controller with eset ESET Y G ESET Y G

The Traffic Light Controller with eset ESET Y G ESET Y G

The Traffic Light Controller with eset ESET Y G ESET Y G

The Traffic Light Controller with eset ESET Y G ESET Y G

Flip-Flop with Enable 0 1 E C C E 0 X 1 0 0 1 1 1 0 X X 1 X X E C What s wrong with this solution?

Asynchronous Preset/Clear PE CL PE CL

The Traffic Light Controller w/ Async. eset ESET PE CL PE CL Y PE CL G

The Synchronous igital Logic Paradigm Gates and flip-flops only INPUTS OUTPUTS Each flip-flop driven by the same clock STATE C L Every cyclic path contains at least one flip-flop CLOCK NEXT STATE

Cool Sequential Circuits: Shift egisters A 0 1 2 3 A 0 1 2 3 0 X X X X 1 0 X X X 1 1 0 X X 0 1 1 0 X 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0

Universal Shift egister L 3 2 0 0 1 0 3 2 1 1 1 0 3 2 2 2 1 0 3 2 3 3 1 0 S 1 S0 S 1 S 0 3 2 1 0 0 0 3 2 1 0 1 3 2 1 0 1 0 3 2 1 0 1 1 2 1 0 L S 1 S 0 Operation 0 0 Shift right 0 1 Load 1 0 Hold 1 1 Shift left

Cool Sequential Circuits: Counters Cycle through sequences of numbers, e.g., 00 01 10 11

The 74LS163 Synchronous Binary Counter

Timing in Synchronous Circuits C L t c t c : Clock period. E.g., 10 ns for a 100 MHz clock

Timing in Synchronous Circuits C L Sufficient Hold Time? t p(min,ff) t p(min,cl) Hold time constraint: how soon after the clock edge can start changing? Min. FF delay + min. logic delay

Timing in Synchronous Circuits C L t p(max,ff) Sufficient Setup Time? t p(max,cl) Setup time constraint: when before the clock edge is guaranteed stable? Max. FF delay + max. logic delay

Clock Skew: What eally Happens C L 1 2 Sufficient Hold Time? 1 2 t skew t p(min,ff) t p(min,cl) 2 arrives late: clock skew reduces hold time

Clock Skew: What eally Happens C L 1 2 Sufficient Setup Time? 1 2 t skew t p(max,ff) t p(max,cl) 1 arrives early: clock skew reduces setup time