Professional Documents
Culture Documents
Ans. Design 4-bit Decimal counter that counts from 0 to 9 then rolls off to 0. The project has been designed
using a 4-bit synchronous decade counter which will count from 0000 to 1001, in all counting 10 clock cycles.
The flip flops used to design this synchronous decade counter are 4 D flip flops, the outputs of which will give
the desired count from 0000 to 1001. The moore machine is used for the synchronous decade counter
implementation.
0001
S7
S2
/0111
/0010
S3
S6 /0011
/0110
S4
S5 /0100
/0101
B- State Table:
0 0 0 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 1 0 0 0 1 0
0 0 1 0 0 0 1 1 0 0 1 1
0 0 1 1 0 1 0 0 0 1 0 0
0 1 0 0 0 1 0 1 0 1 0 1
0 1 0 1 0 1 1 0 0 1 1 0
0 1 1 0 0 1 1 1 0 1 1 1
0 1 1 1 1 0 0 0 1 0 0 0
1 0 0 0 1 0 0 1 1 0 0 1
1 0 0 1 0 0 0 0 0 0 0 0
C- Excitation Tables:
As we are using the D Flip flop for the implementation hence the excitation table used for the D Flip flop is as
follows:
Q Q+ D
0 0 0
0 1 0
1 0 1
1 1 1
The excitation tables using D Flip flop for the counter is as shown follows:
D Inputs as Next States
D3 D2 D1 D0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
0 0 0 0
D- Next state Table:
Next State
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
0 0 0 0
For D3:
Q3'.Q2' 0 0 0 0
Q3'.Q2 0 0 1 0
Q3.Q2 X X X X
Q3.Q2' 1 0 X X
D3 = Q3.Q0' + Q2.Q1.Q0
For D2:
Q3'.Q2' 0 0 1 0
Q3'.Q2 1 1 0 1
Q3.Q2 X X X X
Q3.Q2' 0 0 X X
D2 = Q1'.Q2 + Q2'.Q1.Q0
For D1:
Q3'.Q2' 0 1 0 1
Q3'.Q2 0 1 0 1
Q3.Q2 X X X X
Q3.Q2' 0 0 X X
D1 = Q3'.Q1'.Q0 + Q1.Q0'
For D0:
Q3'.Q2' 1 0 0 1
Q3'.Q2 1 0 0 1
Q3.Q2 1 0 0 1
Q3.Q2' 1 0 0 1
D0 = Q0'
5- Partial Drawings for all sections (one by one with names mentioned). (Cut from LogiSim then paste as image).
A- Clock Section
D- Output Section
E- Comparator Section
Clock
Reset
Q.3. Introduce X as input to the counter that when X=1 the counter counts up and when X=0 the counter stops
but holds its state (the number stopped shouldn’t go ). Also introduce Y output signal, when the counter
rolls off from 9 to 0 the Y=1 then Y=0 when the counter counts other counts.
S1 Reset
/0001 S0 /0000
/0000 eset
S1 0001 S1
/0001
0001 /0001
0001 0001
S1
S2
/0001
/0010
0001
0001
S3
S1 /0011
/0001
0001
0001
S4
S1 /0100
/0001
0001
0001
B. State Table:
Q3 Q2 Q1 Q0 For X = 0 For X = 1
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1