nc_verilog_runtest.gccsparcOS5
1.06 KB
#!/bin/csh
rm -rf ../Sim
mkdir -p ../Sim
cd ../Sim
rm -rf ./Config/*.*
rm -rf ./Results/*.*
rm -rf work
mkdir -p Results
mkdir -p Config
mkdir -p worklib
cp ../software/bfm/co_simulation/tests/vusb/lib-gccsparcOS5/*.so .
cp ../software/bfm/co_simulation/tests/vusb/lib-gccsparcOS5/libstd* .
mv SimSocketNCVerilog.so libvpi.so
cp ../scripts/nc_verilog/*.lib .
cp ../scripts/nc_verilog/*.var .
cp ../scripts/nc_verilog/*.tcl .
cp ../verilog/vusb_cfg.v .
ncvlog ../verilog/vusb_ratematch.v ../verilog/vusb_dpllnrzi.v ../verilog/vusb_sie.v ../verilog/vusb_fifo.v ../verilog/vusb_up_int_bvci.v ../verilog/vusb_bvci.v
ncvlog ../verilog/vusb_p11.v ../verilog/vusb_bias.v ../verilog/vusb_host_ctl.v ../verilog/vusb_otg_lpbck.v ../verilog/vusb_tst.v ../verilog/pvic_connection_interface.v ../verilog/vusb_tb_clk_gen.v ../verilog/vusb_bvci_tb.v
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:./
ncelab -messages -ACCWARN -LIBNAME work_lib work_lib.vusb_bvci_tb -SNAPSHOT work_lib.work_lib:work_lib -access +RWC -expand
ncsim -messages -gui -ACCWARN work_lib.work_lib:work_lib -i script.tcl