Commit 080a3304 authored by Will's avatar Will

Add notool tool, and qsys_hw_tcl_update action.

parent dcd3e0d5
......@@ -124,9 +124,12 @@ def main():
"Otherwise hdlmake doesn't know how to simulate the project")
quit()
tool_name = top_mod.sim_tool
else:
tool_name = "notool"
logging.info('import tool module: ' + tool_name)
try:
tool_module = importlib.import_module("tools.%s.%s" % (tool_name, tool_name))
tool_module = importlib.import_module("hdlmake.tools.%s.%s" % (tool_name, tool_name))
except Exception as e:
logging.error(e)
quit()
......@@ -175,6 +178,14 @@ def main():
GenerateSynthesisMakefile,
GenerateRemoteSynthesisMakefile
]
elif top_mod.action == "qsys_hw_tcl_update":
if not top_mod.hw_tcl_filename:
logging.error("'hw_tcl_filename' manifest variable has to be specified. "
"Otherwise hdlmake doesn't know which file to update.")
quit()
action = [
QsysHwTclUpdate,
]
elif options.command == "make-simulation":
action = [ GenerateSimulationMakefile ]
elif options.command == "make-fetch":
......
from .. common.sim_makefile_support import VsimMakefileWriter
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Auckland University of Technology
# Author: William Kamp <william.kamp@aut.ac.nz>
# Multi-tool support by Javier D. Garcia-Lasheras (javier@garcialasheras.com)
#
# This file is part of Hdlmake.
#
# Hdlmake is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Hdlmake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Hdlmake. If not, see <http://www.gnu.org/licenses/>.
#
class ToolControls(VsimMakefileWriter):
from hdlmake.makefile_writer import MakefileWriter
class ToolControls(MakefileWriter):
def __init__(self):
super(ToolControls, self).__init__()
......
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