Flip-Flops and Sequential Circuit Design



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

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

ECE380 Digital Logic

Lesson 12 Sequential Circuits: Flip-Flops

CHAPTER 11 LATCHES AND FLIP-FLOPS

Asynchronous Counters. Asynchronous Counters

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

Lecture 8: Synchronous Digital Systems

Master/Slave Flip Flops

Chapter 8. Sequential Circuits for Registers and Counters

Engr354: Digital Logic Circuits

Counters & Shift Registers Chapter 8 of R.P Jain

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

Module 3: Floyd, Digital Fundamental

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

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

Digital Logic Design Sequential circuits

Chapter 5. Sequential Logic

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

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

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

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

Memory Elements. Combinational logic cannot remember

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

Contents COUNTER. Unit III- Counters

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

Digital Controller for Pedestrian Crossing and Traffic Lights

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

Counters and Decoders

BINARY CODED DECIMAL: B.C.D.

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

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

Lecture-3 MEMORY: Development of Memory:

Sequential Logic: Clocks, Registers, etc.

CS311 Lecture: Sequential Circuits

Design: a mod-8 Counter

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

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

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

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

Counters. Present State Next State A B A B

Chapter 9 Latches, Flip-Flops, and Timers

Fig1-1 2-bit asynchronous counter

Sequential Logic Design Principles.Latches and Flip-Flops

Combinational Logic Design Process

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

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

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

Layout of Multiple Cells

Digital Fundamentals

CSE140: Components and Design Techniques for Digital Systems

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

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Registers & Counters

Wiki Lab Book. This week is practice for wiki usage during the project.

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

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

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.

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Asynchronous counters, except for the first block, work independently from a system clock.

Upon completion of unit 1.1, students will be able to

ASYNCHRONOUS COUNTERS

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

Digital Electronics Detailed Outline

DEPARTMENT OF INFORMATION TECHNLOGY

7. Latches and Flip-Flops

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

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

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

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

The components. E3: Digital electronics. Goals:

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Cascaded Counters. Page 1 BYU

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

Design Verification & Testing Design for Testability and Scan

Lab 1: Study of Gates & Flip-flops

Sequential Circuit Design

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

CHAPTER 11: Flip Flops

Set-Reset (SR) Latch

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

Standart TTL, Serie Art.Gruppe

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

CpE358/CS381. Switching Theory and Logical Design. Class 10

A Lesson on Digital Clocks, One Shots and Counters

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

A Lesson on Digital Clocks, One Shots and Counters

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

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

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

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

Transcription:

Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6 JK Flip-Flop 7.7 Summary of Terminology 7.8 Registers 7.8. Shift Register 7.8.2 Parallel-ccess Shift Register February 3, 22 ECE 52 - Digital Design Principles 2

Reading ssignment Brown and Vranesic (cont) 7 Flip-Flops, Registers, Counters and a Simple Processor (cont) 7.9 Counters 7.9. synchronous Counters 7.9.2 Synchronous Counters 7.9.3 Counters with Parallel Load 7. Reset Synchronization February 3, 22 ECE 52 - Digital Design Principles 3 Reading ssignment Brown and Vranesic (cont) 7 Flip-Flops, Registers, Counters and a Simple Processor (cont) 7. Other Types of Counters 7.. D Counter 7..2 Ring Counter 7..3 Johnson Counter 7..4 Remarks on Counter Design February 3, 22 ECE 52 - Digital Design Principles 4 2

Reading ssignment Brown and Vranesic (cont) 8 Synchronous Sequential Circuits 8. Basic Design Steps 8.. State Diagram 8..2 State Table 8..3 State ssignment 8..4 Choice of Flip-Flops and Derivation of Next-State and Output Expressions 8..5 Timing Diagram 8..6 Summary of Design Steps February 3, 22 ECE 52 - Digital Design Principles 5 Reading ssignment Brown and Vranesic (cont) 8 Synchronous Sequential Circuits (cont) 8.2 State-ssignment Problem One-Hot Encoding 8.7 Design of a Counter Using the Sequential Circuit pproach 8.7. State Diagram and State Table for Modulo-8 Counter 8.7.2 State ssignment 8.7.3 Implementation Using D-Type Flip-Flops 8.7.4 Implementation Using JK-Type Flip-Flops 8.7.5 Example Different Counter February 3, 22 ECE 52 - Digital Design Principles 6 3

Reading ssignment Roth Latches and Flip-Flops.5 S-R Flip-Flop.6 J-K Flip-Flop.7 T Flip-Flop.8 Flip-Flops with dditional Inputs.9 Summary 2 Registers and Counters 2.5 Counter Design Using S-R and J-K Flip-Flops 2.6 Derivation of Flip-Flop Input Equations Summary February 3, 22 ECE 52 - Digital Design Principles 7 The JK Flip-Flop llows J = K = condition Implemented with a gated SR latch and feedback of Q and Q* Q toggles (Q + = Q ) on J = K = February 3, 22 ECE 52 - Digital Design Principles 8 4

The JK Flip-Flop (cont) Characteristic table and equation Karnaugh map of characteristic table Characteristic equation Q + = JQ + K Q February 3, 22 ECE 52 - Digital Design Principles 9 The JK Flip-Flop (cont) Implementation using a D flip-flop Characteristic Function at D input February 3, 22 ECE 52 - Digital Design Principles 5

The JK Flip-Flop State table NS (Q + ) PS (Q) JK = February 3, 22 ECE 52 - Digital Design Principles The JK Flip-Flop State diagram JK = JK = JK = JK = February 3, 22 ECE 52 - Digital Design Principles 2 6

