Fundamentals of Computer Systems

Similar documents
Fundamentals of Computer Systems

Fundamentals of Computer Systems

Digital Circuits and Systems

Unit 11. Latches and Flip-Flops

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

Chapter 11 Latches and Flip-Flops

Basis of sequential circuits: the R-S latch

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

Switching Circuits & Logic Design

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

LATCHES & FLIP-FLOP. Chapter 7

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.

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

Lecture 8: Sequential Logic

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

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Digital Fundamentals

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

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

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

DIGITAL CIRCUIT COMBINATORIAL LOGIC

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

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

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

Logic Design. Flip Flops, Registers and Counters

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

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

Combinational / Sequential Logic

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

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

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

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

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

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

Engr354: Digital Logic Circuits

INTRODUCTION TO SEQUENTIAL CIRCUITS

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

Switching Circuits & Logic Design

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).

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

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

Digital System Design

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

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

6.S084 Tutorial Problems L05 Sequential Circuits

Introduction to Sequential Circuits

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

Lecture 11: Sequential Circuit Design

CHAPTER 1 LATCHES & FLIP-FLOPS

Sequential Circuit Design: Part 1

RS flip-flop using NOR gate

UNIT 11 LATCHES AND FLIP-FLOPS

Keeping The Clock Pure. Making The Impurities Digestible

Clocking Spring /18/05

RS flip-flop using NOR gate

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

Traversing Digital Design. EECS Components and Design Techniques for Digital Systems. Lec 22 Sequential Logic - Advanced

6. Sequential Logic Flip-Flops

Chapter 5 Synchronous Sequential Logic

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

Universal Asynchronous Receiver- Transmitter (UART)

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

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

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

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

Sequential Circuit Design: Principle

EKT 121/4 ELEKTRONIK DIGIT 1

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

PGT104 Digital Electronics. PGT104 Digital Electronics

Lecture 21: Sequential Circuits. Review: Timing Definitions

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

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

Registers and Counters

FLIP-FLOPS AND RELATED DEVICES

Digital Circuits ECS 371

Outline. CPE/EE 422/522 Advanced Logic Design L03. Review: Clocked D Flip-Flop with Rising-edge Trigger. Sequential Networks

Asynchronous (Ripple) Counters

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

Sequential Circuits: Latches & Flip-Flops

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

CMOS Latches and Flip-Flops

Sequential Circuit Design: Part 1

D Latch (Transparent Latch)

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

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

Combinational vs Sequential

Rangkaian Sekuensial. Flip-flop

Chapter 5 Flip-Flops and Related Devices

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

ECE321 Electronics I

The NOR latch is similar to the NAND latch

EE141-Fall 2010 Digital Integrated Circuits. Announcements. Homework #8 due next Tuesday. Project Phase 3 plan due this Sat.

Digital Fundamentals: A Systems Approach

Transcription:

Fundamentals of Computer Systems Sequential Logic Stephen A. Edwards Columbia University Summer 2016

State-Holding Elements Bistable Elements S Latch Latch Positive-Edge-Triggered Flip-Flop Flip-Flop with Enable Synchronous igital Logic The Synchronous Paradigm Shift egisters Counters Timing in Synchronous Circuits Flip-Flop Timing Timing in Synchronous Circuits Clock Skew

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 0 0 0 1 1 0 1 1

S Latch S 0 1 1 0 S S 0 0 0 1 1 0 Set 1 0 1 1 S Set

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

S Latch S 1 0 0 1 S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 S eset

S Latch S 0 0 0 1 S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 S Hold, State 0

S Latch S 1 1 0 0 S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 0 0 Bad S Huh?

S Latch S 0 1 1 0 S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 0 0 Bad S Set

S Latch S 0 0 1 0 S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 0 0 Bad S Hold, State 1

S Latch S 1 1 0 0 S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 0 0 Bad S Huh?

S Latch S 0 0 X X S S 0 0 Hold 0 1 1 0 Set 1 0 0 1 eset 1 1 0 0 Bad 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?

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

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

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

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

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

C M C S Positive-Edge-Triggered Flip-Flop C Master Slave 0 1 C C C M C S C transparent opaque transparent opaque 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

Flip-Flop Timing Setup Time: Time before the clock edge after which the data may not change t su

Flip-Flop Timing Setup Time: Time before the clock edge after which the data may not change Hold Time: Time after the clock edge after which the data may change t su t h

Flip-Flop Timing Setup Time: Time before the clock edge after which the data may not change Hold Time: Time after the clock edge after which the data may change t su t h Minimum Propagation elay: Time from clock edge to when might start changing t p(min)

Flip-Flop Timing Setup Time: Time before the clock edge after which the data may not change Hold Time: Time after the clock edge after which the data may change t su t h Minimum Propagation elay: Time from clock edge to when might start changing t p(min) t p(max) Maximum Propagation elay: Time from clock edge to when guaranteed stable

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

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

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