(1) Design a sequential circuit using the state diagram shown in figure 1, use D-flip flops.
A | X | Y | A | Z |
---|---|---|---|---|
0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 0 | 0 |
0 | 1 | 1 | 0 | 0 |
1 | 0 | 0 | 0 | 1 |
1 | 0 | 1 | 0 | 0 |
1 | 1 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 1 |
DA = A'X'+AX = A XNOR X
Z = X'Y'+AXY
(2) Draw (ONLY) the following circuits:
(3) Define the following:
serial | parallel | |
---|---|---|
speed | relatively slow | fast |
no. clocks | n clocks | 1 |
example | shift register | register with parallel inputs |
(6) A building consists of 3 stages with an underground stage
it's needed to design the counter circuit for its lifter:
flip flop B will flip in all cases except A'B'X' OR ABX
TB = (A'+B'+X') AND (A+B+X)
flip flop A will flip in two cases: A'BX + AB'X'
TA = A'BX + AB'X'
(7) A company produces 3 products A, B, and C as shown in the figure 2.
Find the money for selling product C (only) when the system stops.
components needed:
state flow:
circuit realization
(8) Design an ALU to perform the following functions
for the arithmetic unit we will use a parallel adder
the stage will consist of a full adder with inputs Xi, Yi and Cin
and outputs Fi and C_i+1
for inputs could use a 4x1 mux to select Xi and the same for YI
or we could simplify Xi, Yi
S1 | S0 | Xi | Yi |
---|---|---|---|
0 | 0 | Ai | 0 |
0 | 1 | Ai | (Bi)' |
1 | 0 | Ai | Bi |
1 | 1 | Ai | 1 |
lucky for us Xi is always Ai 😃
Bi = S0S1+S0S1'Bi'+S0'S1Bi = S1Bi + S0Bi'
for logic unit we will use a 4x1 multiplexer to select the output
then we will multiplex arithmetic and logic Fi based on S2
(9) Design an Accumulator to perform the following functions (Use J-K type):
for 1st function:
Ji=0
Ki=P1
for 2nd function:
Ji=P2
Ki=P2
for 3rd function:
Ji=P3Ai-1
Ki=P3(Ai-1)'
for 4th function:
Ai | Bi | Fi | Ji | Ki |
---|---|---|---|---|
0 | 0 | 1 | 1 | x |
0 | 1 | 0 | 0 | x |
1 | 0 | 0 | x | 1 |
1 | 1 | 0 | x | 1 |
Ji=P4Bi'
Ki=P4Ai
for 5th function:
Ai | Bi | Ci | Ai | Ci+1 | Ji | Ki |
---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | x |
0 | 0 | 1 | 1 | 0 | 1 | x |
0 | 1 | 0 | 1 | 0 | 1 | x |
0 | 1 | 1 | 0 | 1 | 0 | x |
1 | 0 | 0 | 1 | 0 | x | 0 |
1 | 0 | 1 | 0 | 1 | x | 1 |
1 | 1 | 0 | 0 | 1 | x | 1 |
1 | 1 | 1 | 1 | 1 | x | 0 |
Ci+1=AiBi+AiCI+BiCI
Ji=P5 AND (Bi'CI+BiCi')=P5(Bi XOR Ci)
Ki=P5(Bi XOR Ci)
Ji=P2+P3Ai-1+P4Bi'+P5(Bi XOR Ci)
Ki=P2+P3Ai-1'+P4Ai+P5(Bi XOR Ci)
(10) Using Table 1, find the Control Word for the following operations: