diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-15 18:32:55 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-15 18:32:55 -0600 |
| commit | a055bc85bc50897644e7ed62699abff46d818d5f (patch) | |
| tree | 3f6bad895db229e3f004affa057967c2c0e1ea25 /rtl/core/control/data.sv | |
| parent | 5e8bafd124266be27532fc947e246eef35e45789 (diff) | |
Rewrite duplicate ldst logic as signal ldst_next
Diffstat (limited to 'rtl/core/control/data.sv')
| -rw-r--r-- | rtl/core/control/data.sv | 3 |
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; |
