summaryrefslogtreecommitdiff
path: root/rtl/core/cp15/domain.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-10 19:36:38 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-10 19:36:38 -0600
commit8026947ecdf9b023c3720b26bf257bf46f7a2805 (patch)
tree8b2fbd0beb29c575730a76b010e8aa35977d5417 /rtl/core/cp15/domain.sv
parent02f76bae32e295bf1da04e38dfa12dfbc5832aec (diff)
Implement rest of cp15 registers
Diffstat (limited to 'rtl/core/cp15/domain.sv')
-rw-r--r--rtl/core/cp15/domain.sv24
1 files changed, 24 insertions, 0 deletions
diff --git a/rtl/core/cp15/domain.sv b/rtl/core/cp15/domain.sv
new file mode 100644
index 0000000..4e5f5d6
--- /dev/null
+++ b/rtl/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
+);
+
+ word dac;
+ assign read = dac;
+
+ always @(posedge clk or negedge rst_n)
+ if(!rst_n)
+ dac <= 0;
+ else if(transfer && !load)
+ dac <= write;
+
+endmodule