Question: THIS IS THE FOLLOWING CODE: add x3, x1, x2 // x3 = x1 + x2 st x3, 2(x4) // mem[2+x4] = x1 beq x3,x5,L //

THIS IS THE FOLLOWING CODE:
add x3, x1, x2 // x3 = x1 + x2 st x3, 2(x4) // mem[2+x4] = x1 beq x3,x5,L // if x3==x5 branch to L
Q1: COMPLETE THE PARAGRAPH:
Instruction Fetch: read the instruction [ENTER INSTRUCTION NUMBER]at address Answer and increment the PC to the value [ENTER VALUE]
Instruction Decode: decode the [FILL ANSWER] instruction, read the source registers Answer and Answer from the register file
Execute Address : perform the ALU operation [ADD/SUB/MUL/DIV/REM/AND/OR/XOR] on the value read from the registers [FILL ANSWER] and the immediate value [FILL VALUE]
Memory Access: write the value read from register [FILL ANSWER] to the address calculated by the ALU
Write Back: [there is no writeback / write the ALU result back to register x1 / write the ALU result to the register x4]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
