when LDST_OP =>\r
res_prod := '0';\r
mem_op := '1';\r
- right_o <= displacement;\r
+ --right_o <= displacement;\r
+ addr <= std_logic_vector(unsigned(left_operand)+unsigned(displacement));\r
if op_detail(IMM_OPT) = '1' then\r
result_v.result := right_operand;\r
res_prod := '1';\r
--result_v.reg_op := '1';\r
end if;\r
\r
+ -- if result_v.mem_op = '0' then --- do this if selecting enable for extension modules is too slow.\r
+ -- addr <= (others => '0');\r
+ -- end if;\r
alu_result <= result_v;\r
pinc <= pinc_v;\r
pwr_en <= pwr_en_v;\r