ECE 331 Digital System Design

Similar documents
ECE 301 Digital Electronics

ECE 301 Digital Electronics

Flip-Flops and Registers

Lecture 11: Synchronous Sequential Logic

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

Course Administration

Sequential Design Basics

ELCT201: DIGITAL LOGIC DESIGN

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

Computer Organization & Architecture Lecture #5

Dr.Mohamed Elmahdy Winter 2015 Eng.Yasmin Mohamed. Problem Set 6. Analysis and Design of Clocked Sequential Circuits. Discussion: 7/11/ /11/2015

Other Flip-Flops. Lecture 27 1

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

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

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

L5 Sequential Circuit Design

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Analysis of Clocked Sequential Circuits

ECE 341. Lecture # 2

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

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

Sequential Circuit W CLK. CMSC 2833 Lecture 42. Steps:

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

ELCT201: DIGITAL LOGIC DESIGN

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

Universal Asynchronous Receiver- Transmitter (UART)

Universidad Carlos III de Madrid Digital Electronics Exercises

ELCT201: DIGITAL LOGIC DESIGN

RS flip-flop using NOR gate

Flip-Flops and Sequential Circuit Design

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Introduction to Sequential Circuits

CMSC 313 Preview Slides

LAB 7. Latches & Flip Flops

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

ASYNCHRONOUS COUNTER CIRCUITS

Chapter 5 Synchronous Sequential Logic

Unit 11. Latches and Flip-Flops

Lecture 8: Sequential Logic

More design examples, state assignment and reduction. Page 1

1. Convert the decimal number to binary, octal, and hexadecimal.

EE292: Fundamentals of ECE

Introduction. Serial In - Serial Out Shift Registers (SISO)

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Sequential Logic and Clocked Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

# "$ $ # %!"$!# &!'$("!)!"! $ # *!"! $ '!!$ #!!)! $ "# ' "

Digital Logic Design I

Synchronous sequential circuits

CHAPTER1: Digital Logic Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 8

UNIVERSITI TEKNOLOGI MALAYSIA

Logic Design II (17.342) Spring Lecture Outline

Chapter. Synchronous Sequential Circuits

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Advanced Digital Logic Design EECS 303

Lecture 12. Amirali Baniasadi

Experiment # 12. Traffic Light Controller

Final Examination (Open Katz, Calculators OK, 3 hours)

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Chapter 2. Digital Circuits

INC 253 Digital and electronics laboratory I

Digital Fundamentals: A Systems Approach

Chapter 5 Sequential Circuits

Digital Logic Design ENEE x. Lecture 19

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

Counters

6.S084 Tutorial Problems L05 Sequential Circuits

THE UNIVERSITY OF TRINIDAD & TOBAGO

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Logic Design II (17.342) Spring Lecture Outline

Registers and Counters

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

Registers and Counters

Asynchronous (Ripple) Counters

Sequential Circuits: Latches & Flip-Flops

CHAPTER 4: Logic Circuits

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

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

EECS 270 Midterm Exam Spring 2011

CH 11 Latches and Flip-Flops

Logic. Andrew Mark Allen March 4, 2012

CHAPTER 4: Logic Circuits

CHAPTER 6 COUNTERS & REGISTERS

Sequential Logic Circuits

ENGG 1203 Tutorial. D Flip Flop. D Flip Flop. Q changes when CLK is in Rising edge PGT NGT

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Midterm Examination II

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

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

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

6.3 Sequential Circuits (plus a few Combinational)

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

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Transcription:

