From 93ab85f3eb87c0d964f027e465caa01b5c17f8ea Mon Sep 17 00:00:00 2001 From: Xavier Aubert Date: Fri, 14 Jun 2024 15:03:31 +0200 Subject: [PATCH] added behavior discussed in PR2123 for USE_ISS --- mk/core/core.mk | 11 +++++++++-- mk/uvmt/uvmt.mk | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/mk/core/core.mk b/mk/core/core.mk index 48d6267e53..0dc9b9c20e 100644 --- a/mk/core/core.mk +++ b/mk/core/core.mk @@ -48,8 +48,15 @@ UVM_PLUSARGS ?= CV_SIMULATOR ?= unsim SIMULATOR ?= $(CV_SIMULATOR) -# Optionally exclude the OVPsim (not recommended) -USE_ISS ?= YES +# If USE_ISS is not specified, it will decide by default to enable the ISS if imperas_home is defined +ifndef USE_ISS +ifneq ($(IMPERAS_HOME),) +USE_ISS = YES +else +USE_ISS = NO +endif +$(info Info: USE_ISS is not specified when invoking make command, defaulting USE_ISS to $(USE_ISS) (check for IMPERAS_HOME in your environment)) +endif # Common configuration variables CFG ?= default diff --git a/mk/uvmt/uvmt.mk b/mk/uvmt/uvmt.mk index e4664a7feb..517bfd0e8b 100644 --- a/mk/uvmt/uvmt.mk +++ b/mk/uvmt/uvmt.mk @@ -70,8 +70,15 @@ UVM_PLUSARGS ?= CV_SIMULATOR ?= unsim SIMULATOR ?= $(CV_SIMULATOR) -# Optionally exclude the OVPsim (not recommended) -USE_ISS ?= YES +# If USE_ISS is not specified, it will decide by default to enable the ISS if imperas_home is defined +ifndef USE_ISS +ifneq ($(IMPERAS_HOME),) +USE_ISS = YES +else +USE_ISS = NO +endif +$(info Info: USE_ISS is not specified when invoking make command, defaulting USE_ISS to $(USE_ISS) (check for IMPERAS_HOME in your environment)) +endif # Common configuration variables CFG ?= default