bcp_dv_setup.html
5.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.78 [en] (X11; U; Linux 2.4.7-10 i686) [Netscape]">
</head>
<body>
<center>How to setup BCP DV environmnet</center>
<p>(0) Please vcs tools first
<br> The document
of instruction can be found at: http://elk/bb
<p>(1) setup enviroment variable
<br> In bash(use setenv
in csh)
<br> export ROOT=(Your
treee start point)/rf/sw/< your-root-dir-name>
<br> export WORKAREA=(Your
treee start point)/rf/sw/< your-root-dir-name> /PR
<br> ln -sf /usr/bin/perl
/usr/sbin/perl
<br> ln -sf "Your perl
lib dir" /usr/lib/perl
<p>(2) Goto rf/sw
<br> ./mklinks
bcp
<br> to make similar
file directory(structure) of old SGI PR tree. If you want to try something
on the old RCP chip, call "./mklinks rcp"
<p>(3) Setup MIPS linux development
<br> goto rf/sw/devroot/linux
<br> su
<br> make install_root
<br> exit
<br> make install
<p>(4) Create all header files
<br> goto $ROOT/PR
<br> make headers
<p>(5) Build sim.ipc (verilog simulator with socket PLI)
<br> goto $ROOT/PR/lib/libbcppli
<br> make
<br> (above two lines builds
pli socket library)
<br> goto $ROOT/PR/hw2/chip/vsim
<br> make sim.ipc
<br> (above two line builds sim.ipc,
note hw2 is symbolic link to your real hw dir)
<p>(6) Build iosim
<br> goto $ROOT/PR/iosim/src
<br> make
<p>* * * * Please make sure that ROOT is setup correctly, before
you install the following tools * * * *
<p>(7) Build other tools
<br> General tools
<br>
Goto $ROOT/PR/tools/data
<br>
make install
<p> rsp asmbler compile
tools:
<br>
Goto $ROOT/PR/rspasm1201
<br>
make
<br>
make install
<p> rdp tools
<br>
Goto $ROOT/PR/rdpsim/tools
<br>
make
<br>
make install
<p>
Goto $ROOT/PR/rdpsim/backend
<br>
make
<br>
make install
<p> component
level vi test also needs pli lib
<br>
Goto $ROOT/PR/rdpsim/pli
<br>
make
<br>
make intall
<p> (8) To run all test, please refer to all rf/sw/PR/tests/nightly
<br> Please note, not all
tests passed now.
<br> * VI iorand
will failed for sure.
<br> * DP test
att014, ms014, tex039 might failed
<p> (9) If you want to run iosim manually(it can be run on two different
machine/console/process), setup environment variable first,
<br> export IOSIM_SERVER="ip
of your machine runing sim.ipc"
<br> export IOSIM_PORT="port
number"
<p> run sim.ipc with parameters
which you desired like: +ri_mon +cbus_mon +dump_vi, etc
<br> run iosim with -f
"the name of test file", you can find examples under rf/sw/PR/iosim/test.
There are two special test files under that directory: bcp_init.tst and
bcp_quit. Basically, we create those two tests to make all test runing
against one simulator(sim.ipc). The former one have DDR initialization,
the later one will have "q" command to let sim.ipc stop. If you only try
to run a single test, you might put the contents of those two file at beginning
and end of one test file to make life easier.
<br>
</body>
</html>