ECE 331 Digital System Design Counters (Lecture #20) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6 th Edition, by Roth and Kinney, and were used with permission from Cengage Learning.

Counters A counter is a sequential circuit (aka. finite state machine) that cycles through a fixed sequence of states. The state of the counter is stored in Flip-Flops. An n-bit counter has n Flip-Flops can cycle through at most 2 n states. Spring 2011 ECE 331 - Digital System Design 2

Counters 00 111 000 001 11 01 110 010 10 101 100 011 2-bit Counter 3-bit Counter Spring 2011 ECE 331 - Digital System Design 3

Counters 00 000 01 110 010 10 2-bit Counter using only 3 states 101 011 3-bit Counter using only 5 states Spring 2011 ECE 331 - Digital System Design 4

Binary Counters An n-bit binary counter is a counter that cycles through all 2 n states in ascending (or descending) order. 111 000 001 110 010 3-bit Binary Counter Cycles through all 8 states in ascending order 101 100 011 Spring 2011 ECE 331 - Digital System Design 5

Binary Counters: Design 1.Draw a state graph that specifies the desired sequence of the counter. 2.Construct a state table from the state graph. One Flip-Flop for each bit in the state. 3.Derive a K-map from the state table for each Flip-Flop input. Select the type of Flip-Flop to be used. 4.Determine the input equation(s) for each Flip-Flop. Spring 2011 ECE 331 - Digital System Design 6

Binary Counters: Design Example: State Table (using D FF) Present State Next State FF Inputs C B A C + B + A + D C D B D A 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0 Characteristic Equation: Q + = D Spring 2011 ECE 331 - Digital System Design 7

Binary Counters: Design Example: K-maps (for D FF inputs) Spring 2011 ECE 331 - Digital System Design 8

Binary Counters: Design Example: Circuit Diagram (using D FF) Spring 2011 ECE 331 - Digital System Design 9

Binary Counters: Design Example: State Table (using T FF) Present State Next State FF Inputs C B A C + B + A + T C T B T A 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0 Characteristic Equation: Q + = T xor Q Excitation Table: Q Q + T 0 0 0 0 1 1 1 0 1 1 1 0 Spring 2011 ECE 331 - Digital System Design 10

Binary Counters: Design Example: K-maps (for T FF inputs) Spring 2011 ECE 331 - Digital System Design 11

Binary Counters: Design Example: Circuit Diagram (using T FF) Spring 2011 ECE 331 - Digital System Design 12

Binary Up-Down Counters What constraints must be placed on the U and D control signals? Spring 2011 ECE 331 - Digital System Design 13

Binary Up-Down Counters Spring 2011 ECE 331 - Digital System Design 14

Loadable Counter with Enable Spring 2011 ECE 331 - Digital System Design 15

Counters: Design 1.Draw a state graph that specifies the desired sequence of the counter. 2.Construct a state table from the state graph. One Flip-Flop for each bit in the state. 3.Derive a K-map from the state table for each Flip-Flop input. Select the type of Flip-Flop to be used. 4.Determine the input equation(s) for each Flip-Flop. Spring 2011 ECE 331 - Digital System Design 16

Counters: Design Example: Design the following counter using D Flip-Flops. Spring 2011 ECE 331 - Digital System Design 17

Counters: Design Example: State Table (using D FF) Excitation Equation: D = Q + Present State Next State FF Inputs C B A C + B + A + D C D B D A 0 0 0 1 0 0 0 0 1 x x x 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 x x x 1 1 0 x x x 1 1 1 0 1 0 Spring 2011 ECE 331 - Digital System Design 18

Counters: Design Example: K-maps (for D FF inputs) D C D B D A Spring 2011 ECE 331 - Digital System Design 19

Counters: Design Example: Circuit Diagram (using D FF) Spring 2011 ECE 331 - Digital System Design 20

Counters: Design Example: Design the following counter using T Flip-Flops. Spring 2011 ECE 331 - Digital System Design 21

Counters: Design Example: State Table (using T FF) Excitation Equation: T = Q xor Q + Present State Next State FF Inputs C B A C + B + A + T C T B T A 0 0 0 1 0 0 0 0 1 x x x 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 x x x 1 1 0 x x x 1 1 1 0 1 0 Spring 2011 ECE 331 - Digital System Design 22

Counters: Design Example: K-maps (for T FF inputs) Spring 2011 ECE 331 - Digital System Design 23

Counters: Design Example: K-maps (for T FF inputs) We could derive T C, T B, and T A directly from the state table, but it is often more convenient to plot next-state maps showing C +, B +, and A + as functions of C, B, and A, and then derive T C, T B, and T A from these maps. Spring 2011 ECE 331 - Digital System Design 24

Counters: Design Example: Circuit Diagram (using T FF) Spring 2011 ECE 331 - Digital System Design 25

Counters: Design Example: Next States (for T FF inputs) Although the original state table for the counter is not completely specified, the next states of states 001, 101, and 110 have been specified in the process of completing the circuit design 101 110 Spring 2011 26

Counters: Design Example: Design the following counter using JK Flip-Flops. Spring 2011 ECE 331 - Digital System Design 27

Counters: Design Example: Using JK Flip-Flops Excitation Table: Q Q + J K 0 0 0 x 0 1 1 x 1 0 x 1 1 1 x 0 Spring 2011 ECE 331 - Digital System Design 28

Counters: Design Example: State Table (using JK FF) Present State Next State FF Inputs C B A C + B + A + J C K C J B K B J A K A 0 0 0 1 0 0 0 0 1 x x x 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 x x x 1 1 0 x x x 1 1 1 0 1 0 Spring 2011 ECE 331 - Digital System Design 29

Counters: Design Example: K-maps (for JK FF inputs) Spring 2011 ECE 331 - Digital System Design 30

Counters: Design Example: Circuit Diagram (using JK FF) Spring 2011 ECE 331 - Digital System Design 31

Questions? Spring 2011 ECE 331 - Digital System Design 32