OpenCores
URL https://opencores.org/ocsvn/s1_core/s1_core/trunk

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [bin/] [s1_sim_run] - Blame information for rev 113

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 111 albert.wat
#!/bin/bash
2
 
3
set -e
4
if ( (test $# != 1) || ((test $1 != "icarus") && (test $1 != "vcs")) ) then
5
  echo "Usage: $0 {icarus|vcs}"
6
  exit 1
7
fi
8
test_var S1_ROOT
9
 
10
echo -e "Running simulation using $1"
11
cd $S1_ROOT/run/sim/$1
12
ln -f -s $S1_ROOT/tests/boot/rom_harness.hex .
13 113 albert.wat
ln -f -s $S1_ROOT/tests/boot/rom_harness.dis .
14 111 albert.wat
ln -f -s $S1_ROOT/tests/ram_harness.hex .
15 113 albert.wat
ln -f -s $S1_ROOT/tests/ram_harness.dis .
16 111 albert.wat
./testbench 2>&1 | tee sim.log
17
 
18
#if(test $1 == "icarus") then
19
#fi
20
 
21
#if(test $1 == "vcs") then
22
#fi
23
 
24
echo -e "Simulation with $1 completed!"
25
echo -e "To see the output:"
26
echo -e "less $S1_ROOT/run/sim/$1/sim.log"
27
echo -e "gtkwave $S1_ROOT/run/sim/$1/trace.vcd"
28
 
29
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.