diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-12-18 18:31:03 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-12-18 18:31:03 -0600 |
| commit | e290956adf94dade4c9c4cd057cca08af1c61aeb (patch) | |
| tree | df310fe32102781b48d20d66b5c51cfdb2ad7901 /rtl/core/control/psr.sv | |
| parent | 46eae9622ab6f1a39c6253dc0998e03c57513510 (diff) | |
Implement privileged ldm/stm of user registers
Diffstat (limited to '')
| -rw-r--r-- | rtl/core/control/psr.sv | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/rtl/core/control/psr.sv b/rtl/core/control/psr.sv index ff9b13f..6616bc9 100644 --- a/rtl/core/control/psr.sv +++ b/rtl/core/control/psr.sv @@ -9,8 +9,7 @@ module core_control_psr input word cpsr_rd, spsr_rd, alu_b, - input psr_mode mode, - exception_mode, + input psr_mode exception_mode, input ctrl_cycle cycle, next_cycle, @@ -24,17 +23,13 @@ module core_control_psr final_psr_write, final_restore_spsr, output word psr_wb, - psr_wr, - output psr_mode reg_mode + psr_wr ); word exception_spsr; assign psr_wb = psr_saved ? spsr_rd : cpsr_rd; - //TODO: casos donde esto no es cierto - assign reg_mode = mode; - always_comb begin psr_write = 0; |
