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

Similar documents
Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

ELCT201: DIGITAL LOGIC DESIGN

Introduction to Sequential Circuits

Chapter. Synchronous Sequential Circuits

Unit 11. Latches and Flip-Flops

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.

Combinational vs Sequential

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

Chapter 5 Synchronous Sequential Logic

D Latch (Transparent Latch)

ELCT201: DIGITAL LOGIC DESIGN

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

Synchronous Sequential Logic

MC9211 Computer Organization

CHAPTER 4: Logic Circuits

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

CHAPTER 4: Logic Circuits

RS flip-flop using NOR gate

Chapter 5 Sequential Circuits

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

Sequential Logic Circuits

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

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

Lecture 8: Sequential Logic

Other Flip-Flops. Lecture 27 1

Sequential Circuits: Latches & Flip-Flops

Chapter 8 Sequential Circuits

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

Engr354: Digital Logic Circuits

RS flip-flop using NOR gate

Logic Design. Flip Flops, Registers and Counters

Chapter 5: Synchronous Sequential Logic

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

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

Synchronous Sequential Logic

ECE 341. Lecture # 2

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

Asynchronous (Ripple) Counters

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

Synchronous Sequential Logic. Chapter 5

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

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

LATCHES & FLIP-FLOP. Chapter 7

UNIT IV. Sequential circuit

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Part II. Chapter2: Synchronous Sequential Logic

CHAPTER1: Digital Logic Circuits

LAB #4 SEQUENTIAL LOGIC CIRCUIT

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

6. Sequential Logic Flip-Flops

Chapter 11 Latches and Flip-Flops

Digital Circuits ECS 371

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Vignana Bharathi Institute of Technology UNIT 4 DLD

2 Sequential Circuits

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

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

Combinational / Sequential Logic

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

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

Synchronous Sequential Logic

Introduction to Microprocessor & Digital Logic

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

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

EET2411 DIGITAL ELECTRONICS

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

Synchronous Sequential Logic

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.

LAB 7. Latches & Flip Flops

Synchronous Sequential Logic

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Sequential Logic and Clocked Circuits

Course Administration

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

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

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

Chapter 4. Logic Design

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

Switching Circuits & Logic Design

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

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

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

(Refer Slide Time: 2:05)

CPS311 Lecture: Sequential Circuits

CHAPTER 1 LATCHES & FLIP-FLOPS

Registers and Counters

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

Chapter 5 Sequential Circuits

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

MUX AND FLIPFLOPS/LATCHES

Rangkaian Sekuensial. Flip-flop

211: Computer Architecture Summer 2016

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

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

Transcription:

COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: 22-324

Objectives Sequential Circuits Memory Elements Latches Flip-Flops

Combinational vs Sequential inputs X Combinational Circuits outputs Z A combinational circuit: At any time, outputs depends only on inputs Changing inputs changes outputs No regard for previous inputs No memory (history) Time is ignored!

Combinational vs Sequential inputs X present state Combinational Circuits Memory outputs Z next state A sequential circuit: outputs depends on inputs and previous inputs Previous inputs are stored as binary information into memory The stored information at any time defines a state next state depends on inputs and present state

Examples of sequential systems Traffic light ATM Vending machine What is common between these systems?

Combinational Adder 4-bit adder (ripple-carry) Notice how carry-out propagates One adder is active at a time 4 full adders are needed

Sequential Adder 1-bit memory and 2 4-bit memory Only one full-adder! 4 clocks to get the output The 1-bit memory defines the circuit state (0 or 1)

Types of Sequential Circuits Two types of sequential circuits: Synchronous: The behavior of the circuit depends on the input signal values at discrete intervals of time (also called clocked) Asynchronous: The behavior of the circuit depends on the order of change of the input signals at any instance of time (continuous)

Clock inputs X present state clock Combinational Circuits Memory outputs Z next state A clock generator produces a periodic train of pulses (alternating 0s and 1s) A clock signal is required for generating discrete time intervals in synchronous circuits The memory/state changes with the clock

Memory - Latches A latch is binary storage component Can store a 0 or 1 The most basic memory element Built with gates (NORs, NANDs) Can be used to build flip-flops

SR Latch What does this circuit do?

SR Latch Two states: Set (Q = 1) and Reset (Q = 0) When S=R=0, Q remains the same, S=R=1 is not allowed! Provide a simple form of memory State of the circuit depends not only on the current inputs, but also on the recent history of the inputs

S R Latch How about this circuit?

S R Latch Similar to SR latch (complemented) Two states: Set (Q = 0) and Reset (Q = 1) When S=R=1, Q remains the same S=R=0 is not allowed!

