ELCT201: DIGITAL LOGIC DESIGN

Similar documents
ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

Other Flip-Flops. Lecture 27 1

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Logic Design. Flip Flops, Registers and Counters

Introduction to Sequential Circuits

Unit 11. Latches and Flip-Flops

Chapter. Synchronous Sequential Circuits

ECE 341. Lecture # 2

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

D Latch (Transparent Latch)

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

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 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.

Synchronous Sequential Logic

Engr354: Digital Logic Circuits

MC9211 Computer Organization

Sequential Circuits: Latches & Flip-Flops

CHAPTER 4: Logic Circuits

INTRODUCTION TO SEQUENTIAL CIRCUITS

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

LATCHES & FLIP-FLOP. Chapter 7

ELE2120 Digital Circuits and Systems. Tutorial Note 7

CHAPTER 4: Logic Circuits

Flip-Flops and Sequential Circuit Design

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

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

Chapter 5: Synchronous Sequential Logic

Chapter 8 Sequential Circuits

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic

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

CHAPTER1: Digital Logic Circuits

CHAPTER 1 LATCHES & FLIP-FLOPS

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

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

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

Rangkaian Sekuensial. Flip-flop

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

Synchronous Sequential Logic

Sequential Logic Circuits

Synchronous Sequential Logic

RS flip-flop using NOR gate

EET2411 DIGITAL ELECTRONICS

RS flip-flop using NOR gate

Digital Circuits ECS 371

Part II. Chapter2: Synchronous Sequential Logic

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

Flip-Flops and Registers

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Chapter 5 Sequential Circuits

Asynchronous (Ripple) Counters

Lecture 8: Sequential Logic

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

Analysis of Clocked Sequential Circuits

Course Administration

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

CMSC 313 Preview Slides

Switching Circuits & Logic Design

UNIT IV. Sequential circuit

Synchronous Sequential Logic

Sequential Design Basics

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

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

6. Sequential Logic Flip-Flops

Counters

Chapter 11 Latches and Flip-Flops

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

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

LAB 7. Latches & Flip Flops

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

Introduction to Microprocessor & Digital Logic

Vignana Bharathi Institute of Technology UNIT 4 DLD

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

Sequential Logic and Clocked Circuits

Synchronous Sequential Logic. Chapter 5

Digital Logic Design ENEE x. Lecture 19

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

Combinational vs Sequential

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.

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

Digital Logic Design I

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

CHAPTER 6 COUNTERS & REGISTERS

EE292: Fundamentals of ECE

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

CPS311 Lecture: Sequential Circuits

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

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

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

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

EKT 121/4 ELEKTRONIK DIGIT 1

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Transcription:

ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 7 Following the slides of Dr. Ahmed H. Madian محرم 1439 ه Winter 2018

COURSE OUTLINE 1. Introduction 2. Gate-Level Minimization 3. Combinational Logic 4. Synchronous Sequential Logic 5. Registers and Counters 6. Memories and Programmable Logic 2

LECTURE OUTLINE Sequential Circuits Flip flops Master-Slave SR and D flip-flops Edge-Triggered D, JK and T flip-flops Flip-flops: Representation Summary of Terminology 3

FLIP-FLOP TYPES The commonly-used solution replaces the controlled D latch with a flip-flop We have two types of flip-flops Master-slave Edge-triggered 4

MASTER-SLAVE D FF USING LATCHES Clk D Y Q Timing diagram D Y Q Clk Circuit 5

MASTER-SLAVE D FF USING LATCHES The circuit samples the D input and changes its output Q only at the negative edge of the synchronizing or controlling clock When Clk = 0, the output of the inverter is 1 The slave latch is enabled and its output Q is equal to the master output Y The master latch is disabled because Clk = 0 D Y Q Clk Circuit 6

MASTER-SLAVE D FF USING LATCHES When the input pulse changes to the logic-1 level, the data from the external D is transferred to the master. The slave, however, is disabled as long as the clock remains at the logic-1 level, because its enable input is equal to 0 Any change in the input changes the master output at Y, but cannot affect the slave output D Y Q Clk Circuit 7

MASTER-SLAVE D FF USING LATCHES The value that is produced at the output of the flip-flop is the value that was stored in the master stage immediately before the negative edge occurred How to design a similar master-slave D flip-flop such that the output changes on the positive edge of the clock? D Y Q Clk Circuit 8

