Docstoc

VUsolutions_cs302_AssigmentNo. 4 Sol

Document Sample
VUsolutions_cs302_AssigmentNo. 4 Sol Powered By Docstoc
					Q:1
State diagram of a Moore machine is given below; draw the next state table of this Moore machine
(starting from state 101).




                             101



                    010                  100


                             001




ANSWER

        Present state            Next state

   Q2        Q1     Q0      Q2      Q1         Q0


    1         0         1   1        0         0


    1         0         0   0        0         1


    0         0         1   0        1         0


    0         1         0   1        0         1



Q:2
Give the input tables for both 4 bit up counter and 4 bit down counter consisting of D type flip flops.

ANSWER

                                                    Up counter
Present state               Next state X=0                    D flip-flop inputs


Q3       Q2     Q1     Q0   Q3     Q2        Q1      Q0       D3       D2      D1        D0
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    1      0         1       0        1        0       1         0
1        0      1      0    1      0         1       1        1        0       1         1
1        0      1      1    1      1         0       0        1        1       0         0
1        1      0      0    1      1         0       1        1        1       0         1
1        1      0      1    1      1         1       0        1        1       1         0
1        1      1      0    1      1         1       1        1        1       1         1
1        1      1      1    0      0         0       0        0        0       0         0


                                          Down counter




       Present state               Next state X=1                   D flip-flop inputs

Q3       Q2     Q1     Q0    Q3      Q2       Q1         Q0   D3      D2       D1        D0
0        0      0      0     1       1        1          1    1       1        1         1
0        0      0      1     0       0        0          0    0       0        0         0
0        0      1      0     0       0        0          1    0       0        0         1
0        0      1      1     0       0        1          0    0       0        1         0
0        1      0      0     0       0        1          1    0       0        1         1
0        1      0      1     0       1        0          0    0       1        0         0
0        1      1      0     0       1        0          1    0       1        0         1
0        1      1      1     0       1        1          0    0       1        1         0
1        0      0      0     0       1        1          1    0       1        1         1
1        0      0      1     1       0        0          0    1       0        0         0
1        0      1      0     1       0        0          1    1       0        0         1
1        0      1      1     1       0        1          0    1       0        1         0
1        1      0      0     1       0        1          1    1       0        1         1
1        1      0      1     1       1        0          0    1       1        0         0
1   1   1   0   1   1   0   1   1   1   0   1
1   1   1   1   1   1   1   0   1   1   1   0

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:700
posted:6/25/2012
language:English
pages:3
Description: VUsolutions_cs302_AssigmentNo. 4 Sol.