| 1 |
# Copyright cocotb contributors |
| 2 |
# Licensed under the Revised BSD License, see LICENSE for details. |
| 3 |
# SPDX-License-Identifier: BSD-3-Clause |
| 4 |
|
| 5 |
ifdef VERILATOR_TRACE |
| 6 |
$(warning VERILATOR_TRACE is deprecated, see the "Simulator Support" section in the documentation.) |
| 7 |
endif |
| 8 |
|
| 9 |
ifeq ($(SIM_LOWERCASE),aldec) |
| 10 |
$(warning Using SIM=aldec is deprecated, please use SIM=riviera instead.) |
| 11 |
SIM_LOWERCASE := riviera |
| 12 |
endif |
| 13 |
|
| 14 |
# Use this function to warn users about deprecated environment variables |
| 15 |
deprecate = $(if $($(1)),$(if $(filter $($(2)),$($(1))),$($(2)),$(warning Using $(1) is deprecated, please use $(2) instead.)$($(1))),$($(2))) |
| 16 |
|
| 17 |
ifneq ($(COCOTB_TOPLEVEL),$(TOPLEVEL)) |
| 18 |
ifneq ($(TOPLEVEL),) |
| 19 |
COCOTB_TOPLEVEL := $(TOPLEVEL) |
| 20 |
endif |
| 21 |
endif |
| 22 |
|
| 23 |
ifneq ($(COCOTB_USER_COVERAGE),$(COVERAGE)) |
| 24 |
ifneq ($(COVERAGE),) |
| 25 |
COCOTB_USER_COVERAGE := $(COVERAGE) |
| 26 |
endif |
| 27 |
endif |