Digital 1 1010101010101010101010101010101010101010101010101010101010101 1010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010.

Slides:



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

COE 202: Digital Logic Design Sequential Circuits Part 3
EECS 465: Digital Systems Lecture Notes # 7
Sequential Logic Design with Flip-flops
Registers.1. Register  Consists of N Flip-Flops  Stores N bits  Common clock used for all Flip-Flops Shift Register  A register that provides the.
Sequential Circuit - Counter -
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
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.1, 7.2 Counters.
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,
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
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)
Sequential Logic Combination logic: outputs are based on a combination of present inputs only. Sequential logic: outputs depend on present and past inputs.
Asynchronous and Synchronous Counters
1 A TATA TBTB TCTC B C A B C (P) Binary Counter using Unclocked T-FF Since a pulse (P) is required to initiate each change of state: T A = BCP, T B = CP,
Sequential Circuit Introduction to Counter
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:
Registers and Counters
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
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.
Design of Counters ..
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
A presentation on Counters
Chapter 1_4 Part II Counters
ETE Digital Electronics
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
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.
Registers and Counters
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
(Sequential Logic Circuit)
CHAPTER 12 REGISTERS AND COUNTERS
Synchronous Sequential Logic Part I
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
Synchronous Sequential Logic Part II
CHAPTER 6 MODULAR SQUENTIAL CIRCUITS & APPLICATIONS
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
DIGITAL 2 : EKT 221 Date : 15 th July 2005 Lecture : 1 hrs.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Synchronous Counters Synchronous digital counters have a common clock which results in all the flip-flops being triggered simultaneously. Consequently,
Counters - II. Outline  Synchronous (Parallel) Counters  Up/Down Synchronous Counters  Designing Synchronous Counters  Decoding A Counter  Counters.
Digital Logic Design.
Lecture 20: Sequential Logic (5)
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
COUNTERS Why do we need counters?
Lab5-1 Outline –Design a special-type synchronous sequential circuit using a counter –Schematic entry Lab 5: Counter Applications.
State Machines (Closed Loop / Moore) Synch 2.1  Paul R. Godin Updated: January 2008.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
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 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
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.
Sequential Logic Counters and Registers
Sequential Circuit: Counter
Outline Registers Counters 5/11/2019.
Counters.
Presentation transcript:

Digital Hisham 1 Fundamentals of Logic Design Counters and Similar Sequential Networks Objectives: To design counter using basic flip-flops To describe other simple sequential networks To derive input equations for a design.

Digital Hisham 2 Counters and Similar Sequential Networks Introduction Counter Code Converter Shift Register Simple Sequential Network Application

Digital Hisham 3 Counters and Similar Sequential Networks Binary Counter Counter Decoder Basic Counting: Counting Up Counting Down

Digital Hisham 4 Counters and Similar Sequential Networks Binary Counter Synchronous Counters Ripple Counters Two types:

Digital Hisham 5 Counters and Similar Sequential Networks Binary Counter Synchronous Counter(Synchronous) FF Pulse Flip-flop operations is synchronized by pulse i.e. Flip-flops change states simultaneously.

Digital Hisham 6 Counters and Similar Sequential Networks Binary Counter Ripple Counter (Asynchronous) FF Pulse Flip-flop state change of one flip-flop triggers the next flip-flop in line

Digital Hisham 7 Counters and Similar Sequential Networks Synchronous Binary Counter Design: 3-bits counter Requirements:- Synchronous Count Up Use T flip-flop/ J-K flip-flop Reset to 0

Digital Hisham 8 Counters and Similar Sequential Networks Synchronous Binary Counter 3-bits counter Reset Reset State Graph

Digital Hisham 9 Counters and Similar Sequential Networks Synchronous Binary Counter 3-bits counter (cont’d) ABC Present State Next State A B C A + B + C State Table

Digital Hisham 10 Counters and Similar Sequential Networks Synchronous Binary Counter 3-bits counter: Using T Flip-flop T Q Q Q Q’ T CK

Digital Hisham 11 Counters and Similar Sequential Networks Synchronous Binary Counter Present State Next State A B C A + B + C T-FF Inputs T A T B T C A B C A + B + C T B =0 T A =0 T C =1 3-bits counter: Using T Flip-flop (cont’d)

Digital Hisham 12 Counters and Similar Sequential Networks Synchronous Binary Counter Present State Next State A B C A + B + C T-FF Inputs T A T B T C A B C A + B + C T B =1 T A =0 T C =1 3-bits counter: Using T Flip-flop (cont’d)

Digital Hisham 13 Counters and Similar Sequential Networks Synchronous Binary Counter Present State Next State A B C A + B + C T-FF Inputs T A T B T C A B C A + B + C T B =0 T A =0 T C =1 3-bits counter: Using T Flip-flop (cont’d)

Digital Hisham 14 Present State Next State A B C A + B + C T-FF Inputs T A T B T C Counters and Similar Sequential Networks Synchronous Binary Counter BC A TATA BC A TBTB T A = BCT B = C and T C = 1 3-bits counter: Using T Flip-flop (cont’d)

Digital Hisham 15 Counters and Similar Sequential Networks Synchronous Binary Counter TATA QAQA Q’ A TCTC QCQC Q’ C TBTB QBQB Q’ B Pulse 3-bits counter: Using T Flip-flop (cont’d) OR

Digital Hisham 16 Counters and Similar Sequential Networks Synchronous Binary Counter TATA QAQA Q’ A TCTC QCQC Q’ C TBTB QBQB Q’ B Pulse 3-bits counter: Using T Flip-flop (cont’d) 1

Digital Hisham 17 Q Q’ J K CK Counters and Similar Sequential Networks Synchronous Binary Counter 3-bits counter: Using J-K Flip-flop J K Q Q + 01XX01XX XX10XX

Digital Hisham 18 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter Present State Next State A B C A + B + C J-K flip-flop Inputs J A K A J B K B J C K C 0 X 0 X 1 X 0 X 1 X X 1 0 X X 0 1 X 1 X X 1 X 1 X 0 0 X 1 X X 0 1 X X 1 X 0 X 0 1 X X 1 X 1 X 1 A B C A + B + C J A =0 K A =X J B =0 K B =X J C =1 K C =X

Digital Hisham 19 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter Present State Next State A B C A + B + C J-K flip-flop Inputs J A K A J B K B J C K C 0 X 0 X 1 X 0 X 1 X X 1 0 X X 0 1 X 1 X X 1 X 1 X 0 0 X 1 X X 0 1 X X 1 X 0 X 0 1 X X 1 X 1 X 1 A B C A + B + C J A =0 K A =X J B =1 K B =X J C =X K C =1

Digital Hisham 20 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter Present State Next State A B C A + B + C J-K flip-flop Inputs J A K A J B K B J C K C 0 X 0 X 1 X 0 X 1 X X 1 0 X X 0 1 X 1 X X 1 X 1 X 0 0 X 1 X X 0 1 X X 1 X 0 X 0 1 X X 1 X 1 X 1 A B C A + B + C J A =0 K A =X J B =X K B =0 J C =1 K C =X

Digital Hisham 21 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter BC A JAJA BC A KAKA 1 X X X X X X X X 1 J A = BCK A = BC

Digital Hisham 22 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter BC A JBJB BC A KBKB X 1 X X 1 J B = CK B = C X11 X X X X

Digital Hisham 23 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter BC A JCJC BC A KCKC 1 XX XX J C = 1K C = X X X X

Digital Hisham 24 Pulse 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter KAKA QAQA Q’ A JAJA KBKB QBQB Q’ B JBJB KCKC QCQC Q’ C JCJC

Digital Hisham 25 Pulse 1 3-bits counter: Using J-K Flip-flop (cont’d) Counters and Similar Sequential Networks Synchronous Binary Counter KAKA QAQA Q’ A JAJA KBKB QBQB Q’ B JBJB KCKC QCQC Q’ C JCJC

Digital Hisham 26 Counters and Similar Sequential Networks Next State Maps Introducing Next State Map Deriving input equation for J-K flip-flop using short cut method

Digital Hisham 27 Introducing Next State Maps Counters and Similar Sequential Networks Next State Maps vs Input Equation Maps Present-Next State Mapping Derive from State Table An intermediate step Flip-Flop specific Can be derived from State Table Next State Maps

Digital Hisham 28 Introducing Next State Maps Counters and Similar Sequential Networks State Table Next State Maps Input Equation Maps Circuit Realization Next State Maps

Digital Hisham 29 Present State Next State A B C A + B + C J-K flip-flop Inputs J A K A J B K B J C K C 0 X 0 X 1 X 0 X 1 X X 1 0 X X 0 1 X 1 X X 1 X 1 X 0 0 X 1 X X 0 1 X X 1 X 0 X 0 1 X X 1 X 1 X 1 Counters and Similar Sequential Networks Use to derive FF input Equation via K-Maps Next State Maps Introducing Next State Maps

Digital Hisham 30 Present State Next State A B C A + B + C J-K flip-flop Inputs J A K A J B K B J C K C 0 X 0 X 1 X 0 X 1 X X 1 0 X X 0 1 X 1 X X 1 X 1 X 0 0 X 1 X X 0 1 X X 1 X 0 X 0 1 X X 1 X 1 X 1 Counters and Similar Sequential Networks Use to derive Next State Maps Introducing Next State Maps Next State Maps

