Question: Given two numbers A & B in 2's complement form can the opcode for SUBTACT ( 0101 = ox5) be used for followng? Be aware


Given two numbers A & B in 2's complement form can the opcode for SUBTACT ( 0101 = ox5) be used for followng? Be aware of the OVR output. 1. Compare A and B to find if A=B 2. Compare and find if A > B. 3. Compare and find if A A bare-bones Arithmetic Logic Unit (ALU) design is proposed. Note that simple inverters are used instead of XOR gates to find B's complement. Table below shows the various operations possible with the code (OpCode) given to the control lines S2S1SoCinIt also has ZERO and SIGN detect. in Operation Function G-A G=A+1 G=A+B G A +B+1 G=A+B G=A+B+1 G=A-1 G=A Transfer A Increment A Addition Add with carry input of 1 A plus 1s complement of Subtraction Decrement A Transfer A AND OR XOR NOT (1s complement) G-AB G-A A bare-bones Arithmetic Logic Unit (ALU) design is proposed. Note that simple inverters are used instead of XOR gates to find B's complement. Table below shows the various operations possible with the code (OpCode) given to the control lines S2S1SoCinIt also has ZERO and SIGN detect. in Operation Function G-A G=A+1 G=A+B G A +B+1 G=A+B G=A+B+1 G=A-1 G=A Transfer A Increment A Addition Add with carry input of 1 A plus 1s complement of Subtraction Decrement A Transfer A AND OR XOR NOT (1s complement) G-AB G-A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
