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

Subversion Repositories ps2

[/] [ps2/] [tags/] [rel_2/] [sim/] [rtl_sim/] [run/] [run_ps2_sim.scr] - Blame information for rev 51

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mihad
#!/bin/csh -f
2
 
3
#//////////////////////////////////////////////////////////////////////
4
#////                                                              ////
5
#////  run_ps2_sim.scr                                             ////
6
#////                                                              ////
7
#////  This file is part of the "ps2" project                      ////
8
#////  http://www.opencores.org/cores/ps2/                         ////
9
#////                                                              ////
10
#////  Author(s):                                                  ////
11
#////      - mihad@opencores.org                                   ////
12
#////      - Miha Dolenc                                           ////
13
#////                                                              ////
14
#////  All additional information is avaliable in the README.txt   ////
15
#////  file.                                                       ////
16
#////                                                              ////
17
#////                                                              ////
18
#//////////////////////////////////////////////////////////////////////
19
#////                                                              ////
20
#//// Copyright (C) 2000 Miha Dolenc, mihad@opencores.org          ////
21
#////                                                              ////
22
#//// This source file may be used and distributed without         ////
23
#//// restriction provided that this copyright statement is not    ////
24
#//// removed from the file and that any derivative work contains  ////
25
#//// the original copyright notice and the associated disclaimer. ////
26
#////                                                              ////
27
#//// This source file is free software; you can redistribute it   ////
28
#//// and/or modify it under the terms of the GNU Lesser General   ////
29
#//// Public License as published by the Free Software Foundation; ////
30
#//// either version 2.1 of the License, or (at your option) any   ////
31
#//// later version.                                               ////
32
#////                                                              ////
33
#//// This source is distributed in the hope that it will be       ////
34
#//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
35
#//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
36
#//// PURPOSE.  See the GNU Lesser General Public License for more ////
37
#//// details.                                                     ////
38
#////                                                              ////
39
#//// You should have received a copy of the GNU Lesser General    ////
40
#//// Public License along with this source; if not, download it   ////
41
#//// from http://www.opencores.org/lgpl.shtml                     ////
42
#////                                                              ////
43
#//////////////////////////////////////////////////////////////////////
44
#//
45
#// CVS Revision History
46
#//
47
#// $Log: not supported by cvs2svn $
48 13 mihad
#// Revision 1.2  2002/02/20 15:20:11  mihad
49
#// Little/big endian changes incorporated
50
#//
51 6 mihad
#// Revision 1.1.1.1  2002/02/18 16:16:55  mihad
52
#// Initial project import - working
53 2 mihad
#//
54 6 mihad
#//
55 2 mihad
 
56
echo "-MESSAGES" > ./ncvlog.args
57
echo "-NOCOPYRIGHT" >> ./ncvlog.args
58
echo "-CDSLIB ../bin/cds.lib" >> ./ncvlog.args
59
echo "-HDLVAR ../bin/hdl.var" >> ./ncvlog.args
60
echo "-INCDIR ../../../bench/verilog" >> ./ncvlog.args
61
echo "-INCDIR ../../../rtl/verilog" >> ./ncvlog.args
62
echo '-DEFINE "PS2_NUM_OF_NORMAL_SCANCODES 85"' >> ./ncvlog.args
63
echo '-DEFINE "PS2_NUM_OF_EXTENDED_SCANCODES 38"' >> ./ncvlog.args
64 6 mihad
echo '-DEFINE "SIM"' >> ./ncvlog.args
65 2 mihad
 
66 13 mihad
set current_par = 0
67
set output_waveform = 0
68
set xilinx = 0
69
while ( $current_par < $# )
70
    @ current_par = $current_par + 1
71
    switch ( $argv[$current_par] )
72
    case xilinx:
73
        echo '-DEFINE "XILINX"' >> ./ncvlog.args
74
        @ xilinx = 1
75
        breaksw
76
    case wave:
77
        @ output_waveform = 1
78
        breaksw
79
    default:
80
        echo 'Unknown option "'$argv[$current_par]'"!'
81
        exit
82
        breaksw
83
    endsw
84
end
85 2 mihad
 
86
echo "-LOGFILE ../log/ncvlog.log" >> ./ncvlog.args
87
 
88
foreach filename ( `cat ../bin/rtl_file_list` )
89
    echo "../../../rtl/verilog/"$filename >> ./ncvlog.args
90
end
91
 
92
foreach filename ( `cat ../bin/sim_file_list` )
93
    echo "../../../bench/verilog/"$filename >> ./ncvlog.args
94
end
95
 
96 13 mihad
if ( $xilinx ) then
97
    foreach filename ( `cat ../bin/xilinx_file_list` )
98
        echo "../../../../xilinx_blocks/"$filename >> ./ncvlog.args
99
    end
100 2 mihad
endif
101
 
102
ncvlog -f ./ncvlog.args
103
 
104
echo "-MESSAGES" > ./ncelab.args
105
echo "-NOCOPYRIGHT" >> ./ncelab.args
106
echo "-CDSLIB ../bin/cds.lib" >> ./ncelab.args
107
echo "-HDLVAR ../bin/hdl.var" >> ./ncelab.args
108
echo "-LOGFILE ../log/ncelab.log" >> ./ncelab.args
109
echo "-SNAPSHOT worklib.ps2_test_bench:rtl" >> ./ncelab.args
110
echo "-ACCESS +RWC" >> ./ncelab.args
111
echo "worklib.ps2_test_bench" >> ./ncelab.args
112
 
113 13 mihad
if ( $xilinx ) then
114
    echo "worklib.glbl" >> ./ncelab.args
115 2 mihad
endif
116
 
117
ncelab -f ./ncelab.args
118
 
119
echo "-MESSAGES" > ./ncsim.args
120
echo "-NOCOPYRIGHT" >> ./ncsim.args
121
echo "-CDSLIB ../bin/cds.lib"  >> ./ncsim.args
122
echo "-HDLVAR ../bin/hdl.var"  >> ./ncsim.args
123
echo "-INPUT ./ncsim.tcl" >> ./ncsim.args
124
echo "-LOGFILE ../log/ncsim.log" >> ./ncsim.args
125
echo "worklib.ps2_test_bench:rtl" >> ./ncsim.args
126
 
127 13 mihad
if ( $output_waveform ) then
128
    echo "database -open waves -shm -into ../out/waves.shm" > ./ncsim.tcl
129
    echo "probe -create -database waves ps2_test_bench -shm -all -depth all" >> ./ncsim.tcl
130
    echo "run"  >> ./ncsim.tcl
131
else
132
    echo "run"  > ./ncsim.tcl
133
endif
134
 
135 2 mihad
echo "quit" >> ./ncsim.tcl
136
 
137
ncsim -f ./ncsim.args

powered by: WebSVN 2.1.0

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