From 6c175d5dc428f630e3bd4caf707db4b77b0b87e7 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 12 Feb 2024 16:20:12 -0600 Subject: rtl, tb: add core.mk files --- rtl/core/core_cp15_far.sv | 11 ++++++----- rtl/core/mod.mk | 9 +++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 rtl/core/mod.mk (limited to 'rtl/core') 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 -- cgit v1.2.3