Digital Circuits ECS 371

Similar documents
LATCHES & FLIP-FLOP. Chapter 7

EET2411 DIGITAL ELECTRONICS

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

Other Flip-Flops. Lecture 27 1

D Latch (Transparent Latch)

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

Digital Fundamentals

Engr354: Digital Logic Circuits

ECE 341. Lecture # 2

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

RS flip-flop using NOR gate

Digital Fundamentals: A Systems Approach

ELCT201: DIGITAL LOGIC DESIGN

RS flip-flop using NOR gate

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Unit 11. Latches and Flip-Flops

Chapter. Synchronous Sequential Circuits

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

Logic Design. Flip Flops, Registers and Counters

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

Chapter 11 Latches and Flip-Flops

ELCT201: DIGITAL LOGIC DESIGN

Synchronous Sequential Logic

Introduction to Sequential Circuits

PGT104 Digital Electronics. PGT104 Digital Electronics

Flip-Flops and Sequential Circuit Design

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

Lecture 8: Sequential Logic

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

Asynchronous (Ripple) Counters

EKT 121/4 ELEKTRONIK DIGIT 1

6. Sequential Logic Flip-Flops

CHAPTER 1 LATCHES & FLIP-FLOPS

Sequential Design Basics

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

Rangkaian Sekuensial. Flip-flop

Digital Logic Design I

Registers and Counters

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

The NOR latch is similar to the NAND latch

Review of digital electronics. Storage units Sequential circuits Counters Shifters

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

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

MC9211 Computer Organization

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

Digital Logic Design ENEE x. Lecture 19

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

Chapter 8 Sequential Circuits

Registers and Counters

Sequential Logic Circuits

CHAPTER 6 COUNTERS & REGISTERS

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

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

EE292: Fundamentals of ECE

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

CHAPTER 4: Logic Circuits

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

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

5: Sequential Logic Latches & Flip-flops

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

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

CHAPTER 4: Logic Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

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

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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

Chapter 4. Logic Design

EE 109 Homework 6 State Machine Design Name: Score:

Chapter 5 Synchronous Sequential Logic

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

ECE 545 Digital System Design with VHDL Lecture 1B. Digital Logic Refresher Part B Sequential Logic Building Blocks

ECE 545 Digital System Design with VHDL Lecture 2. Digital Logic Refresher Part B Sequential Logic Building Blocks

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

CHAPTER1: Digital Logic Circuits

Serial In/Serial Left/Serial Out Operation

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

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.

UNIVERSITI TEKNOLOGI MALAYSIA

FE REVIEW LOGIC. The AND gate. The OR gate A B AB A B A B 0 1 1

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.

Chapter 2. Digital Circuits

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Counter dan Register

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

Synchronous Sequential Logic

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

L5 Sequential Circuit Design

Flip-flop and Registers

Digital Fundamentals: A Systems Approach

Exercise 2: D-Type Flip-Flop

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

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

CHW 261: Logic Design

Transcription:

igital Circuits ECS 371 r. Prapun Suksompong prapun@siit.tu.ac.th Lecture 17 Office Hours: BK 3601-7 Monday 9:00-10:30, 1:30-3:30 Tuesday 10:30-11:30 1

Announcement Reading Assignment: Chapter 7: 7-1, 7-2, 7-4 We will use the old handout from last time. 2

3 Logic Symbols: Latches and Flip-Flops

Gated latch The latch is a variation of the S-R latch. Has only one input in addition to EN. This input is called the (data) input. Combine the S and R inputs into a single input. EN EN 4

Example: Gated Latch follows when the Enable is active. EN 5

Flip-Flop Latches sample their inputs (and change states) any time the EN bit is asserted. Flip-flops are synchronous: the output changes state only at a specified point on the triggering input called the clock (CLK) In other words, changes in the output occur in synchronization with the clock. An edge-triggered flip-flop changes state either at the positive edge (rising edge) or at the negative edge (falling edge) of the clock pulse. 6

