File size: 1,067 Bytes
362a075 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
ifeq ($(SIM),)
USING_ICARUS := 1
endif
ifeq ($(shell echo $(SIM) | tr A-Z a-z),icarus)
USING_ICARUS := 1
endif
ifneq ($(USING_ICARUS),)
ICARUS_MIN := 12.0
ICARUS_VERSION := $(shell iverilog -V 2>/dev/null | head -n1 | cut -d ' ' -f 4)
MIN_VERSION := $(shell printf "%s\n%s\n" "$(ICARUS_MIN)" "$(ICARUS_VERSION)" | sort -g | head -1)
ifneq ($(MIN_VERSION),$(ICARUS_MIN))
SKIP := 1
$(info "Skipping test_defaultless_parameter since icarus < v12.0 doesn't support vpiInstance iteration")
endif
endif
TOPLEVEL_LANG ?= verilog
ifneq ($(TOPLEVEL_LANG),verilog)
SKIP := 1
$(info "Skipping . . . Verilog only")
endif
ifeq ($(SKIP),)
VERILOG_SOURCES = cocotb_package_pkg.sv \
cocotb_package.sv
TOPLEVEL := cocotb_package
MODULE = test_package
include $(shell cocotb-config --makefiles)/Makefile.sim
else
all:
@echo "Skipping test_package"
clean::
# nothing to clean, just define target in this branch
endif
|