• Support PF! Buy your school textbooks, materials and every day products via PF Here!

Digital Logic 4-bit Multiplier/Adder

  • Thread starter roinujo1
  • Start date
41
0
1. Homework Statement
Build a circuit that either adds or multiplies two 4-bit numbers based on a control input C(C is 1 add, C is zero multiply). Numbers are positive and negative so use two's complement. You can use muxes, Full Adder Circuits, and logic gates

2. Homework Equations
Multiplier circuit=
upload_2016-10-10_16-2-7.png


Adder Circuit:
upload_2016-10-10_16-10-34.png

3. The Attempt at a Solution
So, I have built both the Full Adder(for the addition part) and the multiplier. However, I dont know how to use the muxes to get the input switching if control is 0 and 1. Since the mux only has one output, I dont understand how to connect the two circuits together. Any help is much appreciated!
 
33,379
9,103
The mux output is the final result - one bit of the addition or multiplication depending on the state of C. Where do you expect more outputs? You'll need one mux per bit (or a mux block that can handle multiple bits in parallel).
 
3
0
Can you please show how we can use the mux to let the user choose between adder or multiplayer ?
 
33,379
9,103
This thread is half a year old.
The multiplexer looks like every other multiplexer - for each bit, choose either input A or input B as output, depending on a control bit. Do that for all 4 bits.
 
3
0
This thread is half a year old.
The multiplexer looks like every other multiplexer - for each bit, choose either input A or input B as output, depending on a control bit. Do that for all 4 bits.
should we use 4:1 mux or 2:1 mux ?
 
33,379
9,103
Addition and multiplication are 2 operations. What else do you want to put into the MUX?
 
3
0
Addition and multiplication are 2 operations. What else do you want to put into the MUX?
only addition and multiplication.
 

Want to reply to this thread?

"Digital Logic 4-bit Multiplier/Adder" You must log in or register to reply here.

Related Threads for: Digital Logic 4-bit Multiplier/Adder

Replies
2
Views
14K
Replies
1
Views
5K
Replies
7
Views
5K
  • Posted
Replies
5
Views
4K
Replies
16
Views
1K
Replies
13
Views
2K
Replies
3
Views
7K
Replies
0
Views
4K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top