
Homework Help Stuck on a textbook question or coursework? Cramming for a test and need help understanding something? Post your questions and attempts here and let others help. 

Thread Tools  Display Modes 
#1




4bit Parallel Adder > Subtractor
I just drew this up real quickly in Photoshop. So the objective is to use the IC and four inverters to create a subtractor circuit that'll do the following operation: A4 A3 A2 A1  B4 B3 B2 B1 So would I just invert all the B's on the circuit? 
#2




Connect the outputs of 4 XOR gates to B1B4. Connect one of each XOR's gate input to C1. The other four inputs on the XOR gates (one input per gate) are your new inputs for B1B4. When you apply high logic to Cin the circuit will subtract AB , when you apply low logic to Cin the circuit will add A+B.
__________________
>> Troubleshooting is an art << http://www.youtube.com/watch?v=hC7KYbFBPHA http://www.youtube.com/watch?v=StNJlRTWs9k http://www.youtube.com/watch?v=j4h3l9O4fc http://www.youtube.com/watch?v=E0jZJ...eature=related 
#3




Is there a way to just do it with inverters? The worksheet we were given only says "Use the IC below and 4 inverters to subtract..."
I was trying to figure out how on earth to do the 2's complement method with this, are using the XOR gates the only way? 
#4




Hint:
A  B = A + 2's complement of B 2's complement of B = B' + 1 
#5




Quote:
With this modification you invert all the bits and add 1 as the 2's complements requires. The circuit will do the function AB.
__________________
>> Troubleshooting is an art << http://www.youtube.com/watch?v=hC7KYbFBPHA http://www.youtube.com/watch?v=StNJlRTWs9k http://www.youtube.com/watch?v=j4h3l9O4fc http://www.youtube.com/watch?v=E0jZJ...eature=related 
#6




So the carryin high is basically the 1 that is added when a 2's complement is performed?
I believe I understand now, thanks a bunch to the both of you! Hopefully I'll be ready for the exam come tomorrow. 
#7




yes the carry in is the 1 we add n the 2's complement.
__________________
>> Troubleshooting is an art << http://www.youtube.com/watch?v=hC7KYbFBPHA http://www.youtube.com/watch?v=StNJlRTWs9k http://www.youtube.com/watch?v=j4h3l9O4fc http://www.youtube.com/watch?v=E0jZJ...eature=related 
Tags 
>, 4bit, adder, parallel, subtractor 
Related Site Pages  
Section  Title  
Textbook  Lookup tables : Principles Of Digital Computing  
Textbook  The Unijunction Transistor (UJT) : Thyristors  
Textbook  A FullAdder : Combinational Logic Functions 
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
A 4bit adder using a full adder and a half adder  farah_727rash  Homework Help  3  04022012 02:52 AM 
2 Level 16 bit Carry lookahead adder  laguna92651  Homework Help  5  01142012 04:22 PM 
CMOS adder circuit  sahila  The Projects Forum  1  04092008 02:02 PM 
vhdl code 4 bit full adder using PAL.  sruthi  The Projects Forum  3  11102007 01:18 PM 
Full Adder into subtractor  Thirsty  Homework Help  1  10092006 11:58 AM 
Thread Tools  
Display Modes  