SR Latch with Clock An additional input signal (Clock) can be introduced to make sure that the operation of the latch is modified depending on the value of the Clock (C) signal When C=0, the S and R inputs have no effect on the latch When C=1, the inputs affect the state of the latch and possibly the output

D Latch How can we eliminate the undefined state?

D Latch Ensure S and R are never equal to 1 at the same time Add inverter D stands for data Output follows the input when C = 1 When C = 0, Q remains the same

Characteristic Table Similar to the truth table in combinational circuits Next state is defined in terms of the current state and the inputs K-Map can be used to obtain the characteristic equation The indeterminate states can be expressed as don t cares

Characteristic Table SR Latch Q(t) S R Q(t+1) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 undefined 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 undefined

Characteristic Table SR Latch Q(t) S R Q(t+1) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 undefined 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 undefined Characteristic Equation S=R=1 is not permitted, therefore this condition is all included here

Characteristic Table D Latch Q(t) D Q(t+1) 0 0 0 0 1 1 1 0 0 1 1 1

Characteristic Table D Latch Q(t) D Q(t+1) 0 0 0 0 1 1 1 0 0 1 1 1 Characteristic Equation for the D Latch

Excitation Table Defines the input conditions for which a certain next state is reached from a certain current state for a circuit Lists the inputs for moving from one state to another

Excitation Table Defines the input conditions for which a certain next state is reached from a certain current state for a circuit Lists the inputs for moving from one state to another Example: SR Latch Q(t) Q(t+1) S R 0 0 0 X 0 1 1 0 1 0 0 1 1 1 X 0

Clocked JK Latch extra feedbacks How does it work? Function table? Characteristic Table/Equations? Excitation Table?

Clocked JK Latch The JK latch improves on the SR latch by ensuring that the no input combination will lead to an indeterminate state The outputs of this latch (Q, Q ) are coupled back to the latch input J and K behave like S and R. J implies the Set K implies the Reset For J=K=1, the latch switches to its complement state, i.e. Q becomes 0 if it was already 1 and vice versa

JK Latch Characteristic Table

JK Latch Excitation Table For the next state and present state to be equal to 0, J must be equal to 0 For both next and current states to be equal to 1, K must be equal to 0 To change state from 0 to 1, J must be 1 To change state from 1 to 1, K must be 1

Clocked T Latch The clocked T latch is a single input version of the JK latch The letter T stands for Toggle, as it toggles the current state when equal to 1 When T=1, the next state is the complement of the current state

T Latch (Tables) Characteristic table/equation Functional table Excitation table

Problem with Latches D Q Q Clock C Q What happens Clock=1? What will be the value of Q when Clock goes to 0? Problem: A latch is transparent; state keep changing as long as the clock remains active Due to this uncertainty, latches can not be reliably used as storage elements.

Flip Flops A flip-flop is a one bit memory similar to latches Solves the issue of latch transparency Latches are level sensitive Flip-Flops are edge-triggered or edge-sensitive level positive (rising) edge negative (falling) edge

Flip Flops Implementation Two methods: Master-Slave Two latches (master and slave) and additional logic Edge-Triggered Usually implemented differently at the transistor level Can also be built with latches similar to master-slave implementation

Master-Slave SR Flip Flop Built using two latches (Master and Slave) C = 1, master is active C = 0, slave is active Q is sampled at the falling edge Also called pulsetriggered: data is entered on the rising edge of the clock pulse, but the output does not reflect the change until the falling edge of the clock pulse.

Master-Slave JK Flip Flop Two SR Latches (master and slave) Function is similar to JK Latch but transparency issue is solved

Edge-Triggered D Flip Flop -ve (falling) edge +ve (rising) edge This flip-flop takes exactly the form of a master-slave flipflop, with the master a D latch and the slave an SR latch. Also, an inverter is added to the clock input of the master latch. Because the master latch is a D latch, the flip-flop exhibits edge-triggered rather than master-slave (pulse-triggered) behavior.

Standard Symbols

Direct Inputs At power up or at reset, all or part of a sequential circuit usually is initialized to a known state before it begins operation This initialization is often done outside of the clocked behavior of the circuit, i.e., asynchronously. Direct R and/or S inputs that control the state of the latches within the flip-flops are used for this initialization. For the example flip-flop shown 0 applied to R resets the flip-flop to the 0 state 0 applied to S sets the flip-flop to the 1 state D S C R Q Q

D Flip Flop with Direct Inputs Question: What type of D-FF? Why?

Flip Flops Sheet (Mano s Textbook)

Summary In a sequential circuit, outputs depends on inputs and previous inputs Previous inputs are stored as binary information into memory The stored information at any time defines a state Similarly, next state depends on inputs and present state Two types of sequential circuits: Synchronous and Asynchronous Two types of Memory elements: Latches and Flip- Flops. A flip-flop is described using functional, characteristic table/equation and excitation tables