In: Computer Science
Describe the ISA memory format?
Solution:
op(6 bits) | rs(5 bits) | rt(5 bits) | rd(5 bits) | shamt (5 bits) | funct(6 bits) |
( R)
op(6 bits) | rs(5 bits) | rt(5 bits) | address/immediate(16 bits) |
(I)
op(6 bits) | target address(26 bits) |
(J)
The fields in the frame are listed below:
=>op: opcode field
=>rs: source operand register (first)
=>rt: source operand register (second)
=>rd: destination operand register
=>shamt: the amount by which needs to be shifted
=>funct: function code
=>address: offset for load/store instructions
=>immediate: immediate instructions constants.