Lab Assignment Digital Design
Lab Assignment Digital Design
ID : 202108085
Name : Hanan Abuzeyah
Solution
D0 D1 D2 S C
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
D0 D1 D2 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
S = D1+D2+D4+D7
C = D3+D5+D6+D7
C
Question 2) Design and implement Octal to Binary converter using Encoder
Input A B C
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
Block implementation
0 A
1 B
. C
.
.
.
.
.
.
7
Clk S R Qn+1
0 X X No change
1 0 0 No change
1 0 1 0
1 1 0 1
1 1 1 Invalid
Truth table
A B C F
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
Implementation
A` F
C
B`
C`
Question 5) Design and implement Full substructure using basic gates, write and summarize its function, and fill out
its truth table.
Truth Table
A B Bin D Borrow
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
From K-map we get