Edge-Triggered Flip-Flops Edge-triggered flipflop is redundant (all flip-flops are edgetriggered Positive edge-triggered (no bubble at C input) Negative edge-triggered (bubble at C input) 7

Clock (CLK) In digital synchronous systems, all waveforms are synchronized with a clock. The clock waveform itself does not carry information. The clock is a periodic waveform in which each interval between pulses (the period) equals the time for one bit. 8 Notice that change in level of waveform A occurs at the rising edge of the clock waveform.

Flip-Flop The truth table for a positive-edge triggered flip-flop shows an up arrow to remind you that it is sensitive to its input only on the rising edge of the clock. The truth table for a negative-edge triggered flip-flop is identical except for the direction of the arrow. C Inputs Outputs Inputs Outputs CLK Comments CLK Comments 1 1 0 SET 0 0 1 RESET 1 1 0 SET 0 0 1 RESET (a) Positive-edge triggered (b) Negative-edge triggered 9 = clock transition LOW to HIGH

Ex: Positive-edge triggered Flip-Flop etermine the output waveform if the flip-flop starts out RESET 10

Exercise CLK CLK What specific function does this device perform? 11

Exercise CLK CLK It is a flip-flop hardwired for a toggle mode. For example, if is LOW, is HIGH and the flip-flop will toggle on the next clock edge. Because the flip-flop only changes on the active edge, the output will only change once for each clock pulse. 12

Flip Flop: Implementation Tie two -latches together to make a flip-flop M C EN 1 C 2 EN Master Slave C 13 When C is 0 (C 1 = 1), the master latch is open and follows the input. When C is 1 (C 1 = 0, C 2 = 1), the master latch is closed and its output is transferred to the slave latch. The slave latch is open all the while that C is 1, but changes only at the beginning of this interval, because the master is closed and unchanging during the rest of the interval.

Flip Flop: Implementation M C EN 1 C 2 EN Master Slave C C C1 C M C2 C 14

15 S-R Flip-Flop

J-K Flip-Flop Has two inputs, labeled J and K (along with the CLK). When both J and K = 1, the output changes states (toggles) on the rising clock edge. J K CLK Inputs Outputs J K CLK Comments 0 0 0 1 0 0 0 1 No change RESET 1 0 1 0 SET 1 1 0 0 Toggle A J-K flip-flop connected for toggle operation is sometimes called a T flip-flop. 16

17 Example: J-K Flip-Flop

Exercise: J-K Flip-Flop J K CLK Inputs Outputs J K CLK Comments 0 0 0 1 0 0 0 1 No change RESET 1 0 1 0 SET 1 1 0 0 Toggle Set Toggle Set Latch CLK J K 18

19 Negative-Edge Triggered J-K FF

Caution When designing a circuit, do not change input values at the moment that the clock is rising. This is the time that the flip-flops read the input values. 20

Asynchronous Inputs Most flip-flops have other inputs that are asynchronous, meaning they affect the output independent of the clock. Two such inputs are normally labeled preset (PRE) and clear (CLR). These inputs are usually active-low. A J-K flip flop with active-low preset and CLR is shown. PRE J CLK K 21 CLR

22 Example

PRE Exercise J CLK K CLR CLK J K Set Toggle Set Reset Toggle Set Latch PRE CLR Reset 23

24 Logic Symbols: Latches and Flip-Flops

Latches and Flip-Flops The most basic storage elements are latches, from which flip-flops are usually constructed. Can maintain a binary state indefinitely (as long as power is delivered to the circuit), until directed by an input signal to switch states. The major differences among the various types of latches and flipflops are the number of inputs the process and the manner in which the inputs affect the binary state. Although latches are most often used within flip-flops, they can also be used with more complex clocking methods to implement sequential circuits directly. The design of such circuits is, however, beyond the scope of this class. 25

Some Applications ivide the clock frequency by 2 26

Some Applications ivide the clock frequency by 4 27

Time to take a look at your own exam Put all of your writing tools down (under table / in your bag). You have 5 minutes to look at your own exam. 31