In 'Computer Organization and Design' RISC-V version (by Patterson and Hennessy) ebook p1195, it has ALUControl
module :
module ALUControl (
ALUOp,
FuncCode,
ALUCtl
);
input [1:0] ALUOp;
input [5:0] FuncCode;
output reg [3:0] ALUCtl;
always @* // origin book is `always`
case (FuncCode) //origin book is `ALUOp <=`
32: ALUCtl <= 2; // add
34: ALUCtl <= 6; // subtract
36: ALUCtl <= 0; // and
37: ALUCtl <= 1; // or
39: ALUCtl <= 12; // nor
42: ALUCtl <= 7; // slt
default: ALUCtl <= 15; // should not happen
endcase
endmodule
I understand the ALUCtl encoding from this doc p4. However, what does the Function code(i.e. 32,34 listed above) which is in link p6 mean? (the link Function code encoding is same as the encoding in the book )