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

Q4. (10 marks) Consider the assembly language instruction 3500: add $1,$3,$3 In

ID: 663927 • Letter: Q

Question

Q4. (10 marks) Consider the assembly language instruction 3500: add $1,$3,$3 In the figure on the next page, there are ten darks lines. On each line, write in the value that travels along the corresponding wire(s) when executing this assembly language instruction. Note: you should write a decimal number on each dark line, and not an expression involving things like ?PC?, etc. The numbers you write should be in decimal, except for the ALU Control bits and the Function Bits (these numbers should be in binary and you should sub script them with a ?2?such as : 01012). Assume that each register $i (with I > 0) contains the decimal value 1 00+i. Therefore $r8 would contain the value 108. Further assume that the shamt field of this R-format instruction is zero.

Explanation / Answer

Here IR [31:16] = 3500

so you can fill the black lines accordingly

the result will be 206 as $r3 contains 103.this will come after Add Mux in diagram

PC value is 3500 so after this instruction it will be 3504. the first adder will have that.