decode optimization

This commit is contained in:
Blaise Tine
2021-06-28 05:06:30 -07:00
parent f84c8a0b5d
commit 6ae2f5199d
8 changed files with 132 additions and 165 deletions

View File

@@ -23,7 +23,7 @@ task print_ex_op (
);
case (ex_type)
`EX_ALU: begin
if (`IS_BR_MOD(op_mod)) begin
if (`ALU_IS_BR(op_mod)) begin
case (`BR_BITS'(op_type))
`BR_EQ: $write("BEQ");
`BR_NE: $write("BNE");
@@ -40,7 +40,7 @@ task print_ex_op (
`BR_DRET: $write("DRET");
default: $write("?");
endcase
end else if (`IS_MUL_MOD(op_mod)) begin
end else if (`ALU_IS_MUL(op_mod)) begin
case (`MUL_BITS'(op_type))
`MUL_MUL: $write("MUL");
`MUL_MULH: $write("MULH");