summaryrefslogtreecommitdiff
path: root/rtl/core/control/data.sv
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rtl/core/control/data.sv3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtl/core/control/data.sv b/rtl/core/control/data.sv
index 049cf0e..6a7ec15 100644
--- a/rtl/core/control/data.sv
+++ b/rtl/core/control/data.sv
@@ -16,6 +16,7 @@ module core_control_data
input ctrl_cycle cycle,
next_cycle,
input ptr pc,
+ input logic ldst_next,
input word mem_offset,
input psr_flags flags,
@@ -89,7 +90,7 @@ module core_control_data
c_in <= c_shifter;
saved_base <= q_shifter;
end else if(next_cycle.transfer) begin
- if(!cycle.transfer || mem_ready)
+ if(ldst_next)
saved_base <= q_alu;
end else if(next_cycle.exception) begin
alu <= `ALU_ADD;