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

Subversion Repositories ps2

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 42 to Rev 43
    Reverse comparison

Rev 42 → Rev 43

/trunk/sim/rtl_sim/log/ncelab.log
1,4 → 1,4
TOOL: ncelab 04.10-b001: Started on Nov 30, 2003 at 12:53:31
TOOL: ncelab 04.10-b001: Started on Dec 01, 2003 at 15:50:29
ncelab
-f ncelab.args
-MESSAGES
53,4 → 53,4
Pseudo assignments: 5 59
Simulation timescale: 1ps
Writing initial simulation snapshot: worklib.ps2_test_bench:rtl
TOOL: ncelab 04.10-b001: Exiting on Nov 30, 2003 at 12:53:33 (total: 00:00:02)
TOOL: ncelab 04.10-b001: Exiting on Dec 01, 2003 at 15:50:32 (total: 00:00:03)
/trunk/sim/rtl_sim/log/ncvlog.log
1,4 → 1,4
TOOL: ncvlog 04.10-b001: Started on Nov 30, 2003 at 12:53:30
TOOL: ncvlog 04.10-b001: Started on Dec 01, 2003 at 15:50:28
ncvlog
-f ncvlog.args
-CDSLIB ../bin/cds.lib
56,4 → 56,4
file: ../../../bench/verilog/ps2_sim_top.v
module worklib.ps2_sim_top:v
errors: 0, warnings: 0
TOOL: ncvlog 04.10-b001: Exiting on Nov 30, 2003 at 12:53:30 (total: 00:00:00)
TOOL: ncvlog 04.10-b001: Exiting on Dec 01, 2003 at 15:50:29 (total: 00:00:01)
/trunk/sim/rtl_sim/log/ncsim.log
1,4 → 1,4
TOOL: ncsim 04.10-b001: Started on Nov 30, 2003 at 12:53:34
TOOL: ncsim 04.10-b001: Started on Dec 01, 2003 at 15:50:33
ncsim
-LICQUEUE
-f ./ncsim.args
24,4 → 24,4
exit (00000000)
/projects/highland/gorand/tmp/ps2/bench/verilog/ps2_test_bench.v:289 $finish(0);
ncsim> quit
TOOL: ncsim 04.10-b001: Exiting on Nov 30, 2003 at 13:02:41 (total: 00:09:07)
TOOL: ncsim 04.10-b001: Exiting on Dec 01, 2003 at 15:58:05 (total: 00:07:32)
/trunk/sim/rtl_sim/run/run_sim_ps2
0,0 → 1,99
#!/bin/csh -f
 
