nec_iram_test
1.09 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
#!/bin/sh -x
if [ "$#" != "2" ]; then
echo "Usage: nec_iram_test march/check(0/1) pattern(0/1)"
exit
fi
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"
make sim.cpu.ipc
cp ${ROOT}/PR/lib/bbboot/final/rom.hex final_rom
#### 5MHz ####
./sim.cpu.ipc +sysclk=200000 +usbclk=400000 +vclk=400000 +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 NO_DDR_TEST=1
export NEC_IRAM_TEST=1
if [ "$1" = "0" ]; then
export NEC_IRAM_MARCH=1
fi
if [ "$2" = "0" ]; then
export PATTERN_0=1
fi
export PLL_BYPASS=1
make clean
make
cd ${ROOT}/PR/iosim/src/
make
cd ${ROOT}/PR/iosim/src/jtag_test
export CPU_AT_5MHZ=1
export JTAG_CLK_FAST=1
export POLLING_RETURN=1
rm test_vector
make clean
make test_vector
./test_vector -t A -q -S 10208 -b -0 ${ROOT}/PR/cpusim/mi/atspeed_ddr.dat -1 ${ROOT}/PR/cpusim/mi/atspeed_sram.dat > log