Skip to content
Snippets Groups Projects
Commit 0efc524b authored by Eric Kooistra's avatar Eric Kooistra
Browse files

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
...@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment