Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
0efc524b
Commit
0efc524b
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
If there are compile scripts for IP files then first compile those into the work library.
parent
3959a160
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/modelsim/commands.do
+25
-0
25 additions, 0 deletions
tools/modelsim/commands.do
with
25 additions
and
0 deletions
tools/modelsim/commands.do
+
25
−
0
View file @
0efc524b
...
@@ -216,6 +216,14 @@ proc mk_compile {arg_lib} {
...
@@ -216,6 +216,14 @@ proc mk_compile {arg_lib} {
vdel
-
lib
$sim
/
work
-
all
vdel
-
lib
$sim
/
work
-
all
}
}
vlib
work
vlib
work
# if there are compile scripts for IP files then first compile those into this work
global
env
;
#
Make
global
env
()
variable
known
locally.
This
is
necessary
for
$env
(
*
)
in
compile
IP
tcl
script
,
alternatively
use
$
::
env
(
*
)
in
compile
IP
tcl
scrip
set
compile_ip
[
read_lib_compile_ip_file
$arg_lib
]
foreach
ip
$compile_ip
{
echo
"do $ip"
do
$ip
}
# and then compile the HDL
project
compileall
project
compileall
}
}
...
@@ -312,6 +320,23 @@ proc read_lib_compile_order_file {arg_lib} {
...
@@ -312,6 +320,23 @@ proc read_lib_compile_order_file {arg_lib} {
return
$lib_names
return
$lib_names
}
}
proc
read_lib_compile_ip_file
{
arg_lib
}
{
set
sim
[
simdir
$arg_lib
]
set
file_name
$arg_lib
append
file_name
"_lib_compile_ip.txt"
if
{[
file
exists
"$sim/$file_name"
]}
then
{
set
fp
[
open
$sim
/
$file_name
]
set
data
[
read
$fp
]
set
data
[
string
trim
$data
]
;
#
trim
any
trailing
white
space
close
$fp
set
compile_ip
[
split
$data
]
echo
$compile_ip
return
$compile_ip
}
else
{
return
}
}
# Compute simulation directory where the mpf is located
# Compute simulation directory where the mpf is located
proc
simdir
{
arg_lib
}
{
proc
simdir
{
arg_lib
}
{
set
project_libs
[
read_modelsim_project_files_file
]
set
project_libs
[
read_modelsim_project_files_file
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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