CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012



Similar documents
CHAPTER 11 LATCHES AND FLIP-FLOPS

ECE380 Digital Logic

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Engr354: Digital Logic Circuits

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Master/Slave Flip Flops

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Lesson 12 Sequential Circuits: Flip-Flops

Module 3: Floyd, Digital Fundamental

Theory of Logic Circuits. Laboratory manual. Exercise 3

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

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

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Memory Elements. Combinational logic cannot remember

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

CS311 Lecture: Sequential Circuits

Flip-Flops, Registers, Counters, and a Simple Processor

Chapter 5. Sequential Logic

Modeling Latches and Flip-flops

Lecture 8: Synchronous Digital Systems

Contents COUNTER. Unit III- Counters

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Sequential Logic Design Principles.Latches and Flip-Flops

Chapter 9 Latches, Flip-Flops, and Timers

CSE140: Components and Design Techniques for Digital Systems

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

7. Latches and Flip-Flops

Chapter 8. Sequential Circuits for Registers and Counters

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

BINARY CODED DECIMAL: B.C.D.

Set-Reset (SR) Latch

Sequential Logic: Clocks, Registers, etc.

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Asynchronous Counters. Asynchronous Counters

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Counters and Decoders

Upon completion of unit 1.1, students will be able to

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Combinational Logic Design Process

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

The components. E3: Digital electronics. Goals:

Lecture 10: Sequential Circuits

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Digital Fundamentals

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Fig1-1 2-bit asynchronous counter

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

Counters. Present State Next State A B A B

Lecture-3 MEMORY: Development of Memory:

Lecture 11: Sequential Circuit Design

Copyright Peter R. Rony All rights reserved.

Digital Logic Design Sequential circuits

Counters & Shift Registers Chapter 8 of R.P Jain

Design Verification & Testing Design for Testability and Scan

Sequential Circuit Design

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

ASYNCHRONOUS COUNTERS

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Design: a mod-8 Counter

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

Registers & Counters

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

CHAPTER 3 Boolean Algebra and Digital Logic

Digital Controller for Pedestrian Crossing and Traffic Lights

Decimal Number (base 10) Binary Number (base 2)

Digital Electronics Detailed Outline

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

DEPARTMENT OF INFORMATION TECHNLOGY

CHAPTER 11: Flip Flops

Layout of Multiple Cells

Standart TTL, Serie Art.Gruppe

Counters are sequential circuits which "count" through a specific state sequence.

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Gates, Circuits, and Boolean Algebra

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

ECE124 Digital Circuits and Systems Page 1

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

Microprocessor & Assembly Language

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

Latch Timing Parameters. Flip-flop Timing Parameters. Typical Clock System. Clocking Overhead

Transcription:

CDA 3200 Digital Systems Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Outline SR Latch D Latch Edge-Triggered D Flip-Flop (FF) S-R Flip-Flop (FF) J-K Flip-Flop (FF) T Flip-Flop (FF) Flip-Flops (FFs) with Additional Inputs

SR Latch (1/17) Combinational circuits Outputs depend on present inputs Sequential circuits Outputs depend on both present and the past sequence of inputs. Have memory.

SR Latch (2/17) Input Combinational Circuit Output Input Set 1 Output Set 1 Input Set 2 Sequential Circuit Output Set 2

SR Latch (3/17) X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0 The circuit can assume an initial and stable state: SR/PQ=00/10.

SR Latch (4/17) 1 0 1 X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0 SR/PQ=10/01 is also stable.

SR Latch (5/17) 1 0 1 X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0 SR/PQ=00/01 is also stable.

SR Latch (6/17) 10 1 10 X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0 SR/PQ=01/10 is also stable. SR/PQ=00/10 is also stable.

SR Latch (7/17) 1 10 1 10 X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0

SR Latch (8/17) 1 10 1 10 X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0

SR Latch (9/17) PQ=01 SR=00 PQ=10 PQ=01 PQ=01 PQ=10 SR=10 SR=01 PQ=10 The change between any two of 00, 10, 01 will reach a stable state.

SR Latch (10/17) 10 0 10 0 X Y NOR 0 0 1 0 1 0 1 0 0 1 1 0 What is PQ when the circuit is stable?

SR Latch (11/17) SR=11 is restricted in SR latch. PQ cannot be both 1.

SR Latch (12/17) When SR=10, PQ=01 is stable. When SR=01, PQ=10 is stable. When SR=00, both PQ=10 and PQ=01 are stable. Note In the stable states, P=Q Any change to SR=00 will not change PQ. SR=00 is used to keep states (remember what happened.)

