diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-12-10 19:36:38 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-12-10 19:36:38 -0600 |
| commit | 8026947ecdf9b023c3720b26bf257bf46f7a2805 (patch) | |
| tree | 8b2fbd0beb29c575730a76b010e8aa35977d5417 /rtl/core/mmu | |
| parent | 02f76bae32e295bf1da04e38dfa12dfbc5832aec (diff) | |
Implement rest of cp15 registers
Diffstat (limited to 'rtl/core/mmu')
| -rw-r--r-- | rtl/core/mmu/format.sv | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rtl/core/mmu/format.sv b/rtl/core/mmu/format.sv new file mode 100644 index 0000000..c0918a3 --- /dev/null +++ b/rtl/core/mmu/format.sv @@ -0,0 +1,20 @@ +`ifndef CORE_MMU_FORMAT_SV +`define CORE_MMU_FORMAT_SV + +typedef logic[17:0] mmu_base; + +`define MMU_L1_INDEX [29:18] +`define MMU_L1_FAULT 2'b00 +`define MMU_L1_PAGETABLE 2'b01 +`define MMU_L1_SECTION 2'b10 + +`define MMU_L2_INDEX [17:10] +`define MMU_L2_FAULT 2'b00 +`define MMU_L2_LARGE 2'b01 +`define MMU_L2_SMALL 2'b10 +`define MMU_L2_SMALLEXT 2'b11 + +`define MMU_LARGE_INDEX [13:0] +`define MMU_SMALL_INDEX [11:0] + +`endif |
