manikmalhotra92
Newbie level 2
Q:I had been given a question in my exam which said that one had to design a circuit that will find the twice of a 4 bit number , condition that whenever the result exceeds an outpout of 15 "OVERFLOW"(O) should become high!
My answer:
is this correct?
My answer:
Code:
Inputs Outputs
(LSB)A B C D(MSB) O E F G H
0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1 0
0 0 1 0 0 0 1 0 0
0 0 1 1 0 0 1 1 0
0 1 0 0 0 1 0 0 0
0 1 0 1 0 1 0 1 0
0 1 1 0 0 1 1 0 0
0 1 1 1 0 1 1 1 0
1 0 0 0 1 0 0 0 0
1 0 0 1 1 0 0 1 0
1 0 1 0 1 0 1 0 0
1 0 1 1 1 0 1 1 0
1 1 0 0 1 1 0 0 0
1 1 0 1 1 1 0 1 0
1 1 1 0 1 1 1 0 0
1 1 1 1 1 1 1 1 0
from the table:
O(OVERFLOW)=A
E=B
F=C
G=D
H=0
so The Circuit:
A--------------Buffer------------->Overflow
B--------------Buffer------------->E
C--------------Buffer------------->F
D--------------Buffer------------->G
0--------------Buffer------------->H