bcp_dv_setup.html 5.85 KB
<!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)&nbsp;&nbsp;&nbsp; Please vcs tools first
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The document
of instruction can be found at:&nbsp;&nbsp; http://elk/bb
<p>(1) setup enviroment variable
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In bash(use setenv
in csh)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; export ROOT=(Your
treee start point)/rf/sw/&lt; your-root-dir-name>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; export WORKAREA=(Your
treee start point)/rf/sw/&lt; your-root-dir-name> /PR
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ln -sf /usr/bin/perl
/usr/sbin/perl
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ln -sf "Your perl
lib dir" /usr/lib/perl
<p>(2)&nbsp;&nbsp;&nbsp;&nbsp; Goto rf/sw
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./mklinks&nbsp;&nbsp;&nbsp;
bcp
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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)&nbsp; Setup MIPS linux development
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto rf/sw/devroot/linux
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; su
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make&nbsp; install_root
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make install
<p>(4)&nbsp; Create all header files
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto $ROOT/PR
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make headers
<p>(5) Build sim.ipc (verilog simulator with socket PLI)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto $ROOT/PR/lib/libbcppli
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (above two lines builds
pli socket library)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto $ROOT/PR/hw2/chip/vsim
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make sim.ipc
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (above two line builds sim.ipc,
note hw2 is symbolic link to your real hw dir)
<p>(6) Build iosim
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto $ROOT/PR/iosim/src
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make
<p>* * * *&nbsp; Please make sure that ROOT is setup correctly, before
you install the following tools * * * *
<p>(7) Build other tools
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; General tools
<br>&nbsp;&nbsp;&nbsp;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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make install
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; component
level vi test also needs pli lib
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Goto $ROOT/PR/rdpsim/pli
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make intall
<p>&nbsp;(8) To run all test, please refer to all rf/sw/PR/tests/nightly
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please note, not all
tests passed now.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp; VI iorand
will failed for sure.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; DP test
att014, ms014, tex039 might failed
<p>&nbsp;(9) If you want to run iosim manually(it can be run on two different
machine/console/process),&nbsp; setup environment variable first,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; export IOSIM_SERVER="ip
of your&nbsp; machine runing sim.ipc"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; export IOSIM_PORT="port
number"
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; run sim.ipc with parameters
which you desired like: +ri_mon +cbus_mon +dump_vi, etc
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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).&nbsp; 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>&nbsp;
</body>
</html>