In decimal and in instruction format order what registers


a) Given the following MIPS machine instructions:

(i) 00010010111110010111111010111001

(ii) 00000000110010010111100000101010

For each machine instruction:

a) What is the instruction format class and why?

b) What operation will be performed and how did you identify the operation?

c) In decimal and in instruction format order, what registers (if any) represent rd, rs, rt? Hint rd is not always used. If you think no registers are used, state it.

d) What MIPS registers, if any, are used? In the case that MIPS registers are used, name them instruction format order and in terms of $at, $v0, $t0 etc. Hint rd is not always used. If you think no registers are used, state so.

e) In the case that an immediate value or an address is used, express it in hex. If you think the instruction does not use an immediate or an address, state so.

b) Explain the operation of the 'MIPS andi ' instruction. Illustrate your answer with an appropriate example. In your answer you must provide details of the andi instruction format and of what each field in that instruction format does and how an andi instruction is identified.

4) Explain the operation of the following MIPS assembler instruction as it passes through each stage of the MIPS pipeline. You are to highlight any parallelism and redundancy that may occur as the instruction passes through the various pipeline stages. You are to assume there is no impact on this instruction by previously executed instructions. A diagram is not required.

add $s1, $s2, $s3 //$s1 = $s2 + $s3

 

Solution Preview :

Prepared by a verified Expert
Computer Engineering: In decimal and in instruction format order what registers
Reference No:- TGS0669965

Now Priced at $30 (50% Discount)

Recommended (93%)

Rated (4.5/5)