Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hdlmake
Commits
52279161
Commit
52279161
authored
14 years ago
by
Pawel Szostek
Browse files
Options
Downloads
Patches
Plain Diff
automatic detection of modeltech path
parent
591d5e21
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synthesis/depend.py
+5
-1
5 additions, 1 deletion
synthesis/depend.py
with
5 additions
and
1 deletion
synthesis/depend.py
+
5
−
1
View file @
52279161
...
...
@@ -133,6 +133,10 @@ def generate_deps_for_modules(modules_paths):
p
.
vpprint
(
file_file_dict
)
return
file_file_dict
,
file_lib_dict
def
modelsim_ini_path
():
vsim_path
=
os
.
popen
(
"
which vsim
"
).
read
().
strip
()
bin_path
=
os
.
path
.
dirname
(
vsim_path
)
return
os
.
path
.
abspath
(
bin_path
+
"
/../
"
)
def
generate_makefile
(
file_deps_dict
,
file_lib_dict
):
from
time
import
gmtime
,
strftime
import
path
...
...
@@ -148,7 +152,7 @@ def generate_makefile(file_deps_dict, file_lib_dict):
PWD := $(shell pwd)
WORK_NAME := work
MODELSIM_INI_PATH :=
/opt/modeltech_66a/modeltech
MODELSIM_INI_PATH :=
"""
+
modelsim_ini_path
()
+
"""
VCOM_FLAGS := -nologo -quiet -93 -modelsimini ./modelsim.ini
VSIM_FLAGS := -voptargs=
"
+acc
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment