Convert Quartus postmodule, preflow and postflow script paths to a TCL friendly format

parent 6a677d55
...@@ -197,8 +197,8 @@ class ToolQuartus(ToolSyn): ...@@ -197,8 +197,8 @@ class ToolQuartus(ToolSyn):
'name': '\\"$(TOP_MODULE)\\"'})) 'name': '\\"$(TOP_MODULE)\\"'}))
# Insert the Quartus standard control TCL files # Insert the Quartus standard control TCL files
if "quartus_preflow" in self.manifest_dict: if "quartus_preflow" in self.manifest_dict:
path = path_mod.compose( path = path_mod.tclpath(path_mod.compose(
self.manifest_dict["quartus_preflow"], os.getcwd()) self.manifest_dict["quartus_preflow"], os.getcwd()))
if not os.path.exists(path): if not os.path.exists(path):
logging.error("quartus_preflow file listed in " logging.error("quartus_preflow file listed in "
+ os.getcwd() + " doesn't exist: " + os.getcwd() + " doesn't exist: "
...@@ -209,9 +209,9 @@ class ToolQuartus(ToolSyn): ...@@ -209,9 +209,9 @@ class ToolQuartus(ToolSyn):
{'name_type': 'PRE_FLOW_SCRIPT_FILE', {'name_type': 'PRE_FLOW_SCRIPT_FILE',
'name': preflow})) 'name': preflow}))
if "quartus_postmodule" in self.manifest_dict: if "quartus_postmodule" in self.manifest_dict:
path = path_mod.compose( path = path_mod.tclpath(path_mod.compose(
self.manifest_dict["quartus_postmodule"], self.manifest_dict["quartus_postmodule"],
os.getcwd()) os.getcwd()))
if not os.path.exists(path): if not os.path.exists(path):
logging.error("quartus_postmodule file listed in " logging.error("quartus_postmodule file listed in "
+ os.getcwd() + " doesn't exist: " + os.getcwd() + " doesn't exist: "
...@@ -222,8 +222,8 @@ class ToolQuartus(ToolSyn): ...@@ -222,8 +222,8 @@ class ToolQuartus(ToolSyn):
{'name_type': 'POST_MODULE_SCRIPT_FILE', {'name_type': 'POST_MODULE_SCRIPT_FILE',
'name': postmodule})) 'name': postmodule}))
if "quartus_postflow" in self.manifest_dict: if "quartus_postflow" in self.manifest_dict:
path = path_mod.compose( path = path_mod.tclpath(path_mod.compose(
self.manifest_dict["quartus_postflow"], os.getcwd()) self.manifest_dict["quartus_postflow"], os.getcwd()))
if not os.path.exists(path): if not os.path.exists(path):
logging.error("quartus_postflow file listed in " logging.error("quartus_postflow file listed in "
+ os.getcwd() + " doesn't exist: " + os.getcwd() + " doesn't exist: "
......
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