URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Subversion Repositories s1_core
[/] [s1_core/] [trunk/] [tools/] [bin/] [s1_sim_run] - Rev 113
Compare with Previous | Blame | View Log
#!/bin/bash
set -e
if ( (test $# != 1) || ((test $1 != "icarus") && (test $1 != "vcs")) ) then
echo "Usage: $0 {icarus|vcs}"
exit 1
fi
test_var S1_ROOT
echo -e "Running simulation using $1"
cd $S1_ROOT/run/sim/$1
ln -f -s $S1_ROOT/tests/boot/rom_harness.hex .
ln -f -s $S1_ROOT/tests/boot/rom_harness.dis .
ln -f -s $S1_ROOT/tests/ram_harness.hex .
ln -f -s $S1_ROOT/tests/ram_harness.dis .
./testbench 2>&1 | tee sim.log
#if(test $1 == "icarus") then
#fi
#if(test $1 == "vcs") then
#fi
echo -e "Simulation with $1 completed!"
echo -e "To see the output:"
echo -e "less $S1_ROOT/run/sim/$1/sim.log"
echo -e "gtkwave $S1_ROOT/run/sim/$1/trace.vcd"