Line 26... |
Line 26... |
default: ;
|
default: ;
|
endcase
|
endcase
|
`RR:
|
`RR:
|
case(insn[6:0])
|
case(insn[6:0])
|
`ADD: $display("ADD r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`ADD: $display("ADD r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
|
`ADDU: $display("ADDU r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`SUB: $display("SUB r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`SUB: $display("SUB r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
|
`SUBU: $display("SUBU r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`CMP: $display("CMP r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`CMP: $display("CMP r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`AND: $display("AND r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`AND: $display("AND r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`ANDC: $display("ANDC r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`ANDC: $display("ANDC r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`OR: $display("OR r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`OR: $display("OR r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`ORC: $display("ORC r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`ORC: $display("ORC r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
Line 39... |
Line 41... |
`NOR: $display("NOR r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`NOR: $display("NOR r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`XNOR: $display("XNOR r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`XNOR: $display("XNOR r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`MULU: $display("MULU r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
`MULU: $display("MULU r%d,r%d,r%d",insn[24:20],insn[34:30],insn[29:25]);
|
default: ;
|
default: ;
|
endcase
|
endcase
|
|
`SHFTI:
|
|
case(insn[4:0])
|
|
`SHLI: $display("SHLI r%d,r%d,#%d",insn[29:25],insn[34:30],insn[24:19]);
|
|
`SHRUI: $display("SHRUI r%d,r%d,#%d",insn[29:25],insn[34:30],insn[24:19]);
|
|
`SHRI: $display("SHRI r%d,r%d,#%d",insn[29:25],insn[34:30],insn[24:19]);
|
|
`ROLI: $display("ROLI r%d,r%d,#%d",insn[29:25],insn[34:30],insn[24:19]);
|
|
`RORI: $display("RORI r%d,r%d,#%d",insn[29:25],insn[34:30],insn[24:19]);
|
|
`ROLAMI: $display("ROLAMI r%d,r%d,#%d",insn[29:25],insn[34:30],insn[24:19]);
|
|
endcase
|
`BTRR:
|
`BTRR:
|
case(insn[4:0])
|
case(insn[4:0])
|
`BEQ: $display("BEQ r%d,r%d,%h.%h)",insn[34:30],insn[29:25],{{44{insn[24]}},insn[24:7]},insn[6:5]);
|
`BEQ: $display("BEQ r%d,r%d,%h.%h)",insn[34:30],insn[29:25],{{44{insn[24]}},insn[24:7]},insn[6:5]);
|
`BNE: $display("BNE r%d,r%d,%h.%h)",insn[34:30],insn[29:25],{{44{insn[24]}},insn[24:7]},insn[6:5]);
|
`BNE: $display("BNE r%d,r%d,%h.%h)",insn[34:30],insn[29:25],{{44{insn[24]}},insn[24:7]},insn[6:5]);
|
`BLT: $display("BLT r%d,r%d,%h.%h)",insn[34:30],insn[29:25],{{44{insn[24]}},insn[24:7]},insn[6:5]);
|
`BLT: $display("BLT r%d,r%d,%h.%h)",insn[34:30],insn[29:25],{{44{insn[24]}},insn[24:7]},insn[6:5]);
|