diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-01-21 06:23:46 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-02-20 11:11:17 -0600 |
| commit | f3b18ead59ae02f95dabbf0a1dea40873a816975 (patch) | |
| tree | 8979e50f2a37f66a4cd27e937b480efe60d72cf7 /rtl/core/cp15/fsr.sv | |
| parent | a8bc5a353ea997f73209b39377ee15a73e471237 (diff) | |
rtl: refactor filenames and directory hierarchy
Diffstat (limited to 'rtl/core/cp15/fsr.sv')
| -rw-r--r-- | rtl/core/cp15/fsr.sv | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/rtl/core/cp15/fsr.sv b/rtl/core/cp15/fsr.sv deleted file mode 100644 index 81b4992..0000000 --- a/rtl/core/cp15/fsr.sv +++ /dev/null @@ -1,43 +0,0 @@ -`include "core/cp15/map.sv" -`include "core/mmu/format.sv" -`include "core/uarch.sv" - -module core_cp15_fsr -( - input logic clk, - rst_n, - - input logic load, - transfer, - input word write, - - input logic fault_register, - fault_page, - input mmu_fault_type fault_type, - input mmu_domain fault_domain, - - output word read /*verilator public*/ -); - - logic fsr_page; - mmu_domain fsr_domain; - mmu_fault_type fsr_type; - - assign read = {24'd0, fsr_domain, fsr_type, fsr_page, 1'b1}; - - always @(posedge clk or negedge rst_n) - if(!rst_n) begin - fsr_page <= 0; - fsr_type <= 0; - fsr_domain <= 0; - end else if(fault_register) begin - fsr_page <= fault_page; - fsr_type <= fault_type; - fsr_domain <= fault_domain; - end else if(transfer && !load) begin - fsr_page <= write[1]; - fsr_type <= write[3:2]; - fsr_domain <= write[7:4]; - end - -endmodule |
