summaryrefslogtreecommitdiff
path: root/rtl/core
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-02-12 16:20:12 -0600
committerAlejandro Soto <alejandro@34project.org>2024-02-20 11:11:18 -0600
commit6c175d5dc428f630e3bd4caf707db4b77b0b87e7 (patch)
tree8a29b9a609e181061f5423398b1f34d46813f84d /rtl/core
parentbf5cece51a20eb4773d196ec650fb3af574afa17 (diff)
rtl, tb: add core.mk files
Diffstat (limited to 'rtl/core')
-rw-r--r--rtl/core/core_cp15_far.sv11
-rw-r--r--rtl/core/mod.mk9
2 files changed, 15 insertions, 5 deletions
diff --git a/rtl/core/core_cp15_far.sv b/rtl/core/core_cp15_far.sv
index ca1dcf1..e990c52 100644
--- a/rtl/core/core_cp15_far.sv
+++ b/rtl/core/core_cp15_far.sv
@@ -16,16 +16,17 @@ module core_cp15_far
output word read /*verilator public*/
);
- word far;
+ // %Warning-SYMRSVDWORD: rtl/core/core_cp15_far.sv:19:7: Symbol matches C++ common word: 'far'
+ word far_;
- assign read = far;
+ assign read = far_;
always @(posedge clk or negedge rst_n)
if(!rst_n)
- far <= 0;
+ far_ <= 0;
else if(fault_register)
- far <= {fault_addr, 2'b00};
+ far_ <= {fault_addr, 2'b00};
else if(transfer && !load)
- far <= write;
+ far_ <= write;
endmodule
diff --git a/rtl/core/mod.mk b/rtl/core/mod.mk
new file mode 100644
index 0000000..960d1f1
--- /dev/null
+++ b/rtl/core/mod.mk
@@ -0,0 +1,9 @@
+define core
+ $(this)/deps := config
+ $(this)/rtl_dirs := .
+ $(this)/rtl_top := core
+
+ ifeq (sim,$(flow/type))
+ $(this)/deps += ip_mul
+ endif
+endef