shift_inst : entity work.exec_op(shift_op)\r
port map(clk,reset,left_o, right_o, op_detail, alu_state, shift_result);\r
\r
-calc: process(left_operand, right_operand,displacement, cond, op_group, op_detail ,alu_state,and_result,add_result,or_result,xor_result,shift_result, prog_cnt,brpr, pval)\r
+calc: process(left_operand, right_operand,displacement, cond, op_group, op_detail ,alu_state,and_result,add_result,or_result,xor_result,shift_result, prog_cnt,brpr, pval, pval_nxt)\r
variable result_v : alu_result_rec;\r
variable res_prod : std_logic;\r
variable cond_met : std_logic;\r
\r
addr <= pval;\r
data <= prog_cnt_nxt;\r
- -- if(op_detail(RET_OPT) = '1' then\r
- -- null;\r
- -- end if;\r
+ if op_detail(RET_OPT) = '1' then\r
+ addr <= pval_nxt;\r
+ mem_en := '0';\r
+ pinc_v := '0';\r
+ res_prod := '0';\r
+ end if;\r
\r
end case;\r
\r