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.

Designing an ALU: problem with multiplication operation

Status
Not open for further replies.

amira

Newbie level 6
Joined
Sep 24, 2005
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
about designing an ALU

Hello everyone,

I have been trying to design a 4 bit ALU. I have designed it for some arithmetic and logical operations. Now I want to add the multiplication operation with my design. For that I am trying to design 4*4 multiplier. But the problem is it's giving me 7 outputs and the rest of the arithmetic and logical outputs are of 4 bits. So when I'll try to add my outputs in some mux , then there are 7 outputs from the multiplier and 4 outputs from the other portion.

If I use 4, 2*1 mux then there are 3 other multiplication outputs are left. What should I do in such a situation?

Any kind of suggestions will be greatly apperciated.

Thanks,

amira
 

WA

Member level 4
Joined
Mar 27, 2002
Messages
72
Helped
6
Reputation
12
Reaction score
2
Trophy points
1,288
Location
wherever I go - there I am!
Activity points
948
Re: about designing an ALU

If I read this post correctly, You might be experiencing overflow conditions.

Also ALU's usually do the add/shift method. So by the inherent design the answer
shifts also

a quick example

4 * 2 = 8

4 = 0100
2 = 0010

If the ALU does the shift/add the output would look something like this

0001000 it's still the same answer but you have 3 added bits to the begining.

hope this helps a little
wa
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top