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
5e104de0
Commit
5e104de0
authored
Feb 26, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preliminary refactoring work.
parent
7877cccb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
makefilesim.py
hdlmake/tools/makefilesim.py
+15
-7
No files found.
hdlmake/tools/makefilesim.py
View file @
5e104de0
...
...
@@ -105,17 +105,25 @@ class MakefileSim(ToolMakefile):
self
.
write
(
"
\\\n
{}"
.
format
(
path_mod
.
relpath
(
dep_file
,
cwd
)))
self
.
writeln
()
def
_makefile_sim_compile_file
(
self
,
srcfile
):
if
isinstance
(
srcfile
,
VHDLFile
):
key
=
'vhdl'
elif
isinstance
(
srcfile
,
VerilogFile
):
key
=
'vlog'
else
:
return
None
cmd
=
self
.
SIMULATOR_CONTROLS
.
get
(
key
)
if
cmd
is
None
:
return
None
return
"
\t\t
"
+
cmd
.
format
(
work
=
srcfile
.
library
)
def
_makefile_sim_dep_files
(
self
):
"""Print dummy targets to handle file dependencies"""
for
file_aux
in
self
.
fileset
.
sort
():
# Consider only HDL files.
if
isinstance
(
file_aux
,
tuple
(
self
.
HDL_FILES
))
:
cmd
=
self
.
_makefile_sim_compile_file
(
file_aux
)
if
cmd
is
not
None
:
self
.
_makefile_sim_file_rule
(
file_aux
)
if
isinstance
(
file_aux
,
VHDLFile
):
command_key
=
'vhdl'
elif
isinstance
(
file_aux
,
VerilogFile
):
command_key
=
'vlog'
self
.
writeln
(
"
\t\t
"
+
self
.
SIMULATOR_CONTROLS
[
command_key
]
.
format
(
work
=
file_aux
.
library
))
self
.
writeln
(
cmd
)
self
.
_makefile_touch_stamp_file
()
self
.
writeln
()
...
...
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