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
2e1584f5
Commit
2e1584f5
authored
Jun 28, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move vlog included dirs at Modelsim-like makefiles to a new variable
parent
f0c0a0db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sim_makefile_support.py
hdlmake/tools/common/sim_makefile_support.py
+4
-4
No files found.
hdlmake/tools/common/sim_makefile_support.py
View file @
2e1584f5
...
...
@@ -92,6 +92,8 @@ PWD := $(shell pwd)
self
.
writeln
(
"VSIM_FLAGS :=
%
s"
%
(
' '
.
join
(
self
.
vsim_flags
)))
self
.
writeln
(
"VLOG_FLAGS :=
%
s"
%
(
' '
.
join
(
self
.
vlog_flags
)))
self
.
writeln
(
"VMAP_FLAGS :=
%
s"
%
(
' '
.
join
(
self
.
vmap_flags
)))
self
.
writeln
(
"INCLUDE_DIRS := +incdir+
%
s"
%
(
'+'
.
join
(
top_module
.
include_dirs
)))
self
.
write
(
"VERILOG_SRC := "
)
for
vl
in
fileset
.
filter
(
VerilogFile
):
self
.
write
(
vl
.
rel_path
()
+
"
\\\n
"
)
...
...
@@ -203,11 +205,9 @@ sim_post_cmd:
# self.write(incdir)
# self.writeln(vl.vlog_opt+" $<")
####
compile_template
=
string
.
Template
(
"
\t\t
vlog -work ${library} $$(VLOG_FLAGS) ${sv_option}
+incdir+${include_dirs} ${vlog_opt
} $$<"
)
compile_template
=
string
.
Template
(
"
\t\t
vlog -work ${library} $$(VLOG_FLAGS) ${sv_option}
$${INCLUDE_DIRS
} $$<"
)
compile_line
=
compile_template
.
substitute
(
library
=
vl
.
library
,
sv_option
=
"-sv"
if
isinstance
(
vl
,
SVFile
)
else
""
,
include_dirs
=
'+'
.
join
(
top_module
.
include_dirs
),
vlog_opt
=
top_module
.
vlog_opt
)
sv_option
=
"-sv"
if
isinstance
(
vl
,
SVFile
)
else
""
)
self
.
writeln
(
compile_line
)
self
.
write
(
"
\t\t
@"
+
mkdir_r_command
+
" $(dir $@)"
)
self
.
writeln
(
" && touch $@
\n\n
"
)
...
...
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