Skip to content

Commit

Permalink
Remove duplicated usage of Verilog files from Caliptra in Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
JanOlencki committed Dec 18, 2024
1 parent dbd9fa4 commit c0b9612
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
5 changes: 3 additions & 2 deletions verification/cocotb/block/hci_queues_ahb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ TOPLEVEL = hci_queues_wrapper
# Set appropriate bus interface via Cocotb's PLUSARGS:
override PLUSARGS := $(strip +FrontendBusInterface=AHB $(PLUSARGS))

VERILOG_SOURCES = \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_util_pkg.sv \
include $(TEST_DIR)/../../caliptra_common.mk

VERILOG_SOURCES += \
$(CALIPTRA_ROOT)/src/libs/rtl/ahb_defines_pkg.sv \
$(SRC_DIR)/i3c_pkg.sv \
$(SRC_DIR)/csr/I3CCSR_pkg.sv \
Expand Down
5 changes: 3 additions & 2 deletions verification/cocotb/block/hci_queues_axi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ TOPLEVEL = hci_queues_wrapper
# Set appropriate bus interface via Cocotb's PLUSARGS:
override PLUSARGS := $(strip +FrontendBusInterface=AXI $(PLUSARGS))

VERILOG_SOURCES = \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_util_pkg.sv \
include $(TEST_DIR)/../../caliptra_common.mk

VERILOG_SOURCES += \
$(SRC_DIR)/i3c_pkg.sv \
$(SRC_DIR)/csr/I3CCSR_pkg.sv \
$(SRC_DIR)/csr/I3CCSR.sv \
Expand Down
4 changes: 3 additions & 1 deletion verification/cocotb/block/i3c_phy_io/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ TEST_FILES = $(sort $(wildcard test_*.py))
MODULE ?= $(subst $(space),$(comma),$(subst .py,,$(TEST_FILES)))
TOPLEVEL = i3c_phy_io_wrapper

VERILOG_SOURCES = \
include $(TEST_DIR)/../../caliptra_common.mk

VERILOG_SOURCES += \
$(SRC_DIR)/phy/buf_od.sv \
$(SRC_DIR)/phy/buf_pp.sv \
$(SRC_DIR)/phy/bufs.sv \
Expand Down
9 changes: 9 additions & 0 deletions verification/cocotb/caliptra_common.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CALIPTRA_SOURCES = \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_pkg.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_util_pkg.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_assert.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim_generic/rtl/caliptra_prim_generic_flop.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_flop.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_flop_2sync.sv

VERILOG_SOURCES += $(CALIPTRA_SOURCES)
8 changes: 0 additions & 8 deletions verification/cocotb/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ $(info From common.mk, CURDIR is $(CURDIR))
# Set pythonpath so that tests can access common modules
export PYTHONPATH := $(PYTHONPATH):$(CURDIR)/common

# Common sources
COMMON_SOURCES = \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_pkg.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_assert.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim_generic/rtl/caliptra_prim_generic_flop.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_flop.sv \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl/caliptra_prim_flop_2sync.sv

VERILOG_INCLUDE_DIRS= \
$(CALIPTRA_ROOT)/src/libs/rtl \
$(CALIPTRA_ROOT)/src/caliptra_prim/rtl \
Expand Down

0 comments on commit c0b9612

Please sign in to comment.