Previous in Forum: Grounding Systems and Transient States   Next in Forum: Underwater Speed Measurment
Close
Close
Close
2 comments
Rate Comments: Nested
Member

Join Date: Oct 2006
Posts: 7

4 Bit Adder/Subtractor Circuits

01/20/2007 11:47 AM

Hiya,

I have been given the task of designing and reporting on a adder/subtractor circuit.

I know and understand the diffrent types of adders, but im at a loss when it comes to the subtracting part.

Can anyone explain how this is accumplished (without giving away too much as it is a university project)

I only need to know the very basics.

Thanks

Lach

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Associate

Join Date: Dec 2006
Location: Jonkoping in Sweden
Posts: 33
#1

Re: 4 Bit Adder/Subtractor Circuits

01/20/2007 3:29 PM

Hello Lach

A binary add i relaitve simle. 1+0=1 and 1+1=0 + carry = 10. You add bit by bit for the result.

A binary sub is an add with the minus signed value inverted +1. I.e. if you will sub 12 - 7 (= 5). Binary it is 1100 - 0111. Invert 0111 to 1000 and add 1, it will bee 1001. Add 1100 and 1001, result 10101. Drop the carry to 0101.

In hardware you put an exor-gate before the B-inputs on the adder circuit. This can be "programmed" as a non inverter for addition and an inverter for subtraction. Adding the LSB 1 can be done to the adding result.

Anders

Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#2

Re: 4 Bit Adder/Subtractor Circuits

01/20/2007 7:55 PM

Binary subtraction is just two's compliment addition. Take the number you want to subtract, invert it and add one to it - that's the two's compliment. Now add this value to the number you want to subtract from, and you're done.

Register to Reply
Register to Reply 2 comments

Previous in Forum: Grounding Systems and Transient States   Next in Forum: Underwater Speed Measurment

Advertisement