module opc_to_alu_op (opc, alu_op); `include ".\\timing.v" `include ".\\defs.v" output [3:0] alu_op; reg [3:0] alu_op; input [5:0] opc; always@(opc) case(opc) 0: alu_op=0; 33: alu_op=1; 34: alu_op=2; 32: alu_op=3; 37: alu_op=4; 16: alu_op=5; 17: alu_op=6; 19: alu_op=7; 18: alu_op=8; 20: alu_op=9; 21: alu_op=10; 22: alu_op=11; 23: alu_op=12; 48: alu_op=14; // Register B an alu_out anlegen (für LOAD and STORE) jsr: alu_op=13; ret: alu_op=15; default: $display("%t %m Non arithmetic command: %b",$time, opc); endcase endmodule