SlideShare a Scribd company logo
1 of 22
Download to read offline
Addis Ababa Institute of Technology
(AAIT) Department of Electrical and
Computer Engineering
ECEG-3201 Digital Logic Design
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri2
Learning Outcomes
 At the end of the lecture, students should be able to:
 Design a synchronous counter for any count sequence
using the following steps:
 Step 1: State diagram
 Step 2: Next-state table
 Step 3: Flip-flop transition table
 Step 4: Circuit excitation table
 Step 5: Karnaugh maps
 Step 6: Logic expression for the flip-flop inputs
 Step 7: Counter implementation
3
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Synchronous Counter
 The counter have a fixed time relationship with
each other and generally count at the same time.
 A synchronous counter is one which all the
flip-flops are connected to the same clock.
4
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Sequential Circuits
 Depends on a clock signal and goes through
a set of sequence of states.
 Also called State Machines.
 A counter is a type of sequential circuit.
 Consists of combinational logic section and
memory section.
5
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Sequential Circuits
6
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Sequential Circuit Design Procedures
 The 7 steps in sequential circuit design are:
 Step 1: State diagram
 Step 2: Next-state table
 Step 3: Flip-flop transition table
 Step 4: Circuit excitation table
 Step 5: Karnaugh maps
 Step 6: Logic expression for the flip-flop inputs
 Step 7: Counter Implementation
7
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 1: The State Diagram
 A state machine is described by a state diagram.
 It shows the progression of states in the state
machine.
 E.g: 3-bit Gray code counter:
8
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 2: Next-State Table
 Lists each state along with the corresponding next
state.
 Next state – state that the counter goes to from its
present state upon application of clock pulse.
 E.g: 3-bit Gray code counter
PRESENT STATE NEXT STATE
Q2 Q1 Q0 Q2 Q1 Q0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
9
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 3: Flip-Flop Transition Table
 To derive the transition table of the J-K flip-flop, let’s
examine the possible transitions:
 0  0
 FF is in RESET mode: J = K =
 FF is in No Change mode: J = K =
 0  0 happens when: J = K =
 0  1
 FF is in SET mode: J = K =
 FF is in Toggle mode: J = K =
 0  1 happens when: J = K =
 1  0
 FF is in RESET mode: J = K =
 FF is in Toggle mode: J = K =
 1  0 happens when: J = K =
0 1
0 0
0 X
01
1 1
1 X
0 1
1 1
1X
10
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 3: Flip-Flop Transition Table
 1  1
 FF is in SET mode: J = 1, K = 0
 FF is in No change mode: J = 0, K = 0
 1  1 happens when: J = X, K = 0
 The J-K transition (or excitation) table is:
OUTPUT TRANSITIONS FLIP-FLOP INPUTS
Q Q+ J K
0
0
1
1




0
1
0
1
0 X
1 X
X 1
X 0
11
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 4: Circuit Excitation Table
 Derived from the next-state table and flip-flop
transition table:
 E.g. 3-bit Gray code counter
PRESENT STATE NEXT STATE Excitation Inputs
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
X
X
X
X
X
X
X
X
0
0
0
1
0
1
X
X
X
X
0
0
X
X
0
0
0
1
X
X
1
X
X
0
1
X
X
0
X
0
1
X
X
0
1
X
OUTPUT TRANSITIONS FLIP-FLOP INPUTS
Q Q+ J K
0
0
1
1




0
1
0
1
0 X
1 X
X 1
X 0
12
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 4: Circuit Excitation Table
 Derived from the next-state table and flip-flop
transition table:
 E.g. 3-bit Gray code counter
PRESENT STATE NEXT STATE Excitation Inputs
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
X
X
X
X
X
X
X
X
0
0
0
1
0
1
X
X
X
X
0
0
X
X
0
0
0
1
X
X
1
X
X
0
1
X
X
0
X
0
1
X
X
0
1
X
OUTPUT TRANSITIONS FLIP-FLOP INPUTS
Q Q+ J K
0
0
1
1




0
1
0
1
0 X
1 X
X 1
X 0
13
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 4: Circuit Excitation Table
 Derived from the next-state table and flip-flop
