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

Subversion Repositories linkruncca

[/] [linkruncca/] [trunk/] [sim/] [v2c.sh] - Rev 7

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

#!/bin/sh
 
starttime=$(date +%s)
 
if test `ls -1 $1 | wc -l` -ne 1
then	printf "shtask: Input .v file error.\nusage:sh v2c <inputfile.v>\n" 
	exit
fi
 
fname="${1%%.*}"
echo "input file:$fname"
 
verilator -Wall --cc "$1" --exe sim_main.cpp
cd obj_dir
make -j -f V$fname.mk "V$fname"
echo run with: obj_dir/V$fname
 
endtime=$(date +%s)
 
echo "Compile time : $(($endtime-$starttime))s"
 
 
 

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.