Sheet 2 (Solutions) (1).pdftretettw t4twetet t3etewtwt

amrmamdouh307 12 views 15 slides Jul 25, 2024
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

logic


Slide Content

Sheet #2

1.DesignacounterwithTflip‐flopsthatgoesthroughthefollowingbinaryrepeatedsequence:0,1,3,7,6,4.
Showthatwhenbinarystates010and101areconsideredasdon’tcareconditions,thecountermaynotoperate
properly.Findawaytocorrectthedesign.
Solution

2)DesignaFSMthatreceivesaserialsignalonitsinputandoutputsits2’scomplement.
Start A B
0/0
1/1
1/0
0/1
0/1
1/0
Solution
X B A B A Y TB TA
0 0 0 0 0 0 0 0
0 0 1 1 0 1 1 1
0 1 0 1 0 1 0 0
0 1 1 X X X X X
1 0 0 0 1 1 0 1
1 0 1 0 1 0 0 0
1 1 0 0 1 0 1 1
1 1 1 X X X X X
00 01
10

3)Showhowtobuild
a)D-FlipflopusingJK-Flipflop.
b)T-FlipflopusingJK-Flipflop.
c)D-FlipflopusingSR-Flipflop.
J K Q (N+1)
0 0 N.C
0 1 0
1 0 1
1 1 TOGGLE
D Q (N+1)
0 0
1 1
T Q (N+1)
0 N.C
1 TOGGLE
S R Q (N+1)
0 0 N.C
0 1 0
1 0 1
1 1UNDEFINED

4)Giventheinputandclockshownbelow,findtheoutput
a)IftheinputandclockareappliedtoDandclockinputsofpositiveedgetriggeredD-F/F.
b)IftheinputandclockareappliedtotheDandENABLEinputsofD-LatchF/F.

c)IftheinputisappliedtotheJinputofnegativeedgetriggeredJKF/FwhileKinputistiedHIGH.

5)Designamodulo-6ripplecounterusingJKF/F.

6)Designamodulo-6ripplecounterusingDF/F.

7)Designaripplecounterthatcountsfrom6to11usingDF/F.

8)DesignaFSMinwhichtheoutput=1ifthelastfivemostrecentinputsare11010.

9)DesignaFSMthathasaninputX,andanoutputZ.Z=1,wheneverthefourmostrecentinputsare1011,
wherethemostrecentinputistherightmostinthestring.Overlappingofsequencesisallowed.
So,theinputstring1011011willproduce0001001.
Tags