Synchronous Counter Design

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

State-machine structure (Mealy)
EKT 124 / 3 DIGITAL ELEKTRONIC 1
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Computing Machinery Chapter 5: Sequential Circuits.
Sequential Design Part II. Output A(t+1) =D A = AX + BX B(t+1) =D B = AX Y = AX + BX.
Sequential Circuit - Counter -
ECE 331 – Digital System Design
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
Sequential Logic Design
Logic and Computer Design Fundamentals Registers and Counters
Sequential Circuits Problems(I) Prof. Sin-Min Lee Department of Mathematics and Computer Science Algorithm = Logic + Control.
Digital Logic Design Lecture 26. Announcements Exams will be returned on Thursday Final small quiz on Monday, 12/8. Final homework will be assigned Thursday,
A.Abhari CPS2131 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:
Chapter 9 Counters.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Registers and Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuit - Counter -
Mid3 Revision Prof. Sin-Min Lee. 2 Counters 3 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation.
ECE 320 Homework #6 Derive the state table and state diagram of the sequential circuit of the Figure below. What is the function of the circuit? A’ A.
CHAPTER 12 REGISTERS AND COUNTERS
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Rabie A. Ramadan Lecture 3
Unit 14 Derivation of State Graphs
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
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 )
BZUPAGES.COM1 Chapter 9 Counters. BZUPAGES.COM2 BzuPages.COM Please share your assignments/lectures & Presentation Slides on bzupages which can help your.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits Previously, we described the basic building blocks of sequential circuits,
Introduction to State Machine
Fall 2004EE 3563 Digital Systems Design EE3563 Chapter 7, 8, 10 Reading Assignments  7.1, 7.2, 7.3  8.1, ,   8.5.1, 8.5.2,
Assignment 8 solutions 1) Design and draw combinational logic to perform multiplication of two 2-bit numbers (i.e. each 0 to 3) producing a 4-bit result.
Decade Counter (BCD Counter). Introduction A counter which is reset at the 10 th clock pulse is called decade counter. The decade counter is otherwise.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
1Sequential circuit design Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA by Erol Sahin and Ruken Cakici.
Counters.
Revision Mid 1 Prof. Sin-Min Lee Department of Computer Science.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
1 Lecture #14 EGR 277 – Digital Logic Self-starting counters Counters are considered to be self-starting if all unused counts eventually lead to the correct.
5-1-2 Synchronous counters. Learning Objectives: At the end of this topic you will be able to: draw a block diagram showing how D-type flip-flops can.
Lecture No. 29 Sequential Logic.
Sequential Circuit Design 05 Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.
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 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
UP/DOWN SYNCHRONOUS COUNTERS An up/down counter is one that is capable of progressing in either direction through a certain sequence. An up/down counter,
Synchronous Sequential Logic
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 : Digital 2 COUNTERS.
Sequential Circuit: Counter
Asynchronous Inputs of a Flip-Flop
Sequential Circuit - Counter -
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Sequential circuit design
CSE 140L Discussion Finite State Machines.
29-Nov-18 Counters Chapter 5 (Sections ).
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
Instructor: Alexander Stoytchev
EET107/3 DIGITAL ELECTRONICS 1
Lecture No. 32 Sequential Logic.
DESIGN OF SEQUENTIAL CIRCUITS
Analysis with JK flip-flops
Ladder Diagram Design: Huffman Method
Outline Registers Counters 5/11/2019.
EGR 2131 Unit 12 Synchronous Sequential Circuits
Digital Electronics and Logic Design
Presentation transcript:

Synchronous Counter Design Most requirements for synchronous counters can be met with available ICs. In cases where a special sequence is needed, you can apply a step-by-step design process. The steps in design are described in detail in the text and lab manual. Start with the desired sequence and draw a state diagram and next-state table. The gray code sequence from the text is illustrated:

Step 2: Next-State Table Step 1: State Diagram The first step in the design of a counter is to create a state diagram. A state diagram shows the progression of states through which the counter advances when it is clocked. As an example, is a state diagram for a basic 3-bit Gray code counter. This particular circuit has no inputs other than the clock and no outputs other than the outputs taken off each flip-flop in the counter. You may wish to review the coverage of the Gray code in at this time. Step 2: Next-State Table Once the sequential circuit is defined by a state diagram. the second step is to derive a next- state table, which lists each state of the counter (present state) along with the corresponding next state. The next state is the state that the counter goes to from its present State upon application of a clock pulse The next-state table is derived from the state diagram and is shown in Table for the 3-bit Gray code counter. Qo is the least significant bit.

Next state table: Step 3: Flip-Flop Transition Table Table above is a transition table for the J-K flip-flop. All possible output transitions are listed by showing the Q output of the flip-flop going from present states to next states. QN is the present state of the flip-flop (before d clock pulse) and QN + I is the next state (after a clock pulse). For each output transition. the 1 and K inputs that will cause the transition to occur are listed. An X indicates a "don't care" (the input can be either a I or a 0).

To design the counter, the transition table is applied to each of the flip-flops in the counter, based on the next-state table (Table 8-7). For example, for the present state 000, Qo goes from a present state of 0 to a next state of 1. To make this happen, 10 must be a I and you don't care what Ko is (jo = I, Ko = X), as you can see in the transition table. Next, QI is 0 in the present state and remains a 0 in the next state. For this transition, 1 1 = 0 and K, = X. Finally, Q2 is 0 in the present state and remains a 0 in the next state. Therefore, 1 2 = 0 and K 2 = X. This analysis is repeated for each present state in Table Step 4: Karnaugh Maps Karnaugh maps can be used to determine the logic required for the 1 and K inputs of each flip-flop in the counter. There is a Karnaugh map for the 1 input and a Kamaugh map for the K input of each flip-flop. In this design procedure, each cell in a Kamaugh map represents one of the present states in the counter sequence listed in Table 8-7. From the 1 and K states in the transition table (Table 8-8) a 1,0, or X is entered into each present state cell on the maps depending on the transition of the Q output for a particular flip- flop. To illustrate this procedure, two sample entries are shown for the 10 and the Ko inputs to the least significant flip-flop (Qo)

Step 5: logic Expressions for Flip-Flop Inputs From the Karnaugh maps you obtain the following expressions for the 1 and K inputs of each flip-flop: Step 6: Counter Implementation The final step is to implement the combinational logic from the expressions for the 1 and K inputs and connect the flip-flops to form the complete 3-bit Gray code counter as shown .

1. Specify the counter sequence and draw a state diagram. 2. Derive a next-state table from the state diagram. 3. Develop a transition table showing the flip-flop inputs required for each transition. The transition table is always the same for a given type of flip-flop. 4. Transfer the 1 and K states from the transition table to Karnaugh maps. There is a Karnaugh map for each input of each flip-flop. 5. Group the Karnaugh map cells to generate and derive the logic expression for each flip-flop input. 6. ÷mplement the expressions with combinational logic. and combine with the flip- flops to create the counter.

Design a counter with the count sequence shown in the state diagram of the following figure . Use J-K flip-flops. Solution Step 1: The state diagram is as shown. Although there are only four states, a 3-bit counter is required to implement this sequence because the maximum binary count is seven. Since the required sequence dues not include all the possible binary states, the invalid states (0, 3,4, and 6) can be treated as "don't cares" in the design. However, if the counter should erroneollsly get into an invalid state, you must make sure that it goes back to a valid state. Step 2: The next-state table is developed from the state diagram and is given in the following table.

Step 3: The transition table for the J-K flip-flop is repeated in Step 4: The J and K inputs are plotted on the present-state Karnaugh maps in Figure . . Also "don't cares" can be placed in the cells corresponding to the invalid states of 000, 011, 100, and 110, as indicated by the red Xs.

Step 5: Group the 1 s, taking advantage of as many of the "don't care" states as possible for maximum simplification. Notice that when all cells in a map are grouped, the expression is simply equal to I. The expression for each J and K input taken from the maps is as follows: Step 6: The implementation of the counter is shown