Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Please describe each of the following instructions (j, jal, jr, beq) and thei

ID: 2293367 • Letter: 1

Question

1. Please describe each of the following instructions (j, jal, jr, beq) and their 32- bit MIPS instruction format (be descriptive). When is each type of instruction typically used? 2. For this question, consider the 4-bit ripple carry adder shown on slide 10 of Lecture 7. Indicate the value of each output bit if X-2 and Y-6 and the values are unsigned. Does overflow occur in this case? How do you know? Suppose the values are 4-bit 2's complement values. Does overflow occur if the two values are added in this case? How do you know 3. Consider the multiplication of 3-bit number A (multiplier) and 3-bit number B (multiplicand) to give a 6-bit product C. Similar with Lecture 8 (Slide 7): (a) How many full adders are required? Draw the whole circuit of the multiplier using full adders and AND gates. (b) Using the circuit you designed in (a), show how the multiplication of 3 (multiplier) and 5 (multiplicand) is performed, showing all the intermediate signal values on the figure. (c) Assume the delay through the sum circuitry in the full adder is AS-10ns and the delay through the carry out circuitry in the full adder is ??-20ns. What is the total delay for multiplier you designed in (a)? Show the critical path (the path with largest delay) in the circuit you designed in (a)

Explanation / Answer

J -- Jump;

Jumps to the calculated address.

Syntax: J target.

///body

JAL instruction: Jumps to the calculated address and stores the return address in $31

Syntax: jal target

jar instruction: Jump to the address contained in register $s

Syntax: jr $s

beq instruction: Branches if the two registers are equal

Syntax: beq $s, $t, offset

brances to target is $s = $t,