29th Oct Review Session 8.

Slides:



Advertisements
Similar presentations
General Sequential Design
Advertisements

Finite State Machines (FSMs)
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Lecture 23: Registers and Counters (2)
State-machine structure (Mealy)
Registers and Counters
COE 202: Digital Logic Design Sequential Circuits Part 3
Digital Logic Chapter 5 Presented by Prof Tim Johnson
1 Review: Counters and Registers CS 231 Review October 26, 2007 By Joshua Smith Please note the NOTES in the PPT file for help with the examples.
Chapter 7 Henry Hexmoor Registers and RTL
Give qualifications of instructors: DAP
Overview Sequential Circuit Design Specification Formulation
Sequential circuit design
Counters and Registers
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Design.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
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 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Rabie A. Ramadan Lecture 3
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
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.
Date: 01/12/2014 Asynchronous (Ripple) Counters Patel Siddhi P rd SEM Computer Science and Engneering B.M.C.E.T Subject Name: Digital Electronics.
4.
L5 – Sequential Circuit Design
Registers and Counters
Synchronous Counter with MSI Gates
SEQUENTIAL CIRCUITS Sequential Circuits Sequential Circuits.
Adapted by Dr. Adel Ammar
Analysis of Clocked Sequential Circuit
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
FIGURE 5.1 Block diagram of sequential circuit
Sequential Circuit: Counter
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
Asynchronous Inputs of a Flip-Flop
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.
KU College of Engineering Elec 204: Digital Systems Design
Sequential circuit design
Synchronous Counters with MSI Gates
Sequential circuit design
29-Nov-18 Counters Chapter 5 (Sections ).
Synchronous Counters with MSI Gates
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
Sequential circuit design
KU College of Engineering Elec 204: Digital Systems Design
State Machine Design State Machine Design Digital Electronics
MTE 202, Summer 2016 Digital Circuits Dr.-Ing. Saleh Hussin
DESIGN OF SEQUENTIAL CIRCUITS
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
Analysis with JK flip-flops
EGC 442 Introduction to Computer Architecture
Chapter5: Synchronous Sequential Logic – Part 4
ECE 352 Digital System Fundamentals
Outline Registers Counters 5/11/2019.
ECE 352 Digital System Fundamentals
EGR 2131 Unit 12 Synchronous Sequential Circuits
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
Week 11 Flip flop & Latches.
Chapter5: Synchronous Sequential Logic – Part 3
State Machine Design State Machine Design Digital Electronics
Digital Electronics and Logic Design
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

29th Oct Review Session 8

Sequential Circuit Design Counters Outline Sequential Circuit Design Counters

Exercise 1 1. Design a sequential circuit for verifying parity in a stream of bits. An even parity means that there are even number of 1s observed so far in the bit stream and an odd parity means that there are odd number of 1s observed in the bit stream so far. The sequential circuit will take a single bit X as input and generates an output bit Y to indicate the odd parity. In other words, the generated output is 1 if and only if the the total number of 1s seen so far are odd. Here is an example of the output sequence generated for the given input - Sample input: 0 0 1 0 1 0 1 1 0 0 1 0 0 0 Sample output: 0 0 1 1 0 0 1 0 0 0 1 1 1 1 Draw the state diagram. Label each arc with X/Y. Label the initial state with A and other states with B, C, D, etc. as required. Explain the purpose of each state. Use the minimum number of states.

Exercise 1 1. Sample input: 0 0 1 0 1 0 1 1 0 0 1 0 0 0 Sample output: 0 0 1 1 0 0 1 0 0 0 1 1 1 1 a. Draw the state diagram. Label each arc with X/Y. Label the initial state with A and other states with B, C, D, etc. as required. Explain the purpose of each state. Use the minimum number of states.

Exercise 1 (solution) 1. Sample input: 0 0 1 0 1 0 1 1 0 0 1 0 0 0 Sample output: 0 0 1 1 0 0 1 0 0 0 1 1 1 1 Draw the state diagram. Label each arc with X/Y. Label the initial state with A and other states with B, C, D, etc. as required. Explain the purpose of each state. Use the minimum number of states.

Sequential Circuit Design Step 1: Make a state table based on the problem statement. The table should show the present states, inputs, next states and outputs. (It may be easier to find a state diagram first, and then convert that to a table.) Step 2: Assign binary codes to the states in the state table, if you haven’t already. If you have n states, your binary codes will have at least log2 n digits, and your circuit will have at least log2 n flip-flops. Step 3: For each flip-flop and each row of your state table, find the flip-flop input values that are needed to generate the next state from the present state. You can use flip-flop excitation tables here. Step 4: Find simplified equations for the flip-flop inputs and the outputs. Step 5: Build the circuit!

Exercise 2 Fill in the state table from the state diagram below, including flip-flop input values, assuming a JK flip-flop will be used..

Example – Step 1: State Table

Example – Step 2: Assign Binary Codes

Example – Step 3: Find FF inputs Excitation Table

Example – Step 3: Find FF inputs Excitation Table

Example – Step 4: Find simplified equations J1 = Q0X'         K1 = Q0X J0 = X               K0 = Q1’X' + Q1X = Q1 XNOR X

Example – Step 5: Build the circuit J1 = Q0X'         K1 = Q0X J0 = X               K0 = Q1’X' + Q1X = Q1 XNOR X

Summary (Course Slide) Counters serve many purposes in sequential logic design. There are lots of variations on the basic counter. Some can increment or decrement. An enable signal can be added. The counter’s value may be explicitly set. There are also several ways to make counters. You can follow the sequential design principles from last week to build counters from scratch. You could also modify or combine existing counter devices. Counters

More complex counters (Course Slide) More complex counters are also possible. The full-featured LogicWorks Counter-4 device below has several functions. It can increment or decrement, by setting the UP input to 1 or 0. You can immediately (asynchronously) clear the counter to 0000 by setting CLR = 1. You can specify the counter’s next output by setting D3-D0 to any four-bit value and clearing LD. The active-low EN input enables or disables the counter. When the counter is disabled, it continues to output the same value without incrementing, decrementing, loading, or clearing. The “counter out” CO is normally 1, but becomes 0 when the counter reaches its maximum value, 1111. Counters

Exercise 3 2. The counter that will change the output order instead of overflowing / underflowing so that it counts up to 1110 and then back to 0 and repeat this whole process again and again, i.e. the counting output sequence is 0000, 0001, 0010, ..., 1101, 1110, 1101, 1100, ..., 0010, 0001, 0000, 0001, ...

Exercise 3 (solution) 2. The counter that will change the output order instead of overflowing / underflowing so that it counts up to 1110 and then back to 0 and repeat this whole process again and again, i.e. the counting output sequence is 0000, 0001, 0010, ..., 1101, 1110, 1101, 1100, ..., 0010, 0001, 0000, 0001, ...