S: Set Q R: Reset Q SR Latch (13/17)

SR Latch (14/17) How to draw a truth table for an SR latch? Input? Output?

S R Q Q + 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 X 1 1 1 X SR Latch (15/17)

SR Latch (16/17) Alternatively, an SR latch can be realized using NAND gates.

SR Latch (17/17) Alternatively, an SR latch can be realized using NAND gates. S-bar R-bar Q Q + 1 1 0 0 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 1 0 1 1 1 0 0 0 X 0 0 1 X

Gated D Latch (1/3) Q + What are S and R when G=0? G=0 keeps states: Q + =D. Can SR=11 ever occur? Q + =D when G=1.

Gated D Latch (2/3) No do not care terms.

Gated D Latch (3/3) if(g==1){ Q + = D; }else{ Q + = Q; }

Edge-Triggered D Flip-Flop (FF) (1/3) If the G signal in the D latch is connected to a clock input, the output changes only in response to the clock, not to a change in D. And we call this latch a D Flip-Flop (FF). Q + =D

Edge-Triggered D Flip-Flop (FF) (2/3)

Edge-Triggered D Flip-Flop (FF) (3/3) Note Q does not change during Ck=0. Timing for D Flip-Flops (FF) (Falling-Edge Trigger)

S-R Flip-Flop (FF) (1/3) Q + changes in response to the clock signal.

S-R Flip-Flop (FF) (2/3) CLK When CLK=0 P + =S 1 +R 1 P When CLK=1 Q + =P

S-R Flip-Flop (FF) (3/3) Why master-slave Flip-Flops (FFs)? The master Flip-Flop (FF) holds the output for in the first half clock cycle. When the slave Flip-Flop (FF) updates and outputs, the master is closed. This mechanism guarantees that the final output changes only once in a clock cycle.

JK Flip-Flop (FF) (1/2) An extended version of the SR Flip-Flop (FF) J corresponds to S K corresponds to R J K Q Q + 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 JK can be 11. This configuration changes the state of Q.

JK Flip-Flop (FF) (2/2) S1=J * Q * CLK R1=K * Q * CLK S1 and R1 cannot be 1 at the same time.

T Flip-Flop (FF) (1/2) T=0 no state change T=1 state changes TQ Q + 00 0 01 1 10 1 11 0 Q + =T xor Q

T Flip-Flop (FF) (2/2)

Summary (1/8) All the Flip-Flops (FFs) and D latch are based on SR latch. SRlatch can be described using Q + =S+R Q S=1 sets Q R=1 resets Q SR=00 keeps states (Q does not change.)

Summary (2/8) Q + =S+R Q Gated D latch S=DG R=D G When G=0, SR==00 state kept. When G=1, Q=D When D=0, SR=01 reset Q Q=0 When D=1, SR=10 set Q Q=1

Summary (3/8) Q + =S+R Q When G is a clock signal, two gated D latches comprise an edge-triggered D Flip-Flop (FF) D CLK Q if(clk is low) Q does not change else Q becomes D shortly after the rising edge Note Q s waveform is not exactly the same with D s.

Summary (4/8) Q + =S+R Q SR Flip-Flop (FF) Master and slave When the master receives the input and updates, the slave is close. When the slave outputs, the master does not respond to any input change.

Summary (5/8) Q + =S+R Q SR Flip-Flop (FF) (cont) When CLK is low, S 1 R 1 =SR P + = S+R P, master is updated S 2 R 2 =00 Q does not change

Summary (6/8) Q + =S+R Q SR Flip-Flop (FF) (cont) When CLK is high, S 1 R 1 =00 P does not change master does not respond to inputs S 2 R 2 =PP Q + =P+(P ) Q=P

Summary (7/8) Q + =S+R Q SR Flip-Flop (FF) (cont) SR 10 01 P 10 01 Master CLK Q low high low high low high Slave The final output, Q, was not affected by 01.

Summary (8/8) Q + =S+R Q JK Flip-Flop (FF) Very similar to SR master-slave Flip-Flop (FF) Except JK=11 inverts the output T Flip-Flop (FF) T=1 inverts the output T=0 keeps the same output

Flip-Flops (FFs) with Additional Inputs (1/3) Clear and Preset signals are two asynchronous signals and do not depend on CLK.

Flip-Flops (FFs) with Additional Inputs (2/3)

Flip-Flops (FFs) with Additional Clock enable signal Inputs (3/3)