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

Subversion Repositories can

[/] [can/] [trunk/] [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 159 igorm
#    echo "../../../rtl/can_strip_down/rtl/verilog/"$filename >> ncvlog.args
35 2 mohor
end
36
 
37 141 igorm
#foreach filename ( `cat ../bin/memory_file_list` )
38
#    echo "../../../bench/verilog/"$filename >> ncvlog.args
39
#end
40 48 mohor
 
41 2 mohor
foreach filename ( `cat ../bin/sim_file_list` )
42
    echo "../../../bench/verilog/"$filename >> ncvlog.args
43
end
44
 
45 141 igorm
#echo "../../../../bist/rtl/verilog/bist.v" >> ncvlog.args
46
#echo "../../../../bist/rtl/verilog/bist_dp_top.v" >> ncvlog.args
47
#echo "../../../../bist/rtl/verilog/bist_sp_top.v" >> ncvlog.args
48
#echo "../../../../bist/rtl/verilog/bist_tp_top.v" >> ncvlog.args
49 119 mohor
 
50 2 mohor
ncvlog -f ncvlog.args
51
 
52
echo "-MESSAGES"                             > ncelab.args
53
echo "-NOCOPYRIGHT"                         >> ncelab.args
54
echo "-CDSLIB ../bin/cds.lib"               >> ncelab.args
55
echo "-HDLVAR ../bin/hdl.var"               >> ncelab.args
56
echo "-LOGFILE ../log/ncelab.log"           >> ncelab.args
57
echo "-SNAPSHOT worklib.bench:rtl"          >> ncelab.args
58
echo "-NO_TCHK_MSG"                         >> ncelab.args
59
echo "-ACCESS +RWC"                         >> ncelab.args
60
echo worklib.$SIM_TOP                       >> ncelab.args
61
 
62
ncelab -f ncelab.args
63
 
64
echo "-MESSAGES"                   > ncsim.args
65
echo "-NOCOPYRIGHT"               >> ncsim.args
66
echo "-CDSLIB ../bin/cds.lib"     >> ncsim.args
67
echo "-HDLVAR ../bin/hdl.var"     >> ncsim.args
68
echo "-INPUT ncsim.tcl"           >> ncsim.args
69
echo "-LOGFILE ../log/ncsim.log"  >> ncsim.args
70
echo "worklib.bench:rtl"          >> ncsim.args
71
 
72
if ( $output_waveform ) then
73
    echo "database -open waves -shm -into ../out/waves.shm"             > ./ncsim.tcl
74
    echo "probe -create -database waves $SIM_TOP -shm -all -depth all" >> ./ncsim.tcl
75
    echo "run"                                                         >> ./ncsim.tcl
76
else
77
    echo "run"  > ./ncsim.tcl
78
endif
79
 
80
echo "quit" >> ncsim.tcl
81
 
82
ncsim -LICQUEUE -f ./ncsim.args

powered by: WebSVN 2.1.0

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