decode: stuff for halfword
authorChristopher Lu <lu@stop.hsd1.pa.comcast.net>
Fri, 9 Jan 2009 08:27:27 +0000 (03:27 -0500)
committerChristopher Lu <lu@stop.hsd1.pa.comcast.net>
Fri, 9 Jan 2009 08:27:27 +0000 (03:27 -0500)
Decode.v

index 90ac3d6..495942b 100644 (file)
--- a/Decode.v
+++ b/Decode.v
@@ -138,16 +138,20 @@ module Decode(
                begin
                        read_0 = insn[19:16];
                        read_1 = insn[3:0];
-                       
+                       read_2 = insn[15:12];
+
                        op0_out = regs0;
                        op1_out = regs1;
+                       op2_out = regs2;
                end
                `DECODE_ALU_HDATA_IMM:  /* Halfword transfer - immediate offset */
                begin
                        read_0 = insn[19:16];
+                       read_1 = insn[15:12];
                        
                        op0_out = regs0;
                        op1_out = {24'b0, insn[11:8], insn[3:0]};
+                       op2_out = regs1;
                end
                `DECODE_ALU:            /* ALU */
                begin
This page took 0.021226 seconds and 4 git commands to generate.