fix decoder: immediates
Stefan Schuermans

Stefan Schuermans commited on 2012-02-09 20:43:02
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -83,7 +83,7 @@ BEGIN
83 83
     p_imm_16: PROCESS(i_instr, s_enc_type)
84 84
     BEGIN
85 85
         CASE s_enc_type IS
86
-            WHEN enc_reg => o_imm_16 <= i_instr(15 DOWNTO 0);
86
+            WHEN enc_imm => o_imm_16 <= i_instr(15 DOWNTO 0);
87 87
             WHEN OTHERS  => o_imm_16 <= X"0000";
88 88
         END CASE;
89 89
     END PROCESS p_imm_16;
... ...
@@ -91,7 +91,7 @@ BEGIN
91 91
     p_imm_26: PROCESS(i_instr, s_enc_type)
92 92
     BEGIN
93 93
         CASE s_enc_type IS
94
-            WHEN enc_reg => o_imm_26 <= i_instr(25 DOWNTO 0);
94
+            WHEN enc_jmp => o_imm_26 <= i_instr(25 DOWNTO 0);
95 95
             WHEN OTHERS  => o_imm_26 <= X"000000" & "00";
96 96
         END CASE;
97 97
     END PROCESS p_imm_26;
98 98