4. In our ALU, we designed an Adder for addition operation. But, we didn\'t desi
ID: 3700585 • Letter: 4
Question
4. In our ALU, we designed an Adder for addition operation. But, we didn't design a new Subtractor logic for subtraction operation. How is the subtraction operation is handled in our ALU? 5. In our ALU, we use a control input named Op. What components in the ALU does the Op input control? Choose one of the listed components. 1) AND gate 2) OR gate 3) MUXes 4) Adder 6. Assume that you gave two inputs, A and B to our ALU just like illustrated in the lecture slide). Find what operation is going to be done if the following values are given to Op input. a) 0110: b) 1101: c) 1000 d) 1011 7. Suppose an instruction was fetched from memory to CPU. You found that the instruction is beq. Then, what Op value will be given to our ALU and which of the two outputs (between Out and Zero) will be used for triggering the branch operation?Explanation / Answer
4)
subtraction operation can be performed by complimenting the second input lines by using xor and control input 1
now this complemented input and another input are fed to adder... '
the result is the subtraction between the given inputs..
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.