Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Multiplication overflow detector!

Status
Not open for further replies.

manikmalhotra92

Newbie level 2
Joined
Dec 1, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
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:
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
is this correct?
 

where is the circuit?

you have to design a 4 bit adder circuit
 

Each binary bit has twice the value of the preceding one so yes, shifting the bits to the left by one place doubles the value and the MSB becomes the carry bit.

Brian.

So simple connections would work??
 

you need a 4bit adder , check this site

**broken link removed**
 

Radjup, why do you think an adder is needed? To double a binary number all you have to do is shift it left. If it was adding two numbers, either the same or different ones I would agree with you but multiplication by 2 is much simpler.

Brian.
 

yes you are right, it can be done but what i thought a simple shift won't help here for low bit if input 1 output will be 0 but the carry has to be added to the 1st bit and so on

as per the table given simple shift will do
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top