Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No. 19-1 Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.

Slides:



Advertisements
Similar presentations
Finite State Machines (FSMs)
Advertisements

COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Lecture 23: Registers and Counters (2)
Registers and Counters
Flip-Flops, Registers, Counters, and a Simple Processor
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Sequential Logic Case Studies
Chapter 7 Henry Hexmoor Registers and RTL
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.4 Counters.
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design Finite State.
Logic and Computer Design Fundamentals Registers and Counters
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Flip-Flop Types.
ECE C03 Lecture 101 Lecture 10 Registers, Counters and Shifters Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
Contemporary Logic Design FSM Optimization © R.H. Katz Transparency No Chapter #9: Finite State Machine 9.4 Choosing Flip-Flops 9.5 Machine Partitioning.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
VII - Finite State Machines © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Finite State Machines Sequential circuits  primitive sequential elements.
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Sequential Circuit Introduction to Counter
Registers and Counters
Lecture 21 Overview Counters Sequential logic design.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Lecture 27 Counters Give qualifications of instructors: DAP
EE24C Digital Electronics Projects
10-1 Introduction Chapter #7: Sequential Logic Case Studies.
Page 1 Registers and Counters. Page 2 What is a Register?  A Register is a collection of n flip-flops with some common function or characteristic  Control.
Rabie A. Ramadan Lecture 3
No. 7-1 Chapter #7: Sequential Logic Case Studies.
VII - Finite State Machines © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Finite State Machines (FSM) Sequential circuits  primitive sequential.
Synchronous Counters with SSI Gates
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Counters By Taweesak Reungpeerakul
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
BZUPAGES.COM1 Chapter 9 Counters. BZUPAGES.COM2 BzuPages.COM Please share your assignments/lectures & Presentation Slides on bzupages which can help your.
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
ENG241 Digital Design Week #8 Registers and Counters.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Computer Organization & Programming Chapter 5 Synchronous Components.
Sequential logic circuits
Registers and Counters
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Learning to Design Counters
Chap 5. Registers and Counters
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Chapter #6: Sequential Logic Design
Registers and Counters
Sequential Logic Counters and Registers
Sequential Circuit: Counter
CSE 370 – Winter Sequential Logic-2 - 1
Registers and Counters
CSE 370 – Winter Sequential Logic-2 - 1
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
Outline Registers Counters 5/11/2019.
Presentation transcript:

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Motivation Flipflops: most primitive "packaged" sequential circuits More complex sequential building blocks: Storage registers, Shift registers, Counters Available as components in the TTL Catalog How to represent and design simple sequential circuits: counters Problems and pitfalls when working with counters: Start-up States Asynchronous vs. Synchronous logic

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Kinds of Registers and Counters Counters Proceed through a well-defined sequence of states in response to count signal 3 Bit Up-counter: 000, 001, 010, 011, 100, 101, 110, 111, 000,... 3 Bit Down-counter: 111, 110, 101, 100, 011, 010, 001, 000, 111,... Binary vs. BCD vs. Gray Code Counters A counter is a "degenerate" finite state machine/sequential circuit where the state is the only output A counter is a "degenerate" finite state machine/sequential circuit where the state is the only output

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Kinds of Registers and Counters Catalog Counter Synchronous 4-Bit Upcounter Synchronous Load and Clear Inputs. Operation occurs on the positive transition of the clock. Positive Edge Triggered FFs Parallel Load Data from D, C, B, A P, T Enable Inputs: both must be asserted to enable counting RCO: asserted when counter enters its highest state 1111, used for cascading counters "Ripple Carry Output" 74161: similar in function, asynchronous load and reset

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Kinds of Registers and Counters Detailed Timing Diagram CLK A B C D LOAD CLR P T Q A Q B Q C Q D RCO ClearLoadCountInhibit

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure Introduction This procedure can be generalized to implement ANY finite state machine Counters are a very simple way to start: no decisions on what state to advance to next current state is the output

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure Example:3-bit Binary Upcounter 000 State Transition Table Flipflop Input Table Decide to implement with Toggle Flipflops What inputs must be presented to the T FFs to get them to change to the desired state bit? Present State Next State Flipflop Inputs C B A C + B + A + TC TB TA

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure Example Continued K-maps for Toggle Inputs: Resulting Logic Circuit:

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Timing Diagram: Counter Design Procedure Example Continued

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure More Complex Count Sequence Step 1: Derive the State Transition Diagram Count sequence: 000, 010, 011, 101,

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure More Complex Count Sequence Step 2: State Transition Table Note the Don't Care conditions Present State Next State C B A C + B + A X X X X X X X X X

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure More Complex Count Sequence Step 3: K-Maps for Next State Functions CB A 0 1 C+ = A CB A 0 1 A+ = BC CB A 0 1 B+ = B + AC X X X X 0 X X X 1 X 0

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No C B A TC TB TA X X X X X X X X X Counter Design Procedure More Complex Counter Sequencing Step 4: Choose Flipflop Type for Implementation Use Excitation Table to Remap Next State Functions Toggle Excitation Table Remapped Next State Functions Present State Toggle Inputs Q Q + T

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure More Complex CounterSequencing Remapped K-Maps CB A 0 1 TC CB A 0 1 TA CB A 0 1 TB X X 1 X X X X X 0 X 1 TC = A C + A C = A  C TB = A + B + C TA = A B C + B C

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Counter Design Procedure More Complex Counter Sequencing Resulting Logic: 5 Gates 13 Input Literals + Flipflop connections Note: T-FFs are implemented using JK-FFs

Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Timing Waveform: Counter Design Procedure More Complex Counter Sequencing