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

Subversion Repositories ps2

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

Go to most recent revision | 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 6 mihad
#// Revision 1.1.1.1  2002/02/18 16:16:55  mihad
49
#// Initial project import - working
50 2 mihad
#//
51 6 mihad
#//
52 2 mihad
 
53
echo "-MESSAGES" > ./ncvlog.args
54
echo "-NOCOPYRIGHT" >> ./ncvlog.args
55
echo "-CDSLIB ../bin/cds.lib" >> ./ncvlog.args
56
echo "-HDLVAR ../bin/hdl.var" >> ./ncvlog.args
57
echo "-INCDIR ../../../bench/verilog" >> ./ncvlog.args
58
echo "-INCDIR ../../../rtl/verilog" >> ./ncvlog.args
59
echo '-DEFINE "PS2_NUM_OF_NORMAL_SCANCODES 85"' >> ./ncvlog.args
60
echo '-DEFINE "PS2_NUM_OF_EXTENDED_SCANCODES 38"' >> ./ncvlog.args
61 6 mihad
echo '-DEFINE "SIM"' >> ./ncvlog.args
62 2 mihad
 
63
if ( $# > 0 ) then
64
    if ( $# == 1 ) then
65
        switch ( $1 )
66
            case xilinx:
67
                echo '-DEFINE "XILINX"' >> ./ncvlog.args
68
            breaksw
69
 
70
            default:
71
                echo 'Unknown option "'$1'"!'
72
                exit
73
            breaksw
74
        endsw
75
    else
76
        echo "Wrong number of arguments" ; exit
77
    endif
78
endif
79
 
80
echo "-LOGFILE ../log/ncvlog.log" >> ./ncvlog.args
81
 
82
foreach filename ( `cat ../bin/rtl_file_list` )
83
    echo "../../../rtl/verilog/"$filename >> ./ncvlog.args
84
end
85
 
86
foreach filename ( `cat ../bin/sim_file_list` )
87
    echo "../../../bench/verilog/"$filename >> ./ncvlog.args
88
end
89
 
90
if ( $# > 0 ) then
91
    switch( $1 )
92
        case xilinx:
93
            foreach filename ( `cat ../bin/xilinx_file_list` )
94
                echo "../../../../xilinx_blocks/"$filename >> ./ncvlog.args
95
            end
96
            breaksw
97
    endsw
98
endif
99
 
100
ncvlog -f ./ncvlog.args
101
 
102
echo "-MESSAGES" > ./ncelab.args
103
echo "-NOCOPYRIGHT" >> ./ncelab.args
104
echo "-CDSLIB ../bin/cds.lib" >> ./ncelab.args
105
echo "-HDLVAR ../bin/hdl.var" >> ./ncelab.args
106
echo "-LOGFILE ../log/ncelab.log" >> ./ncelab.args
107
echo "-SNAPSHOT worklib.ps2_test_bench:rtl" >> ./ncelab.args
108
echo "-ACCESS +RWC" >> ./ncelab.args
109
echo "worklib.ps2_test_bench" >> ./ncelab.args
110
 
111
if ( $# > 0 ) then
112
    switch ( $1 )
113
        case xilinx:
114
            echo "worklib.glbl" >> ./ncelab.args
115
        breaksw
116
    endsw
117
endif
118
 
119
ncelab -f ./ncelab.args
120
 
121
echo "-MESSAGES" > ./ncsim.args
122
echo "-NOCOPYRIGHT" >> ./ncsim.args
123
echo "-CDSLIB ../bin/cds.lib"  >> ./ncsim.args
124
echo "-HDLVAR ../bin/hdl.var"  >> ./ncsim.args
125
echo "-INPUT ./ncsim.tcl" >> ./ncsim.args
126
echo "-LOGFILE ../log/ncsim.log" >> ./ncsim.args
127
echo "worklib.ps2_test_bench:rtl" >> ./ncsim.args
128
 
129
echo "database -open waves -shm -into ../out/waves.shm" > ./ncsim.tcl
130
echo "probe -create -database waves ps2_test_bench -shm -all -depth all" >> ./ncsim.tcl
131
echo "run"  >> ./ncsim.tcl
132
echo "quit" >> ./ncsim.tcl
133
 
134
ncsim -f ./ncsim.args

powered by: WebSVN 2.1.0

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