Sei sulla pagina 1di 2

EE348Summer2011NAME:SOLUTION

EXAM4SURNAME



Xf
Q1)a)(5pts)
2'sCOMPLEMENTER y

Xd

Drawstatetransitiondiagramforthesequentialcircuitwhichwillproduceseriallythe2's
complementsofnbitnumbersfedtothecircuitserially(LSBbeingfirst)frominputXd.Another
inputXfsignalsthearrivalofthenthbit.
... 19 18 17 16 15 14 13 12 11 10 11 6 5 4 3 2 1 0 Time
.. 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 Xf
... 0 0 1 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0 Xd
1 1 0 1 1 0 0 1 0 1 1 0 0 0 1 0 1 0 Y

01/1

XfXd/Y 00/1,
00/0,
10/0, a b 01/0
11/1

10/1,11/0



b)(10pts)
X ALLSAME y




Drawstatetransitiondiagramforthesequentialcircuitthatproducesoutput1iffthelastthreebits
arrivedareall0orall1,i.e.Xn2Xn1Xn=000orXn2Xn1Xn=111
Example
Time 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ...
X 0 0 1 1 0 1 1 1 1 0 1 0 0 0 1 1 1 0 ...
Y 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0

0/1 1/0

00 01
1/0
1/0
0/0
0/0
10 11
1/1

0/0

Q2)(10pts)

Giventhestatetransitiontable,applystatereductionby
PS NS Output
partitioningalgorithmtofindouttheequivalentstates
x=0 x=1 x=0 x=1
a c h 0 1 S11={a,b,d,h}NS=((2,1),(1,1)(2,1)(2,1))
b d d 0 1 S12={c,e,f,g}NS=((2,1),(2,2)(2,2)(2,1))

c c a 1 0
S21={a,d,h}NS=((3,1),(4,1),(3,1))
d f a 0 1 S22={b}NS=((5,1))
e e f 1 0 S23={c,g}NS=((3,1),(3,1))
f f e 1 0 S24={e,f}NS=((4,4),(4,4))

g g h 1 0
S31={a,h}NS=((4,1),(4,1))
h c a 0 1 S32={d}NS=((5,1))
S33={b}NS=((2,2))
S34={c,g}NS=((4,1),(4,1))
S35={e,f}NS=((5,5),(5,5))

Nomoresplit..ah,cgandef
Q3)(15pts)

Giventhestatetransitiontableimplementthecircuit
PS NS Output

AB x=0 x=1 x=0 x=1 Atrans: A Btrans:
00 00 01 0 1 A

AB AB
01 10 01 0 1 00 01 11 10 00 01 11 10
x x
10 10 00 1 0 00 01 x 11 00 10 x 00
x 00 01 x 10 x 01 11 x 00


B
B
a) byusingDFF
Q(t)Q(t+1)D DA: A DB: Y:
A
A

00 0 AB AB AB
00 01 11 10 00 01 11 10 00 01 11 10
01 1 x x x
10 0 0 1 x 1 0 0 x 0 0 0 x 1
11 1 x 0 0 x 0 x 1 1 x 0 x 1 1 x 0
0 0

B B B
DA=xA+xBDB=xAY=xA+xA=xA
b) byusingJKFF
Q(t)Q(t+1)JK JA: A KA: A

00 0x AB AB JA=xB
00 01 11 10 00 01 11 10 KA=x
01 1x x x
10 x1 0 1 x x x x x 0 JB=xA
11 x0 x 0 0 x x x x x x 1 KB=x
0 Y:same
JB: B A KB: B A

AB AB
00 01 11 10 00 01 11 10
x x
0 x x 0 x 1 x x
x 1 x x 0 x x 0 x x
0

B
B

Potrebbero piacerti anche