stw alu
[calu.git] / cpu / src / execute_stage_b.vhd
index 73c7bf27e638d8cc0a063306cf22117f82f80d5f..79a36614762a2e5286f35e7be6c25ec683753c22 100644 (file)
@@ -29,7 +29,7 @@ begin
 
 alu_inst : alu
 port map(clk, reset, condition, op_group, 
-         left_operand, right_operand, op_detail, alu_state, alu_nxt,addr,data);
+         left_operand, right_operand, dec_instr.displacement, op_detail, alu_state, alu_nxt);
 
 gpm_inst : gpm
         generic map(RESET_VALUE)
@@ -105,6 +105,9 @@ dmem_write_en <= alu_nxt.mem_en;
 hword <= alu_nxt.hw_op;
 --hword <= reg.result(1);
 byte_s <= alu_nxt.byte_op;
+
+addr <= alu_nxt.result;
+data <= right_operand;
 --byte_s <= reg.result(2);
 end behav;