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

Subversion Repositories can

[/] [can/] [tags/] [rel_9/] [sim/] [rtl_sim/] [run/] [run_sim.scr] - Blame information for rev 161

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mohor
#!/bin/csh -f
2
 
3
if ( $# < 1 ) then
4
    echo "First argument must be a top level module name!"
5
    exit
6
else
7
    set SIM_TOP = $1
8
endif
9
 
10
set current_par = 1
11
set output_waveform = 0
12
while ( $current_par < $# )
13
    @ current_par = $current_par + 1
14
    case wave:
15
        @ output_waveform = 1
16
        breaksw
17
    default:
18
        echo 'Unknown option "'$argv[$current_par]'"!'
19
        exit
20
        breaksw
21
    endsw
22
end
23
 
24
echo "-CDSLIB ../bin/cds.lib"          > ncvlog.args
25
echo "-HDLVAR ../bin/hdl.var"         >> ncvlog.args
26
echo "-MESSAGES"                      >> ncvlog.args
27
echo "-INCDIR ../../../bench/verilog" >> ncvlog.args
28
echo "-INCDIR ../../../rtl/verilog"   >> ncvlog.args
29
echo "-NOCOPYRIGHT"                   >> ncvlog.args
30
echo "-LOGFILE ../log/ncvlog.log"     >> ncvlog.args
31
 
32
foreach filename ( `cat ../bin/rtl_file_list` )
33
    echo "../../../rtl/verilog/"$filename >> ncvlog.args
34
end
35
 
36 48 mohor
foreach filename ( `cat ../bin/memory_file_list` )
37
    echo "../../../bench/verilog/"$filename >> ncvlog.args
38
end
39
 
40 2 mohor
foreach filename ( `cat ../bin/sim_file_list` )
41
    echo "../../../bench/verilog/"$filename >> ncvlog.args
42
end
43
 
44
ncvlog -f ncvlog.args
45
 
46
echo "-MESSAGES"                             > ncelab.args
47
echo "-NOCOPYRIGHT"                         >> ncelab.args
48
echo "-CDSLIB ../bin/cds.lib"               >> ncelab.args
49
echo "-HDLVAR ../bin/hdl.var"               >> ncelab.args
50
echo "-LOGFILE ../log/ncelab.log"           >> ncelab.args
51
echo "-SNAPSHOT worklib.bench:rtl"          >> ncelab.args
52
echo "-NO_TCHK_MSG"                         >> ncelab.args
53
echo "-ACCESS +RWC"                         >> ncelab.args
54
echo worklib.$SIM_TOP                       >> ncelab.args
55
 
56
ncelab -f ncelab.args
57
 
58
echo "-MESSAGES"                   > ncsim.args
59
echo "-NOCOPYRIGHT"               >> ncsim.args
60
echo "-CDSLIB ../bin/cds.lib"     >> ncsim.args
61
echo "-HDLVAR ../bin/hdl.var"     >> ncsim.args
62
echo "-INPUT ncsim.tcl"           >> ncsim.args
63
echo "-LOGFILE ../log/ncsim.log"  >> ncsim.args
64
echo "worklib.bench:rtl"          >> ncsim.args
65
 
66
if ( $output_waveform ) then
67
    echo "database -open waves -shm -into ../out/waves.shm"             > ./ncsim.tcl
68
    echo "probe -create -database waves $SIM_TOP -shm -all -depth all" >> ./ncsim.tcl
69
    echo "run"                                                         >> ./ncsim.tcl
70
else
71
    echo "run"  > ./ncsim.tcl
72
endif
73
 
74
echo "quit" >> ncsim.tcl
75
 
76
ncsim -LICQUEUE -f ./ncsim.args

powered by: WebSVN 2.1.0

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