From f3b18ead59ae02f95dabbf0a1dea40873a816975 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 21 Jan 2024 06:23:46 -0600 Subject: rtl: refactor filenames and directory hierarchy --- rtl/core/core_cp15_domain.sv | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rtl/core/core_cp15_domain.sv (limited to 'rtl/core/core_cp15_domain.sv') diff --git a/rtl/core/core_cp15_domain.sv b/rtl/core/core_cp15_domain.sv new file mode 100644 index 0000000..de37de4 --- /dev/null +++ b/rtl/core/core_cp15_domain.sv @@ -0,0 +1,24 @@ +`include "core/uarch.sv" + +module core_cp15_domain +( + input logic clk, + rst_n, + + input logic load, + transfer, + input word write, + + output word read, + mmu_dac /*verilator public*/ +); + + assign read = mmu_dac; + + always @(posedge clk or negedge rst_n) + if(!rst_n) + mmu_dac <= 0; + else if(transfer && !load) + mmu_dac <= write; + +endmodule -- cgit v1.2.3