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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [bin/] [s1_sim_build] - Rev 111

Go to most recent revision | 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 "Building design and testbench using $1"
mkdir -p $S1_ROOT/run/sim/$1
cd $S1_ROOT/run/sim/$1
rm -rf *

if(test $1 == "icarus") then
  iverilog -o testbench -c$FILELIST_ICARUS
fi

if(test $1 == "vcs") then
  vcs +cli -line -timescale=1ns/100ps -f $FILELIST_VCS
  mv -f simv testbench
  mv -f simv.daidir testbench.daidir
fi

echo -e "Build with $1 done!"


Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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