EDGE-TRIGGERED D FLIP-FLOP Sensitive to inputs only near the edge of the clock signal (not while high) signifies a positive edge Q(t) D Clk Q t + 1 0 0 0 0 1 1 1 0 0 1 1 1 Q pos Q neg Q pos Q neg 9

EDGE-TRIGGERED D FLIP-FLOP Sensitive to inputs only near the edge of the clock signal (not while high) This timing diagram is for a positive edge triggered D flip-flop Clk D Q Q Timing diagram 10

JK FLIP-FLOP USING D FLIP-FLOP Q t + 1 = D = JQ + K Q When J = K = 1, the output is complemented J sets the flip-flop to 1 K resets the flip-flop to 0 J K Clk Q Q Circuit Graphic symbol 11

T FLIP-FLOP USING JK FLIP-FLOP Q t + 1 = T Q T (toggle) flip-flop is a complementing flip-flop T = 0, no change T = 1, complement (toggle) T Q Q Circuit form JK FF Graphic symbol 12

T FF USING D FF Q t + 1 = D = T Q T (toggle) flip-flop is a complementing flip-flop T = 0, no change T = 1, complement (toggle) T Circuit form D FF Graphic symbol 13

FLIP-FLOPS: REPRESENTATION To represent any combinational circuit, we needed to write the truth table or logic function of the output To represent any flip-flop, we need to write the characteristic table, characteristic equation or excitation table A characteristic table defines the operation of a FF in a tabular form The next state is defined in terms of the current state and the inputs Q(t) refers to the current state (before the clock arrives) Q(t + 1) refers to the next state (after the clock arrives) Similar to the truth table in combinational circuits 14

FLIP-FLOPS: REPRESENTATION A characteristic equation defines the operation of a flipflop in an algebraic form For a D flip-flop: Q t + 1 For a JK flip-flop: Q t + 1 For a T flip-flop: Q t + 1 = D = JQ + K Q = T Q 15

Q t + 1 = JQ + K Q Q t + 1 = D Q t + 1 = T Q 16

FLIP-FLOPS: EXCITATION TABLES If we have the present and next output, what would be the input to the flip-flop that would lead to this output? Q(t) Q(t + 1) J K T D 0 0 0 X 0 0 0 1 1 X 1 1 1 0 X 1 1 0 1 1 X 0 0 1 17

STANDARD SYMBOLS FOR STORAGE ELEMENTS Latches Master-Slave Flip-flops Edge-Triggered Flip-flops 18

DIRECT INPUT (ASYNCHRONOUS INPUT) An example of an asynchronous sequential circuit is a counter circuit that counts the number of occurrences of some event Such a circuit is usually built using a number of flip-flops, whose outputs are interpreted as a number The counter circuit should be able to increment or decrement the number It is also important to be able to force the counter into a known initial state (count = 0), which means that all flip-flops must have Q = 0 Moreover, we should be able to preset each flip-flop to Q = 1, to insert some specific count as the initial value in the counter 19

DIRECT INPUT (ASYNCHRONOUS INPUT) These requirements can all be satisfied by incorporating a Clear and Preset inputs into the design of a flip-flop These extra inputs are called asynchronous because they can set or reset the flip-flop regardless of the status of the Clk signal Negative edge triggered D flip flop with Clear and Preset 20

SUMMARY OF TERMINOLOGY A basic latch is a feedback connection of two NOR gates or two NAND gates, which can store one bit of information. The NORbased latch can be set to 1 using the S input and reset to 0 using the R input A gated (clocked) latch is a basic latch that includes input gating and a control input signal. The latch retains its existing state when the control input is equal to 0. Its state may be changed when the control signal is equal to 1. We referred to this control input as the clock A gated (clocked) SR latch uses the S and R inputs to set the latch to 1 or reset it to 0, respectively A gated (clocked) D latch uses the input D to force the latch into a state that has the same logic value as the D input 21

SUMMARY OF TERMINOLOGY A flip-flop is a storage element based on the gated latch principle, which can have its output state changed only on the edge of the controlling clock signal A Master-slave flip-flop is built with two gated latches. The master stage is active during half of the clock cycle, and the slave stage is active during the other half. The output value of the flip-flop changes on the edge of the clock that activates the transfer into the slave stage An edge-triggered flip-flop is affected only by the input values present when the active edge of the clock occurs 22