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

Subversion Repositories linkruncca

[/] [linkruncca/] [trunk/] [sim/] [v2c.sh] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jaytang
#!/bin/sh
2
 
3
starttime=$(date +%s)
4
 
5
if test `ls -1 $1 | wc -l` -ne 1
6
then    printf "shtask: Input .v file error.\nusage:sh v2c <inputfile.v>\n"
7
        exit
8
fi
9
 
10
fname="${1%%.*}"
11
echo "input file:$fname"
12
 
13
verilator -Wall --cc "$1" --exe sim_main.cpp
14
cd obj_dir
15
make -j -f V$fname.mk "V$fname"
16
echo run with: obj_dir/V$fname
17
 
18
endtime=$(date +%s)
19
 
20
echo "Compile time : $(($endtime-$starttime))s"
21
 
22
 

powered by: WebSVN 2.1.0

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