Commit a94820ca authored by Tristan Gingold's avatar Tristan Gingold

modelsim.py: sim_path is always present but can be empty.

parent 64829b99
...@@ -54,7 +54,7 @@ class ToolModelsim(MakefileVsim): ...@@ -54,7 +54,7 @@ class ToolModelsim(MakefileVsim):
"""Print the Modelsim options to the Makefile""" """Print the Modelsim options to the Makefile"""
modelsim_ini_path = self.manifest_dict.get("modelsim_ini_path") modelsim_ini_path = self.manifest_dict.get("modelsim_ini_path")
if modelsim_ini_path == None: if modelsim_ini_path == None:
if "sim_path" in self.manifest_dict: if self.manifest_dict['sim_path']:
modelsim_ini_path = os.path.join( modelsim_ini_path = os.path.join(
self.manifest_dict["sim_path"], "..") self.manifest_dict["sim_path"], "..")
else: else:
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
TOP_MODULE := gate TOP_MODULE := gate
MODELSIM_INI_PATH := .. MODELSIM_INI_PATH := $(HDLMAKE_MODELSIM_PATH)/..
VCOM_FLAGS := -quiet -modelsimini modelsim.ini VCOM_FLAGS := -quiet -modelsimini modelsim.ini
VSIM_FLAGS := VSIM_FLAGS :=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment