mirror of
https://github.com/olofk/serv.git
synced 2026-02-04 23:14:36 +00:00
Clarify immdec_ctrl[1]
This commit is contained in:
@@ -167,8 +167,8 @@ module serv_decode
|
||||
//True for S (STORE) or B (BRANCH) type instructions
|
||||
//False for J type instructions
|
||||
assign o_immdec_ctrl[0] = opcode[3:0] == 4'b1000;
|
||||
//True for OP-IMM, LOAD, STORE, JALR
|
||||
//False for LUI, AUIPC, JAL
|
||||
//True for OP-IMM, LOAD, STORE, JALR (I S)
|
||||
//False for LUI, AUIPC, JAL (U J)
|
||||
assign o_immdec_ctrl[1] = (opcode[1:0] == 2'b00) | (opcode[2:1] == 2'b00);
|
||||
assign o_immdec_ctrl[2] = opcode[4] & !opcode[0];
|
||||
assign o_immdec_ctrl[3] = opcode[4];
|
||||
|
||||
Reference in New Issue
Block a user