Skip to content

Commit 96c6960

Browse files
author
pascalgouedo
authored
Merge pull request #2471 from XavierAubert/cv32e40p/fix_2123
Added behavior discussed in Issue 2123 for USE_ISS
2 parents 41ccf8f + 93ab85f commit 96c6960

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

mk/core/core.mk

+9-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,15 @@ UVM_PLUSARGS ?=
4848
CV_SIMULATOR ?= unsim
4949
SIMULATOR ?= $(CV_SIMULATOR)
5050

51-
# Optionally exclude the OVPsim (not recommended)
52-
USE_ISS ?= YES
51+
# If USE_ISS is not specified, it will decide by default to enable the ISS if imperas_home is defined
52+
ifndef USE_ISS
53+
ifneq ($(IMPERAS_HOME),)
54+
USE_ISS = YES
55+
else
56+
USE_ISS = NO
57+
endif
58+
$(info Info: USE_ISS is not specified when invoking make command, defaulting USE_ISS to $(USE_ISS) (check for IMPERAS_HOME in your environment))
59+
endif
5360

5461
# Common configuration variables
5562
CFG ?= default

mk/uvmt/uvmt.mk

+9-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,15 @@ UVM_PLUSARGS ?=
7070
CV_SIMULATOR ?= unsim
7171
SIMULATOR ?= $(CV_SIMULATOR)
7272

73-
# Optionally exclude the OVPsim (not recommended)
74-
USE_ISS ?= YES
73+
# If USE_ISS is not specified, it will decide by default to enable the ISS if imperas_home is defined
74+
ifndef USE_ISS
75+
ifneq ($(IMPERAS_HOME),)
76+
USE_ISS = YES
77+
else
78+
USE_ISS = NO
79+
endif
80+
$(info Info: USE_ISS is not specified when invoking make command, defaulting USE_ISS to $(USE_ISS) (check for IMPERAS_HOME in your environment))
81+
endif
7582

7683
# Common configuration variables
7784
CFG ?= default

0 commit comments

Comments
 (0)