Final Solution Manual v2
Final Solution Manual v2
2021
Dr. Ertuğrul Başar
-------------------------------------------------------------------------------------------------------------------------------------------------------
NAME & SURNAME:
NUMBER:
DEPARTMENT:
-------------------------------------------------------------------------------------------------------------------------------------------------------
Instructions (Please Read Carefully):
1) Please carefully mark your solutions with question/part numbers (1.a), (1.b)…. Please also ensure that your scans are
clear and readable.
2) Please sign the attached honor code (you can copy-and-paste your signature or write it down and sign it).
3) Please upload your assignment as a single PDF file until 05.06.2021, 3:00 PM (sharp). Late assignments or files sent
through the email will not be considered.
For questions: [email protected]
Points:
1) 20 2) 20 3) 20 4) 20 5) 20
0 0 0 0 1 0
0 0 0 1 1 1
0 0 1 0 1 0
0 0 1 1 1 0
0 1 0 0 1 0
0 1 0 1 1 0
0 1 1 0 1 0
0 1 1 1 1 0
1 0 0 0 1 0
1 0 0 1 1 1
1 0 1 0 1 0
1 0 1 1 1 1
1 1 0 0 1 0
1 1 0 1 1 1
1 1 1 0 1 0
1 1 1 1 1 1
X X X X 0 0
Solution:
(1.a) 4 PTS Find the optimized expression for .
Note that!
W X Y F1
000 → 𝑍
001 → 0
010 → 0
011 → 0
100 → 𝑍
101 → 𝑍
110 → 𝑍
111 → 𝑍
0 0 0 0 0 0 0
0 0 0 1 0 0 1
0 0 1 0 0 1 0
0 0 1 1 0 1 1
0 1 0 0 0 0 1
0 1 0 1 0 1 0
0 1 1 0 0 1 1
0 1 1 1 1 0 0
1 0 0 0 0 1 0
1 0 0 1 0 1 1
1 0 1 0 1 0 0
1 0 1 1 1 0 1
1 1 0 0 0 1 1
1 1 0 1 1 0 0
1 1 1 0 1 0 1
1 1 1 1 1 1 0
𝑧 𝑥 𝑥 𝑦 𝑥 𝑦 𝑦 𝑧 𝑥 𝑦 𝑥 𝑦
𝑧 𝑥 𝑦 𝑥 𝑥 𝑦 𝑥 𝑦 𝑦
𝑥 𝑥 𝑦 𝑥 𝑦 𝑦
𝑥 𝑥 𝑦𝑦 𝑥 𝑥 𝑦 𝑦
Building Circuit: 7 PTS
𝑥 𝑥 𝑦 𝑦
𝐶𝑜𝑛𝑡𝑟𝑜𝑙
Solution:
A
Y D Q
Q’
B
D Q
X Q’
CLK
X(t) 0 1 0 1
Y(t) 1 1 0 1
CLK
0 1 1 0 1
A(t)
0 0 1 1 0
B(t)
Question 4 (Counters): Design a sequential circuit with positive-edged T flip-flops that counts up with clock pulses over
Fibonacci numbers (1, 2, 3, 5, 8, 13) that can be represented using 4-bit binary values . The circuit (re)starts
counting from 1 after it reaches 13. This circuit outputs 1 when the counter value is 1, 5 or 8, for other cases it outputs
0.
(4.a) Draw the state diagram of this circuit.
(4.b) Prepare the state table for this counter. Indicate every possible present state and map these states to a corresponding next
state and output value.
(4.c) Derive the simplified flip-flop input equations and output equations.
(4.d) Draw the logic diagram.
Solution:
(4.a) 4 PTS
State Assignments
1 2 3 5 8 13
0001 0010 0011 0101 1000 1101
(4.b) 6 PTS
Present State Next State Output FF Inputs
0 0 0 0 - - - - x x x x x
0 0 0 1 0 0 1 0 1 0 0 1 1
0 0 1 0 0 0 1 1 0 0 0 0 1
0 0 1 1 0 1 0 1 0 0 1 1 0
0 1 0 0 - - - - x x x x x
0 1 0 1 1 0 0 0 1 1 1 0 1
0 1 1 0 - - - - x x x x x
0 1 1 1 - - - - x x x x x
1 0 0 0 1 1 0 1 1 0 1 0 1
1 0 0 1 - - - - x x x x x
1 0 1 0 - - - - x x x x x
1 0 1 1 - - - - x x x x x
1 1 0 0 - - - - x x x x x
1 1 0 1 0 0 0 1 0 1 1 0 0
1 1 1 0 - - - - x x x x x
1 1 1 1 - - - - x x x x x
(4.c) 6 PTS
(4.d) 4 PTS
Question 5 (Programmable Logic): Tabulate the PLA programming table for the four Boolean functions listed below.
Minimize the number of product terms and draw the PLA circuit.
Solution:
, , 0,1,5,7 3 PTS
, , 2,4,5,6 3 PTS
, , 0,1,2,3,4 3 PTS
, , 3,6,7 3 PTS
Considering both true and complemented functions, we see that four product terms are enough!
Consider , , , → , , ,
4 PTS
4 PTS