Digital Hisham 31 Using J-K Flip-flop 3-bits Prime Number Counter with Next State Maps Counters and Similar Sequential Networks Next State Maps Present State Next State A B C A + B + C

Digital Hisham BC A A+A+ 1 X X X BC A B+B+ 11 X X X BC A C+C X X X Present State Next State A B C A + B + C Using J-K Flip-flop 3-bits Prime Number Counter with Next State Maps Counters and Similar Sequential Networks Next State Maps 1

Digital Hisham 33 Using J-K Flip-flop 3-bits Prime Number Counter with Next State Maps Counters and Similar Sequential Networks Next State Maps BC A JAJA 1 X X X X J K Q Q + 01XX01XX XX10XX BC A A+A+ 1 X X X BC A KAKA X X X X X J A = B X X 1 K A = B

Digital Hisham 34 Using J-K Flip-flop 3-bits Prime Number Counter with Next State Maps Counters and Similar Sequential Networks Next State Maps J K Q Q + 01XX01XX XX10XX BC A JBJB X X X BC A KBKB 1 X X X X J B = C X X 1 K B = BC A B+B+ 11 X X X 1 X X

Digital Hisham 35 Using J-K Flip-flop 3-bits Prime Number Counter with Next State Maps Counters and Similar Sequential Networks Next State Maps BC A JCJC X X X X X J K Q Q + 01XX01XX XX10XX BC A KCKC X X X X J C = 1 X 1 K C = AB BC A C+C X X X 1 X

Digital Hisham 36 Using J-K Flip-flop 3-bits Prime Number Counter with Next State Maps Counters and Similar Sequential Networks Next State Maps Pulse 1 KAKA QAQA Q’ A JAJA KBKB QBQB Q’ B JBJB KCKC QCQC Q’ C JCJC

Digital Hisham 37 Counters and Similar Sequential Networks Next State Maps SHORTCUT to derive input equations of J-K flip-flop from Next State Maps BC A B+B+ 11 X X X BC A C+C X X X BC A A+A+ 1 X X X 1 Next State Maps

Digital Hisham BC A A+A+ 1 X X X 1 Counters and Similar Sequential Networks Next State Maps SHORTCUT to derive input equations of J-K flip-flop from Next State Maps. J A = BK A = B BC A B+B+ 11 X X X J B = C K B = BC A C+C X X X K B = AB J C = 1

Digital Hisham 39 Counters and Similar Sequential Networks Initial State: Binary Counter Design Only 5 states used 3-bits binary would have 8 state! How does missing states relates to initial state specification?

Digital Hisham 40 Counters and Similar Sequential Networks Initial State: Binary Counter Design Missing states: What if the Binary counter designed has initial/present states of those three? Not a Self-Starting Design Assume that initial state will always be 000.

Digital Hisham 41 Counters and Similar Sequential Networks Initial State: Binary Counter Design A more complete and robust design incorporates all possibilities, i.e. for 3-bits binary: all 8 combinations need to be taken into account.

Digital Hisham 42 Counters and Similar Sequential Networks Initial State: Binary Counter Design Better solution 010 Note: It is not always the case that initial condition of a design has to be 000.

Digital Hisham 43 Counters and Similar Sequential Networks Initial State: Binary Counter Design Better solution (3-bits Prime Number Counter) 010 Present State Next State A B C A + B + C

Digital Hisham 44 Counters and Similar Sequential Networks Initial State: Binary Counter Design Present State Next State A B C A + B + C BC A B+B BC A C+C BC A A+A+ 1 1 Next State Maps Better solution (3-bits Prime Number Counter)

Digital Hisham 45 Counters and Similar Sequential Networks Initial State: Binary Counter Design BC A B+B BC A C+C BC A A+A+ 1 1 J A = BCK A = B+C’ J B = C K B = 1 K C = AB J C = A’B’ Better solution (3-bits Prime Number Counter)

Digital Hisham 46 Pulse 1 KAKA QAQA Q’ A JAJA KBKB QBQB Q’ B JBJB KCKC QCQC Q’ C JCJC Counters and Similar Sequential Networks Initial State: Binary Counter Design Better solution (3-bits Prime Number Counter) B C B C’ C A’ B’ A B

Digital Hisham 47 Counters and Similar Sequential Networks Summary Similar techniques used in counters can be applied for other type of sequential network design which has single pulse input to initiate state changes with other no other external inputs. Approach for simple sequential network design: 1. Derive State (Transition) Table 2. Derive Next State Maps 3. Derive Input Equations from K-Maps 4. Realize the circuits.