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
07aee464
Commit
07aee464
authored
Aug 02, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor Modelsim for a more compact code
parent
f8cceae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
modelsim.py
hdlmake/tools/modelsim.py
+9
-13
No files found.
hdlmake/tools/modelsim.py
View file @
07aee464
...
...
@@ -36,6 +36,15 @@ class ToolModelsim(VsimMakefileWriter):
def
__init__
(
self
):
super
(
ToolModelsim
,
self
)
.
__init__
()
self
.
vcom_flags
.
extend
([
"-modelsimini"
,
"modelsim.ini"
])
self
.
vlog_flags
.
extend
([
"-modelsimini"
,
"modelsim.ini"
])
self
.
vmap_flags
.
extend
([
"-modelsimini"
,
"modelsim.ini"
])
self
.
copy_rules
[
"modelsim.ini"
]
=
os
.
path
.
join
(
"$(MODELSIM_INI_PATH)"
,
"modelsim.ini"
)
self
.
additional_deps
.
append
(
"modelsim.ini"
)
self
.
additional_clean
.
extend
(
[
"./modelsim.ini"
,
"transcript"
,
"*.vcd"
,
"*.wlf"
])
def
detect_version
(
self
,
path
):
pass
...
...
@@ -57,9 +66,6 @@ class ToolModelsim(VsimMakefileWriter):
return
sup_files
def
_print_sim_options
(
self
,
top_module
):
self
.
vcom_flags
.
extend
([
"-modelsimini"
,
"modelsim.ini"
])
self
.
vlog_flags
.
extend
([
"-modelsimini"
,
"modelsim.ini"
])
self
.
vmap_flags
.
extend
([
"-modelsimini"
,
"modelsim.ini"
])
if
top_module
.
pool
.
env
[
"modelsim_path"
]:
modelsim_ini_path
=
os
.
path
.
join
(
top_module
.
pool
.
env
[
"modelsim_path"
],
...
...
@@ -69,14 +75,4 @@ class ToolModelsim(VsimMakefileWriter):
self
.
custom_variables
[
"MODELSIM_INI_PATH"
]
=
modelsim_ini_path
super
(
ToolModelsim
,
self
)
.
_print_sim_options
(
top_module
)
def
_print_sim_compilation
(
self
,
fileset
,
top_module
):
self
.
copy_rules
[
"modelsim.ini"
]
=
os
.
path
.
join
(
"$(MODELSIM_INI_PATH)"
,
"modelsim.ini"
)
self
.
additional_deps
.
append
(
"modelsim.ini"
)
super
(
ToolModelsim
,
self
)
.
_print_sim_compilation
(
fileset
,
top_module
)
def
_print_sim_clean
(
self
,
top_module
):
self
.
additional_clean
.
extend
(
[
"./modelsim.ini"
,
"transcript"
,
"*.vcd"
,
"*.wlf"
])
super
(
ToolModelsim
,
self
)
.
_print_sim_clean
(
top_module
)
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