transition table:
 E.g. 3-bit Gray code counter
PRESENT STATE NEXT STATE Excitation Inputs
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
X
X
X
X
X
X
X
X
0
0
0
1
0
1
X
X
X
X
0
0
X
X
0
0
0
1
X
X
1
X
X
0
1
X
X
0
X
0
1
X
X
0
1
X
OUTPUT TRANSITIONS FLIP-FLOP INPUTS
Q Q+ J K
0
0
1
1




0
1
0
1
0 X
1 X
X 1
X 0
14
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 4: Circuit Excitation Table
 Derived from the next-state table and flip-flop
transition table:
 E.g. 3-bit Gray code counter
PRESENT STATE NEXT STATE Excitation Inputs
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
X
X
X
X
X
X
X
X
0
0
0
1
0
1
X
X
X
X
0
0
X
X
0
0
0
1
X
X
1
X
X
0
1
X
X
0
X
0
1
X
X
0
1
X
15
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 5: Karnaugh Maps
16
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 5: Karnaugh Maps
PRESENT STATE NEXT STATE
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
X
X
X
X
X
X
X
X
0
0
0
1
0
1
X
X
X
X
0
0
X
X
0
0
0
1
X
X
17
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 5: Karnaugh Maps
18
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 6: Logic Expression for Flip-Flop
Inputs
 Derive the logic expression for the flip-flop
inputs from K-map simplification.
 E.g. 3-bit Gray code counter
012
012
021
021
1212120
1212120
QQK
QQJ
QQK
QQJ
QQQQQQK
QQQQQQJ






19
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Step 7: Circuit Implementation
 From the expressions for the J and K inputs,
we get the counter implementation.
20
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
Exercise
 Design a 3-bit Gray code counter using D-flip flops
PRESENT STATE NEXT STATE Excitation Inputs
Q2 Q1 Q0 Q2 Q1 Q0 D2 D1 D0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
21
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
K-Map Simplification
0 1
00 0 0
01 1 0
11 1 1
10 0 1
Q2Q1
Q0 0 1
00 0 1
01 1 1
11 1 0
10 0 0
Q2Q1
Q0 0 1
00 1 1
01 0 0
11 1 1
10 0 0
Q2Q1
Q0
02012 QQQQD  02011 QQQQD  12122 QQQQD 
22
AAIT, Department of
Electrical and Computer
Engineering
Nebyu Yonas Sutri
 Design the three bit gray counter using D
Flip-Flops individually.
 Design an even bit counter in the following
counting sequence (0,2,4,6,8,0)
 Design an odd bit counter in the following
counting sequence (1,3,5,7,9,1)
What to Do this Week?

More Related Content

What's hot (20)

DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog Converter
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Counter
CounterCounter
Counter
 
Fm generation
Fm generationFm generation
Fm generation
 
Chapter#8
Chapter#8Chapter#8
Chapter#8
 
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
 
Basics of op amp
Basics of op ampBasics of op amp
Basics of op amp
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Tipos de flip flops
Tipos de flip flopsTipos de flip flops
Tipos de flip flops
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
Counters
CountersCounters
Counters
 
Clase 3 cdii
Clase 3 cdiiClase 3 cdii
Clase 3 cdii
 
Parity generator & checker
Parity generator & checkerParity generator & checker
Parity generator & checker
 
Cmos logic
Cmos logicCmos logic
Cmos logic
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Edge triggered RS FF.pdf
Edge triggered RS FF.pdfEdge triggered RS FF.pdf
Edge triggered RS FF.pdf
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
Flip flops (ff)
Flip flops (ff)Flip flops (ff)
Flip flops (ff)
 

Similar to Eceg 3201-dld-lec 12-synchronous_counter_design

Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuitsG Subramaniamg
 
Designing a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceDesigning a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceMd. Shafaat Jamil Rokon
 
Eceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_countersEceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_countersNebiyu Musie
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counterRONAK SUTARIYA
 
Sequential Circuit Design-2.pdf
Sequential Circuit Design-2.pdfSequential Circuit Design-2.pdf
Sequential Circuit Design-2.pdfShivarkarSandip
 
