rvalp icon indicating copy to clipboard operation
rvalp copied to clipboard

I-type instructions has a different opcodes

Open Billkyriaf opened this issue 1 year ago • 3 comments

In the \subsection{I Type} the first graph shows the opcode as 0000011, which is the opcode for the memory instructions. The I-Type ALU instructions have opcode 0010011, the jalr instruction has opcode 1100111 etc. In the subsection, there is no clarification for the different opcodes. I apologize if this matter is covered elsewhere. Finally, if it is not covered I suspect the same problem may occur in all the types of instructions covered in the 5.2 subsection.

Billkyriaf avatar Jan 15 '24 22:01 Billkyriaf

I am surprised that this has not come up before. I must have copied & pasted something without finishing the necessary updates.

johnwinans avatar Jan 18 '24 15:01 johnwinans

Maybe I should just put all zeroes or Xs in the opcode field since that is not really the relevant part of the discussion at that point?

johnwinans avatar Jan 18 '24 21:01 johnwinans

All Xs would be good I think, to show that it is just a placeholder. But I believe it would be very useful to include the opcode, func3, and func7 next to each instruction. Chapter 5 is a great reference and it would be great if it had all the information in one place.

Billkyriaf avatar Jan 19 '24 15:01 Billkyriaf