The JK Flip-Flop With clock circuitry and timing Positive edge triggered JK flip-flop February 3, 22 ECE 52 - Digital Design Principles 3 The Master Slave JK Flip-Flop Master Slave JK Flip-Flop Rising edge triggered note CLK inverted to master February 3, 22 ECE 52 - Digital Design Principles 4 7

The Master Slave JK Flip-Flop Master Slave JK Flip-Flop Falling edge triggered note CLK (CP) inverted to slave February 3, 22 ECE 52 - Digital Design Principles 5 The Master Slave JK Flip-Flop Master active on CLK = Slave active on CLK = Latch data in master on CLK = Transfer data to slave (output) on CLK = Timing Diagram Initial Conditions CLK =, J =, K =, Y =, Q = February 3, 22 ECE 52 - Digital Design Principles 6 8

The Master Slave JK Flip-Flop Timing Diagram February 3, 22 ECE 52 - Digital Design Principles 7 The JK Flip-Flop (cont) What happens if J = K = for an indefinite period of time (i.e., much greater than clock period)? Output oscillates at ½ the frequency of the clock Divide by two counter February 3, 22 ECE 52 - Digital Design Principles 8 9

The T (Toggle or Trigger) Flip-Flop Connect J and K inputs together Combined input T Characteristic Table Characteristic Equation Timing Diagram February 3, 22 ECE 52 - Digital Design Principles 9 The T Flip-Flop State Table NS (Q + ) PS (Q) T = T= February 3, 22 ECE 52 - Digital Design Principles 2

The T Flip-Flop State Diagram T = T = T = T = February 3, 22 ECE 52 - Digital Design Principles 2 The T Flip-Flop (from JK/D) Q + = JQ + K Q Q + = T Q + TQ = T OR Q February 3, 22 ECE 52 - Digital Design Principles 22

Counter Design with T Flip-Flops 3 bit binary counter design example State refers to Q s of flip-flops 3 bits, 8 states Decimal through 7 No inputs Transition on every clock edge i.e., state changes on every clock edge ssume clocked, synchronous flip-flops February 3, 22 ECE 52 - Digital Design Principles 23 Counter Design with T Flip-Flops State Diagram February 3, 22 ECE 52 - Digital Design Principles 24 2

Counter Design with T Flip-Flops State table PS B C + NS B + C + February 3, 22 ECE 52 - Digital Design Principles 25 Counter Design with T Flip-Flops Next State Maps + = B + C + = D B + = B C + = D B C + = C = D C February 3, 22 ECE 52 - Digital Design Principles 26 3

Counter Design with T Flip-Flops Using D flip-flops, inputs are derived directly from next state maps D = Q + Using T flip flops Excitation table (used for design) T = Q OR Q + Need to find inputs to T flip-flops Mapping state changes Q Q+ requires T =? February 3, 22 ECE 52 - Digital Design Principles 27 Counter Design with T Flip-Flops T Flip-Flop Excitation Table T = Q OR Q + Q Q + T February 3, 22 ECE 52 - Digital Design Principles 28 4

Counter Design with T Flip-Flops State Variable T = + (OR) = + = T= = + = + = + = T= + = B + C + = D T = February 3, 22 ECE 52 - Digital Design Principles 29 Counter Design with T Flip-Flops State Variable B T B = B + (OR) B B= B= B + = B + = T= T= B + = B + = T= T= B + = B C + = D B T B = C February 3, 22 ECE 52 - Digital Design Principles 3 5

Counter Design with T Flip-Flops State Variable C T C = C + (OR) C C= C= C= C + = C + = T= T= T= T= C + = C + = T= T= T= T= C + = C = D C T C = February 3, 22 ECE 52 - Digital Design Principles 3 Counter Design with T Flip-Flops Implement design using T Flip-Flops with asynchronous preset and clear synchronous preset (PRN) and clear (CLRN) override clock and other inputs Preset : Q, Clear : Q Used to initialize system (all flip-flops) to known state Bubbles indicate low true or active low T =, TB = C, TC = February 3, 22 ECE 52 - Digital Design Principles 32 6

Counter Design with T Flip-Flops Schematic February 3, 22 ECE 52 - Digital Design Principles 33 Counter Design with T Flip-Flops Timing Diagram Q toggles when B = C = QB toggles when C = QC toggles on every clock edge February 3, 22 ECE 52 - Digital Design Principles 34 7

Counter Design with JK Flip-Flops State Diagram February 3, 22 ECE 52 - Digital Design Principles 35 Counter Design with JK Flip-Flops State Table PS B C + NS B + C + February 3, 22 ECE 52 - Digital Design Principles 36 8

Counter Design with JK Flip-Flops Next State Maps + = B = D B + = + = D B C + = B + = D C February 3, 22 ECE 52 - Digital Design Principles 37 Counter Design with JK Flip-Flops JK Flip-Flop Excitation Table Recall JK state diagram Create excitation table from state diagram Q + = JQ + K Q Q Q + JK = J JK = JK = K JK = February 3, 22 ECE 52 - Digital Design Principles 38 9

Counter Design with JK Flip-Flops State Variable + = B = + = + = = + = + = + = J = B K = B February 3, 22 ECE 52 - Digital Design Principles 39 Counter Design with JK Flip-Flops State Variable B B + = + B= B= J B = B + = B + = B + = B + = B + = B + = K B = C February 3, 22 ECE 52 - Digital Design Principles 4 2

Counter Design with JK Flip-Flops State Variable C C + = B + C= C= C= J C = + B C + = C + = C + = C + = C + = K C = February 3, 22 ECE 52 - Digital Design Principles 4 2