Professional Documents
Culture Documents
CEG3155: DGD 3
Questions
Question 1
a) Convert the structural VHDL code shown below into schematic.
b) Fill the truth table for the schematic from part a).
EN A1 A0 D0 D1 D2 D3
CEG3155: Digital Systems II Medhat Elsayed
Solution
A0
A1 D0
D1
D2
D3
En
EN A1 A0 D0 D1 D2 D3
0 X X 0 0 0 0
1 0 0 1 0 0 0
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
Question 2
Assume the initial value of the counters is “1000”. How many different states each counter
performs?
CEG3155: Digital Systems II Medhat Elsayed
Solution
a) 1000 0100 0010 1001 1100 0110 1011 0101 1010 1101
1110 1111 0111 0011 0001 1000 (15 states).
b) 1000 0100 0010 0001 1000 (4 states).
Question 3
The D flip-flop shown in figure below is a positive edge-triggered flip-flop. For given
waveforms at the input, sketch D, Q and X.
CEG3155: Digital Systems II Medhat Elsayed
Solution
CEG3155: Digital Systems II Medhat Elsayed
Question 4
Draw timing diagrams for the counter below:
Solution
CEG3155: Digital Systems II Medhat Elsayed
Solution