ETE Digital Electronics

Slides:



Advertisements
Similar presentations
COE 202: Digital Logic Design Sequential Circuits Part 3
Advertisements

EECS 465: Digital Systems Lecture Notes # 7
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Nonlinear & Neural Networks LAB. CHAPTER 13 Analysis of Clocked Sequential Circuit 13.1 A Sequential Parity Checker 13.2 Analysis by Signal Tracing 13.3.
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design State Reduction and State Assignment (Lecture #22) The slides included herein were taken from the materials accompanying.
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
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
ECE 301 – Digital Electronics
ECE 331 – Digital System Design Counters (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
ECE 331 – Digital System Design Sequential Circuit Design (Lecture #23) The slides included herein were taken from the materials accompanying Fundamentals.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
Asynchronous and Synchronous Counters
KU College of Engineering Elec 204: Digital Systems Design
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
1 Lecture 15 Registers Counters Finite State Machine (FSM) design.
1 EENG 2710 Project Synchronous Counters. 2 Counters Counter: A Sequential Circuit that counts pulses. Used for Event Counting, Frequency Division, Timing,
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Design.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
ETE Digital Electronics
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
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.
IKI c-Synthesis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: Prof. Daniel Gajski’s transparency.
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T =
(Sequential Logic Circuit)
CHAPTER 12 REGISTERS AND COUNTERS
Synchronous Sequential Logic Part I
Synchronous Circuit Design (Class 10.1 – 10/30/2012) CSE 2441 – Introduction to Digital Logic Fall 2012 Instructor – Bill Carroll, Professor of CSE.
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
Synchronous Sequential Logic Part II
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chap 4. Sequential Circuits
State Machines.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Sequential Circuit Design. Outline  Flip-flop Excitation Tables  Sequential Circuit Design  Design: Example #1  Design: Example #2  Design: Example.
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.
Digital
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Synchronous Counters Synchronous digital counters have a common clock which results in all the flip-flops being triggered simultaneously. Consequently,
Digital Logic of Computer Engineering KKU.1 Chapter 5 Sequential Systems Latches and Flip-flops Synchronous Counter Asynchronous.
ECE 301 – Digital Electronics
Digital Circuits State Reduction and Assignment State Reduction reductions on the number of flip-flops and the number of gates a reduction in the.
DESIGN OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Princess Sumaya University
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Basic Logic Operations and Standard Logic Gates [Lecture:1] Instructor: Sajib Roy Lecturer, ETE, ULAB ETE 204 – Digital Electronics.
Synthesis Synchronous Sequential Circuits synthesis procedure –Word description of problem /hardest; art, not science/ –Derive state diagram & state table.
State Machines (Closed Loop / Moore) Synch 2.1  Paul R. Godin Updated: January 2008.
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
3 BIT DOWN COUNTER SUBJECT: DIGITAL ELECTONICS CODE: COLLEGE: BVM ENGINEERING COLLEGE COLLEGE CODE:008 ELECTRONICS & TELECOMMUNICATION DEPT.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Figure 12-13: Synchronous Binary Counter
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
FIGURE 5.1 Block diagram of sequential circuit
MTE 202, Summer 2016 Digital Circuits Dr.-Ing. Saleh Hussin
Chapter5: Synchronous Sequential Logic – Part 4
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

ETE 204 - Digital Electronics Counters [Lecture:14] Instructor: Sajib Roy Lecturer, ETE, ULAB

Counters - has n Flip-Flops - can cycle through at most 2n states. ● 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 2n states. Summer 2012 ETE 204 - Digital Electronics 2

Counters 2-bit Counter 3-bit Counter 111 000 001 00 11 01 110 010 10 101 100 011 2-bit Counter 3-bit Counter Summer 2012 ETE 204 - Digital Electronics 3

Counters 2-bit Counter 3-bit Counter using only 3 states 000 00 01 110 010 10 101 011 2-bit Counter using only 3 states 3-bit Counter using only 5 states Summer 2012 ETE 204 - Digital Electronics 4

Binary Counters 3-bit Binary Counter Cycles through all 8 states ● An n-bit binary counter is a counter that cycles through all 2n states in ascending (or descending) order. 111 000 001 3-bit Binary Counter 110 010 Cycles through all 8 states in ascending order 101 100 011 Summer 2012 ETE 204 - Digital Electronics 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. Summer 2012 ETE 204 - Digital Electronics 6

Binary Counters: Design Example: State Table (using D FF) Present State Next State FF Inputs C B A C+ B+ A+ + DC DB DA Characteristic Equation: 0 0 0 0 0 1 1 1 Q+ = D 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 Summer 2012 ETE 204 - Digital Electronics

Binary Counters: Design Example: K-maps (for D FF inputs) Summer 2012 ETE 204 - Digital Electronics 8

Binary Counters: Design Example: Circuit Diagram (using D FF) Summer 2012 ETE 204 - Digital Electronics 9

Binary Counters: Design Example: State Table (using T FF) Present State Next State FF Inputs Characteristic Equation: C B A C+ B+ A+ TC TB TA 0 0 0 0 0 1 0 0 1 0 1 0 Q+ = T xor Q 0 1 0 0 1 1 0 1 1 1 0 0 Excitation Table: Q Q + T 1 1 1 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 1 1 1 0 0 0 1 0 1 1 1 0 10 Summer 2012 ETE 204 - Digital Electronics

Binary Counters: Design Example: K-maps (for T FF inputs) Summer 2012 ETE 204 - Digital Electronics 11

Binary Counters: Design Example: Circuit Diagram (using T FF) Summer 2012 ETE 204 - Digital Electronics 12

Binary Up-Down Counters What constraints must be placed on the U and D control signals? Summer 2012 ETE 204 - Digital Electronics 13

Binary Up-Down Counters Summer 2012 ETE 204 - Digital Electronics 14

Loadable Counter with Enable Summer 2012 ETE 204 - Digital Electronics 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. Summer 2012 ETE 204 - Digital Electronics 16

Counters: Design Example: Design the following counter using D Flip-Flops. Summer 2012 ETE 204 - Digital Electronics 17

Counters: Design Example: State Table (using D FF) 1 1 x x x 1 1 1 1 1 Present State Next State FF Inputs C B A C+ B+ A+ DC DB DA 1 1 x x x 1 1 1 1 1 1 0 0 1 0 1 1 1 1 x x x Excitation Equation: 1 1 0 1 1 1 x x x 0 1 0 D = Q+ 18 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: K-maps (for D FF inputs) DC DB DA Summer 2012 ETE 204 - Digital Electronics 19

Counters: Design Example: Circuit Diagram (using D FF) Summer 2012 ETE 204 - Digital Electronics 20

Counters: Design Example: Design the following counter using T Flip-Flops. Summer 2012 ETE 204 - Digital Electronics 21

Counters: Design Example: State Table (using T FF) 1 1 x x x 1 1 1 1 1 Present State Next State FF Inputs C B A C+ B+ A+ TC TB TA 1 1 x x x 1 1 1 1 1 1 0 0 1 1 1 Excitation Equation: 1 0 1 x x x 1 1 0 1 1 1 x x x 0 1 0 T = Q xor Q+ 22 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: K-maps (for T FF inputs) 23 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: K-maps (for T FF inputs) We could derive TC , TB , and TA 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 TC , TB , and TA from these maps. 24 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: Circuit Diagram (using T FF) 25 Summer 2012 ETE 204 - Digital Electronics

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 26 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: Design the following counter using JK Flip-Flops. 27 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: Using JK Flip-Flops Excitation Table: Q Q+ J x 1 1 x 1 x 1 1 1 x 28 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: State Table (using JK FF) 1 1 x x x 1 1 1 1 Present State Next State FF Inputs C B A C+ B+ A+ JC KC JB KB JA KA 1 1 x x x 1 1 1 1 1 1 1 1 1 1 1 x x x 1 1 x x x 1 1 1 0 1 0 29 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: K-maps (for JK FF inputs) 30 Summer 2012 ETE 204 - Digital Electronics

Counters: Design Example: Circuit Diagram (using JK FF) 31 Summer 2012 ETE 204 - Digital Electronics

Questions? 32 Summer 2012 ETE 204 - Digital Electronics