Refactor Quartus so that it supports the new project stage

parent 600dc408
...@@ -60,17 +60,14 @@ class ToolQuartus(ToolSyn): ...@@ -60,17 +60,14 @@ class ToolQuartus(ToolSyn):
'mrproper': ["*.sof", "*.pof", "*.jam", "*.jbc", 'mrproper': ["*.sof", "*.pof", "*.jam", "*.jbc",
"*.ekp", "*.jic"]} "*.ekp", "*.jic"]}
TCL_CONTROLS = {'create': 'load_package flow\\n' TCL_CONTROLS = {'create': 'load_package flow\n'
'project_new $(PROJECT)', 'project_new $(PROJECT)',
'open': 'load_package flow\\n' 'open': 'load_package flow\n'
'project_open $(PROJECT)', 'project_open $(PROJECT)',
'save': '', 'project': '$(TCL_CREATE)\n'
'close': '', '$(TCL_FILES)',
'synthesize': '', 'bitstream': '$(TCL_OPEN)\n'
'translate': '', 'execute_flow -compile',
'map': '',
'par': '',
'bitstream': 'execute_flow -compile',
'install_source': ''} 'install_source': ''}
SET_GLOBAL_INSTANCE = 0 SET_GLOBAL_INSTANCE = 0
...@@ -154,7 +151,7 @@ class ToolQuartus(ToolSyn): ...@@ -154,7 +151,7 @@ class ToolQuartus(ToolSyn):
self.manifest_dict["syn_package"] + self.manifest_dict["syn_package"] +
self.manifest_dict["syn_grade"]).upper() self.manifest_dict["syn_grade"]).upper()
command_list = [] command_list = []
command_list.append(self._tcl_controls["create"]) command_list.append(self._tcl_controls["project"])
command_list.append(_emit_property( command_list.append(_emit_property(
self.SET_GLOBAL_ASSIGNMENT, self.SET_GLOBAL_ASSIGNMENT,
name_type='FAMILY', name_type='FAMILY',
...@@ -205,7 +202,7 @@ class ToolQuartus(ToolSyn): ...@@ -205,7 +202,7 @@ class ToolQuartus(ToolSyn):
command_list.append(_emit_property(self.SET_GLOBAL_ASSIGNMENT, command_list.append(_emit_property(self.SET_GLOBAL_ASSIGNMENT,
name_type='POST_FLOW_SCRIPT_FILE', name_type='POST_FLOW_SCRIPT_FILE',
name=postflow)) name=postflow))
self._tcl_controls["create"] = '\n'.join(command_list) self._tcl_controls["project"] = '\n'.join(command_list)
super(ToolQuartus, self).makefile_syn_tcl() super(ToolQuartus, self).makefile_syn_tcl()
def makefile_syn_files(self): def makefile_syn_files(self):
......
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