Hello to everyone,
I have to draw a logic circuit with the above data:
Input: 2 twobit signed binary numbers in two's complement format. (eg A(a1a0) and B(b1b0))
Output: a number Z (in two's complement, also). Z= AxB (multiplication) if at least an input number is negative. In any other case Z = A + B (addition)
So, I 'm a bit confused.
I try to create the truth table:
How can I handle the numbers 110,100, 1001? I want the output to be binary number as two's complement.
Is this right that my output should have minimum 4 bits?
I have to draw a logic circuit with the above data:
Input: 2 twobit signed binary numbers in two's complement format. (eg A(a1a0) and B(b1b0))
Output: a number Z (in two's complement, also). Z= AxB (multiplication) if at least an input number is negative. In any other case Z = A + B (addition)
So, I 'm a bit confused.
I try to create the truth table:
How can I handle the numbers 110,100, 1001? I want the output to be binary number as two's complement.
Is this right that my output should have minimum 4 bits?
Attachments

25.6 KB Views: 12