set current_par = 0
set output_waveform = 0
while ( $current_par < $# )
@ current_par = $current_par + 1
case wave:
@ output_waveform = 1
breaksw
default:
echo 'Unknown option "'$argv[$current_par]'"!'
exit
breaksw
endsw
end
 
echo "-CDSLIB ../bin/cds.lib" > ncvlog.args
echo "-HDLVAR ../bin/hdl.var" >> ncvlog.args
echo "-MESSAGES" >> ncvlog.args
echo "-INCDIR ../../../bench/verilog" >> ncvlog.args
echo "-INCDIR ../../../rtl/verilog" >> ncvlog.args
echo "-NOCOPYRIGHT" >> ncvlog.args
echo "-LOGFILE ../log/ncvlog.log" >> ncvlog.args
echo '-DEFINE "PS2_NUM_OF_NORMAL_SCANCODES 85"' >> ./ncvlog.args
echo '-DEFINE "PS2_NUM_OF_EXTENDED_SCANCODES 38"' >> ./ncvlog.args
echo '-DEFINE "SIM"' >> ./ncvlog.args
 
 
foreach filename ( `cat ../bin/rtl_file_list` )
echo "../../../rtl/verilog/"$filename >> ncvlog.args
end
 
foreach filename ( `cat ../bin/sim_file_list` )
echo "../../../bench/verilog/"$filename >> ncvlog.args
end
 
ncvlog -f ncvlog.args
 
echo "-MESSAGES" > ncelab.args
echo "-NOCOPYRIGHT" >> ncelab.args
echo "-CDSLIB ../bin/cds.lib" >> ncelab.args
echo "-HDLVAR ../bin/hdl.var" >> ncelab.args
echo "-LOGFILE ../log/ncelab.log" >> ncelab.args
echo "-TIMESCALE 1ns/100ps" >> ncelab.args
echo "-SNAPSHOT worklib.ps2_test_bench:rtl" >> ncelab.args
echo "-NO_TCHK_MSG" >> ncelab.args
echo "-ACCESS +RWC" >> ncelab.args
echo "worklib.ps2_test_bench" >> ncelab.args
 
ncelab -f ncelab.args
 
echo "-MESSAGES" > ncsim.args
echo "-NOCOPYRIGHT" >> ncsim.args
echo "-CDSLIB ../bin/cds.lib" >> ncsim.args
echo "-HDLVAR ../bin/hdl.var" >> ncsim.args
echo "-INPUT ncsim.tcl" >> ncsim.args
echo "-LOGFILE ../log/ncsim.log" >> ncsim.args
echo "worklib.ps2_test_bench:rtl" >> ncsim.args
 
if ( $output_waveform ) then
echo "database -open waves -shm -into ../out/waves.shm" > ./ncsim.tcl
echo "probe -create -database waves ps2_test_bench -shm -all -depth all" >> ./ncsim.tcl
echo "run" >> ./ncsim.tcl
else
echo "run" > ./ncsim.tcl
endif
 
echo "quit" >> ncsim.tcl
 
ncsim -LICQUEUE -f ./ncsim.args
 
set exit_line_nb = `sed -n '/exit/=' < ../log/ncsim.log`
 
#echo "$exit_line_nb"
 
set dead_line_nb = 0
 
if ( $exit_line_nb ) then
 
@ dead_line_nb = $exit_line_nb - 1
set exit_line=`sed -n $exit_line_nb's/exit/&/gp' < ../log/ncsim.log`
set dead_line=`sed -n $dead_line_nb's/report/&/gp' < ../log/ncsim.log`
 
echo "$dead_line"
echo "$exit_line"
 
echo "TEST: ps2"
if ( "$dead_line" == "report (deaddead)" ) then
if ( "$exit_line" == "exit (00000000)" ) then
echo "STATUS: passed" #|tee -a ../log/run_sim.log 2>&1
else
echo "STATUS: failed" #|tee -a ../log/run_sim.log 2>&1
endif
else
echo "STATUS: failed"
endif
 
endif
 
trunk/sim/rtl_sim/run/run_sim_ps2 Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: trunk/sim/rtl_sim/run/run_sim =================================================================== --- trunk/sim/rtl_sim/run/run_sim (revision 42) +++ trunk/sim/rtl_sim/run/run_sim (revision 43) @@ -1,99 +1,2 @@ -#!/bin/csh -f - -set current_par = 0 -set output_waveform = 0 -while ( $current_par < $# ) - @ current_par = $current_par + 1 - case wave: - @ output_waveform = 1 - breaksw - default: - echo 'Unknown option "'$argv[$current_par]'"!' - exit - breaksw - endsw -end - -echo "-CDSLIB ../bin/cds.lib" > ncvlog.args -echo "-HDLVAR ../bin/hdl.var" >> ncvlog.args -echo "-MESSAGES" >> ncvlog.args -echo "-INCDIR ../../../bench/verilog" >> ncvlog.args -echo "-INCDIR ../../../rtl/verilog" >> ncvlog.args -echo "-NOCOPYRIGHT" >> ncvlog.args -echo "-LOGFILE ../log/ncvlog.log" >> ncvlog.args -echo '-DEFINE "PS2_NUM_OF_NORMAL_SCANCODES 85"' >> ./ncvlog.args -echo '-DEFINE "PS2_NUM_OF_EXTENDED_SCANCODES 38"' >> ./ncvlog.args -echo '-DEFINE "SIM"' >> ./ncvlog.args - - -foreach filename ( `cat ../bin/rtl_file_list` ) - echo "../../../rtl/verilog/"$filename >> ncvlog.args -end - -foreach filename ( `cat ../bin/sim_file_list` ) - echo "../../../bench/verilog/"$filename >> ncvlog.args -end - -ncvlog -f ncvlog.args - -echo "-MESSAGES" > ncelab.args -echo "-NOCOPYRIGHT" >> ncelab.args -echo "-CDSLIB ../bin/cds.lib" >> ncelab.args -echo "-HDLVAR ../bin/hdl.var" >> ncelab.args -echo "-LOGFILE ../log/ncelab.log" >> ncelab.args -echo "-TIMESCALE 1ns/100ps" >> ncelab.args -echo "-SNAPSHOT worklib.ps2_test_bench:rtl" >> ncelab.args -echo "-NO_TCHK_MSG" >> ncelab.args -echo "-ACCESS +RWC" >> ncelab.args -echo "worklib.ps2_test_bench" >> ncelab.args - -ncelab -f ncelab.args - -echo "-MESSAGES" > ncsim.args -echo "-NOCOPYRIGHT" >> ncsim.args -echo "-CDSLIB ../bin/cds.lib" >> ncsim.args -echo "-HDLVAR ../bin/hdl.var" >> ncsim.args -echo "-INPUT ncsim.tcl" >> ncsim.args -echo "-LOGFILE ../log/ncsim.log" >> ncsim.args -echo "worklib.ps2_test_bench:rtl" >> ncsim.args - -if ( $output_waveform ) then - echo "database -open waves -shm -into ../out/waves.shm" > ./ncsim.tcl - echo "probe -create -database waves ps2_test_bench -shm -all -depth all" >> ./ncsim.tcl - echo "run" >> ./ncsim.tcl -else - echo "run" > ./ncsim.tcl -endif - -echo "quit" >> ncsim.tcl - -ncsim -LICQUEUE -f ./ncsim.args - -set exit_line_nb = `sed -n '/exit/=' < ../log/ncsim.log` - -#echo "$exit_line_nb" - -set dead_line_nb = 0 - -if ( $exit_line_nb ) then - - @ dead_line_nb = $exit_line_nb - 1 - set exit_line=`sed -n $exit_line_nb's/exit/&/gp' < ../log/ncsim.log` - set dead_line=`sed -n $dead_line_nb's/report/&/gp' < ../log/ncsim.log` - - echo "$dead_line" - echo "$exit_line" - - echo "TEST: ps2" - if ( "$dead_line" == "report (deaddead)" ) then - if ( "$exit_line" == "exit (00000000)" ) then - echo "STATUS: passed" #|tee -a ../log/run_sim.log 2>&1 - else - echo "STATUS: failed" #|tee -a ../log/run_sim.log 2>&1 - endif - else - echo "STATUS: failed" - endif - -endif - +#!/bin/sh +./run_sim_ps2 ps2_test_bench

powered by: WebSVN 2.1.0

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