URL
https://opencores.org/ocsvn/sdhc-sc-core/sdhc-sc-core/trunk
Subversion Repositories sdhc-sc-core
Compare Revisions
- This comparison shows the changes necessary to convert path
/sdhc-sc-core/trunk/src/sim
- from Rev 14 to Rev 79
- ↔ Reverse comparison
Rev 14 → Rev 79
/sim.tcl
0,0 → 1,62
proc compileUnit {grp en arch} { |
set prefix ../../../grp$grp/unit$en/src |
if [file isfile $prefix/$en-e.vhdl] { |
vcom "$prefix/$en-e.vhdl" |
if [file isfile $prefix/$en-$arch-a.vhdl] { |
vcom "$prefix/$en-$arch-a.vhdl" |
} |
} elseif [file isfile $prefix/$en-$arch-ea.vhdl] { |
vcom "$prefix/$en-$arch-ea.vhdl" |
} else { |
echo "Unit $grp $en $arch not found!" |
} |
}; |
|
proc compileTb {grp en arch} { |
set prefix ../../../grp$grp/unit$en/src |
if [file isfile $prefix/tb$en-e.vhdl] { |
vcom "$prefix/tb$en-e.vhdl" |
if [file isfile $prefix/tb$en-$arch-a.vhdl] { |
vcom "$prefix/tb$en-$arch-a.vhdl" |
} |
} elseif [file isfile $prefix/tb$en-$arch-ea.vhdl] { |
vcom "$prefix/tb$en-$arch-ea.vhdl" |
} else { |
echo "Testbench $grp $en $arch not found!" |
} |
}; |
|
vlib work |
vmap work work |
|
if [info exists pkgs] { |
foreach {grp pkg} $pkgs { |
set fname ../../../grp$grp/pkg$pkg/src/$pkg-p.vhdl |
if [file isfile $fname] { |
vcom "$fname" |
} else { |
echo "Pkg $grp $pkg not found!" |
} |
} |
} |
|
if [info exists units] { |
foreach {grp en arch} $units { |
compileUnit $grp $en $arch |
} |
} |
|
if [info exists tb] { |
foreach {grp en arch} $tb { |
compileTb $grp $en $arch |
|
vsim tb$en |
|
if [file isfile wave.do] { |
do wave.do |
} |
|
run -all |
} |
} |
|