atspeed_rsp 1.04 KB
#!/bin/sh 

if [ "$ROOT" = "" ];  then
    echo "Please specified the ROOT "
    exit
fi

cd ${ROOT}/PR/hw2/chip/vsim
rm -f verilog.dump
rm -f dump.v 
cp -f dump.v.padio dump.v

make clean
export SIMDEFS="+nospecify +define+TEST_VECTORS +define+FLASH_BIG +CM+ALL+LIBS"
make sim.cpu.ipc
cp ${ROOT}/PR/lib/bbboot/final/rom.hex final_rom

./sim.cpu.ipc +CM +sysclk=10400 +delay_mode_zero  +cbus_mon +cpu_mon +non_clk_mon +brom=final_rom $DUMPOPTS >log 2>&1 &

####### Create RSP macro code
cd ${ROOT}/PR/hw2/chip/test_vector/tools
make
cd ..
tools/rspcode -a -c code -g ${ROOT}/PR/bbapps/bbgng/rsp/rspcode 
#od -An -tx1 -w4 code | tr -d " " > rspcode.dat
#rm code

cd ${ROOT}/PR/cpusim/mi
export CPU_625=1
export NO_DDR_TEST=1
make clean
make 

cd ${ROOT}/PR/iosim/src/jtag_test
export CPU_AT_5MHZ=1
export JTAG_CLK_FAST=1
rm test_vector
make clean
make test_vector

./test_vector -t SP -q -S 10208 -0 ${ROOT}/PR/cpusim/mi/atspeed_ddr.dat -1 ${ROOT}/PR/cpusim/mi/atspeed_comp.dat -2 ${ROOT}/PR/hw2/chip/test_vector/code 

rm -rf ${ROOT}/PR/hw2/chip/test_vector/code