I am a bit lost on understanding the implementation of a specific command.
In this example, there is a command passed 0x00c6ba23
which is 0000 0000 1100 0110 1011 1010 0010 0011
in binary
I am attempting to find the ALU control unit’s inputs for this instruction.
From this I can see
- opcode =
0100011
- imm[4:0] =
10100
- funct3 =
011
(incorrect...) - rs1 =
01101
- rs2 =
01100
- imm[11:5] =
0000000
I am using this image to decode it
My question is how do I get the ALU control bits and ALUOp control bits for this function? And why is the function SD, even though the funct 3 is showing 011 instead of 111?