URL
https://opencores.org/ocsvn/ahbmaster/ahbmaster/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
3 |
uson |
### script to compile Actel AMBA BFM source file(s) into vector file(s)
|
2 |
|
|
### for simulation
|
3 |
|
|
# 10Feb10 Production Release Version 3.1
|
4 |
|
|
quietly set chmod_exe "/bin/chmod"
|
5 |
|
|
quietly set linux_exe "./bfmtovec.lin"
|
6 |
|
|
quietly set windows_exe "./bfmtovec.exe"
|
7 |
|
|
quietly set bfm_in1 "./coreahblite_usertb_ahb_master0.bfm"
|
8 |
|
|
quietly set bfm_out1 "./coreahblite_usertb_ahb_master0.vec"
|
9 |
|
|
quietly set bfm_in2 "./coreahblite_usertb_ahb_master1.bfm"
|
10 |
|
|
quietly set bfm_out2 "./coreahblite_usertb_ahb_master1.vec"
|
11 |
|
|
quietly set log "./bfmtovec_compile.log"
|
12 |
|
|
|
13 |
|
|
# check OS type and use appropriate executable
|
14 |
|
|
if {$tcl_platform(os) == "Linux"} {
|
15 |
|
|
echo "--- Using Linux Actel DirectCore AMBA BFM compiler"
|
16 |
|
|
quietly set bfmtovec_exe $linux_exe
|
17 |
|
|
if {![file executable $bfmtovec_exe]} {
|
18 |
|
|
quietly set cmds "exec $chmod_exe +x $bfmtovec_exe"
|
19 |
|
|
eval $cmds
|
20 |
|
|
}
|
21 |
|
|
} else {
|
22 |
|
|
echo "--- Using Windows Actel DirectCore AMBA BFM compiler"
|
23 |
|
|
quietly set bfmtovec_exe $windows_exe
|
24 |
|
|
}
|
25 |
|
|
# compile BFM source file(s) into vector output file(s)
|
26 |
|
|
echo "--- Compiling Actel DirectCore AMBA BFM source files ..."
|
27 |
|
|
quietly set cmd1 "exec $bfmtovec_exe -in $bfm_in1 -out $bfm_out1 > $log"
|
28 |
|
|
quietly set cmd2 "exec $bfmtovec_exe -in $bfm_in2 -out $bfm_out2 >> $log"
|
29 |
|
|
eval $cmd1
|
30 |
|
|
eval $cmd2
|
31 |
|
|
|
32 |
|
|
# print contents of log file
|
33 |
|
|
quietly set f [open $log]
|
34 |
|
|
while {[gets $f line] >= 0} {puts $line}
|
35 |
|
|
close $f
|
36 |
|
|
|
37 |
|
|
echo "--- Done Compiling Actel DirectCore AMBA BFM source files."
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.