Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
080a3304
Commit
080a3304
authored
Apr 26, 2016
by
Will
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notool tool, and qsys_hw_tcl_update action.
parent
dcd3e0d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
__main__.py
hdlmake/__main__.py
+12
-1
notool.py
hdlmake/tools/notool/notool.py
+25
-2
No files found.
hdlmake/__main__.py
View file @
080a3304
...
...
@@ -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"
:
...
...
hdlmake/tools/notool/notool.py
View file @
080a3304
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__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment