atspeed_pi_toshiba
1.46 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
#!/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 +define+TOSHIBA_64MB +CM+ALL+LIBS"
make sim.cpu.ipc
cp ${ROOT}/PR/cpusim/pi/flatb.fl External_File.txt
cp ${ROOT}/PR/lib/bbboot/final/rom.hex final_rom
./sim.cpu.ipc +CM+NAME=pi1 +sysclk=10400 +vclk=20800 +delay_mode_zero +cbus_mon +cpu_mon +non_clk_mon +brom=final_rom $DUMPOPTS >log 2>&1 &
cd ${ROOT}/PR/cpusim/mi
export CPU_625=1
export TOSHIBA_FLASH=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
###### 1st PI test ######
./test_vector -t PI -q -S 10208 -0 ${ROOT}/PR/cpusim/mi/atspeed_ddr.dat -1 ${ROOT}/PR/cpusim/mi/atspeed_comp.dat
###### 2nd PI test ######
#### Waiting for enough time(2.5min) for previous test done
sleep 150
cd ${ROOT}/PR/hw2/chip/vsim
/ecad/vcs/virsimdir/bin/vcd2vpd verilog.dump atspeed_pi_toshiba.vpd
./sim.cpu.ipc +CM+NAME=pi2 +sysclk=10400 +vclk=20800 +delay_mode_zero +cbus_mon +cpu_mon +non_clk_mon +brom=final_rom $DUMPOPTS >>log 2>&1 &
cd ${ROOT}/PR/iosim/src/jtag_test
./test_vector -t P2 -q -S 10208 -0 ${ROOT}/PR/cpusim/mi/atspeed_ddr.dat -1 ${ROOT}/PR/cpusim/mi/atspeed_comp.dat
cd ${ROOT}/PR/hw2/chip/vsim
/ecad/vcs/virsimdir/bin/vcd2vpd verilog.dump atspeed_pi2_toshiba.vpd