From 8026947ecdf9b023c3720b26bf257bf46f7a2805 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 10 Dec 2022 19:36:38 -0600 Subject: Implement rest of cp15 registers --- rtl/core/mmu/format.sv | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 rtl/core/mmu/format.sv (limited to 'rtl/core/mmu') 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 -- cgit v1.2.3