UNIT-IV.pptx
UNIT-IV.pptxUNIT-IV.pptx
UNIT-IV.pptxamudhak10
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential CircuitHeman Pathak
 
D0372027037
D0372027037D0372027037
D0372027037theijes
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptSIVALAKSHMIPANNEERSE
 
Traffic light Controller Design
Traffic light Controller DesignTraffic light Controller Design
Traffic light Controller DesignIvan Tim Oloya
 
[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS
[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS
[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERSStephanie Ha
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4RLJIT
 
EET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.pptEET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.pptBeautyKumar1
 

Similar to Eceg 3201-dld-lec 12-synchronous_counter_design (20)

Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 
Designing a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceDesigning a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequence
 
Eceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_countersEceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_counters
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counter
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
Sequential Circuit Design-2.pdf
Sequential Circuit Design-2.pdfSequential Circuit Design-2.pdf
Sequential Circuit Design-2.pdf
 
UNIT-IV.pptx
UNIT-IV.pptxUNIT-IV.pptx
UNIT-IV.pptx
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
Lec9
Lec9Lec9
Lec9
 
D0372027037
D0372027037D0372027037
D0372027037
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
 
Traffic light Controller Design
Traffic light Controller DesignTraffic light Controller Design
Traffic light Controller Design
 
Dee2034 chapter 5 counter
Dee2034 chapter 5 counterDee2034 chapter 5 counter
Dee2034 chapter 5 counter
 
[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS
[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS
[EXPERIMENT20] DeSIGN OF SYNCHRONOUS COUNTERS
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
 
EET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.pptEET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.ppt
 
Ijecet 06 07_005
Ijecet 06 07_005Ijecet 06 07_005
Ijecet 06 07_005
 

Eceg 3201-dld-lec 12-synchronous_counter_design

  • 1. Addis Ababa Institute of Technology (AAIT) Department of Electrical and Computer Engineering ECEG-3201 Digital Logic Design
  • 2. AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri2 Learning Outcomes  At the end of the lecture, students should be able to:  Design a synchronous counter for any count sequence using the following steps:  Step 1: State diagram  Step 2: Next-state table  Step 3: Flip-flop transition table  Step 4: Circuit excitation table  Step 5: Karnaugh maps  Step 6: Logic expression for the flip-flop inputs  Step 7: Counter implementation
  • 3. 3 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Synchronous Counter  The counter have a fixed time relationship with each other and generally count at the same time.  A synchronous counter is one which all the flip-flops are connected to the same clock.
  • 4. 4 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Sequential Circuits  Depends on a clock signal and goes through a set of sequence of states.  Also called State Machines.  A counter is a type of sequential circuit.  Consists of combinational logic section and memory section.
  • 5. 5 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Sequential Circuits
  • 6. 6 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Sequential Circuit Design Procedures  The 7 steps in sequential circuit design are:  Step 1: State diagram  Step 2: Next-state table  Step 3: Flip-flop transition table  Step 4: Circuit excitation table  Step 5: Karnaugh maps  Step 6: Logic expression for the flip-flop inputs  Step 7: Counter Implementation
  • 7. 7 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 1: The State Diagram  A state machine is described by a state diagram.  It shows the progression of states in the state machine.  E.g: 3-bit Gray code counter:
  • 8. 8 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 2: Next-State Table  Lists each state along with the corresponding next state.  Next state – state that the counter goes to from its present state upon application of clock pulse.  E.g: 3-bit Gray code counter PRESENT STATE NEXT STATE Q2 Q1 Q0 Q2 Q1 Q0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0
  • 9. 9 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 3: Flip-Flop Transition Table  To derive the transition table of the J-K flip-flop, let’s examine the possible transitions:  0  0  FF is in RESET mode: J = K =  FF is in No Change mode: J = K =  0  0 happens when: J = K =  0  1  FF is in SET mode: J = K =  FF is in Toggle mode: J = K =  0  1 happens when: J = K =  1  0  FF is in RESET mode: J = K =  FF is in Toggle mode: J = K =  1  0 happens when: J = K = 0 1 0 0 0 X 01 1 1 1 X 0 1 1 1 1X
  • 10. 10 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 3: Flip-Flop Transition Table  1  1  FF is in SET mode: J = 1, K = 0  FF is in No change mode: J = 0, K = 0  1  1 happens when: J = X, K = 0  The J-K transition (or excitation) table is: OUTPUT TRANSITIONS FLIP-FLOP INPUTS Q Q+ J K 0 0 1 1     0 1 0 1 0 X 1 X X 1 X 0
  • 11. 11 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 4: Circuit Excitation Table  Derived from the next-state table and flip-flop transition table:  E.g. 3-bit Gray code counter PRESENT STATE NEXT STATE Excitation Inputs Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 X X X X X X X X 0 0 0 1 0 1 X X X X 0 0 X X 0 0 0 1 X X 1 X X 0 1 X X 0 X 0 1 X X 0 1 X OUTPUT TRANSITIONS FLIP-FLOP INPUTS Q Q+ J K 0 0 1 1     0 1 0 1 0 X 1 X X 1 X 0
  • 12. 12 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 4: Circuit Excitation Table  Derived from the next-state table and flip-flop transition table:  E.g. 3-bit Gray code counter PRESENT STATE NEXT STATE Excitation Inputs Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 X X X X X X X X 0 0 0 1 0 1 X X X X 0 0 X X 0 0 0 1 X X 1 X X 0 1 X X 0 X 0 1 X X 0 1 X OUTPUT TRANSITIONS FLIP-FLOP INPUTS Q Q+ J K 0 0 1 1     0 1 0 1 0 X 1 X X 1 X 0
  • 13. 13 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 4: Circuit Excitation Table  Derived from the next-state table and flip-flop transition table:  E.g. 3-bit Gray code counter PRESENT STATE NEXT STATE Excitation Inputs Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 X X X X X X X X 0 0 0 1 0 1 X X X X 0 0 X X 0 0 0 1 X X 1 X X 0 1 X X 0 X 0 1 X X 0 1 X OUTPUT TRANSITIONS FLIP-FLOP INPUTS Q Q+ J K 0 0 1 1     0 1 0 1 0 X 1 X X 1 X 0
  • 14. 14 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 4: Circuit Excitation Table  Derived from the next-state table and flip-flop transition table:  E.g. 3-bit Gray code counter PRESENT STATE NEXT STATE Excitation Inputs Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 X X X X X X X X 0 0 0 1 0 1 X X X X 0 0 X X 0 0 0 1 X X 1 X X 0 1 X X 0 X 0 1 X X 0 1 X
  • 15. 15 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 5: Karnaugh Maps
  • 16. 16 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 5: Karnaugh Maps PRESENT STATE NEXT STATE Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 X X X X X X X X 0 0 0 1 0 1 X X X X 0 0 X X 0 0 0 1 X X
  • 17. 17 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 5: Karnaugh Maps
  • 18. 18 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 6: Logic Expression for Flip-Flop Inputs  Derive the logic expression for the flip-flop inputs from K-map simplification.  E.g. 3-bit Gray code counter 012 012 021 021 1212120 1212120 QQK QQJ QQK QQJ QQQQQQK QQQQQQJ      
  • 19. 19 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Step 7: Circuit Implementation  From the expressions for the J and K inputs, we get the counter implementation.
  • 20. 20 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri Exercise  Design a 3-bit Gray code counter using D-flip flops PRESENT STATE NEXT STATE Excitation Inputs Q2 Q1 Q0 Q2 Q1 Q0 D2 D1 D0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0
  • 21. 21 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri K-Map Simplification 0 1 00 0 0 01 1 0 11 1 1 10 0 1 Q2Q1 Q0 0 1 00 0 1 01 1 1 11 1 0 10 0 0 Q2Q1 Q0 0 1 00 1 1 01 0 0 11 1 1 10 0 0 Q2Q1 Q0 02012 QQQQD  02011 QQQQD  12122 QQQQD 
  • 22. 22 AAIT, Department of Electrical and Computer Engineering Nebyu Yonas Sutri  Design the three bit gray counter using D Flip-Flops individually.  Design an even bit counter in the following counting sequence (0,2,4,6,8,0)  Design an odd bit counter in the following counting sequence (1,3,5,7,9,1) What to Do this Week?