The logic diagram is for the addition and substraction of 2 numbers of 4 bits, yes my schematic is for 2 numbers of 2 bits, but I think it is the same reasoning for 2, 4 or n full adders. Or do you mean something else ?Your schematic doesn't match your logic diagram
Sorry I don't understand your question (maybe because french is my mother tonge...). The upper two bits of the '283 are A3 and A4 but since I only need to calculate on 2 bits and not 4 I don't need them. And ok for the floating input, I corrected it.What are the upper two bits of the input to the '283 equal to when M=1? Do both diagrams agree on this?
I just saw that the last logic gate is a XNOR and not a XOR so yes my schematic does not match the logic diagram.Look at your logic diagram. If it is in subtraction mode (M = 1), and you want to subtract B=0000 from A=0000, what are the inputs to the four full adders?
Now look as your circuit diagram. If you want to subtract B=00 from A=00, what are the inputs to the four full adders?
I get it. The M input in the first XOR is used to 1'complement the input B. 1'complement is used to represent a negative number. 1'complement inverse the bit so if B = 3 = 0011 we got -3 = 1'complement of B = 1100. So the first XOR take B = 0 and make it 1 and take B = 1 and make it 0.Do you understand why the XOR gates are there and, mathematically, how the M signal being fed into them as well as the carry in of the lsb turn addition into subtraction?
As to whether the last logic gate should be an XOR or an XNOR, consider the case where you just want to add 0 + 0. What SHOULD the result be? What WILL the result be with that XNOR gate there?
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | School problem | Homework Help | 3 | |
T | Problem with UA741CP OP-AMP | PCB Layout , EDA & Simulations | 12 | |
M2-ATX Power Supply problem | Power Electronics | 0 | ||
Y | problem controlling variable DC-DC LTC1261LCS8-4 | PCB Layout , EDA & Simulations | 10 | |
G | A Theremin sound problem | General Electronics Chat | 26 |
by Jake Hertz
by Aaron Carman
by Jake Hertz