-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_HEN_9_3_16.py
58 lines (47 loc) · 1.38 KB
/
Test_HEN_9_3_16.py
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
53
54
55
56
57
##########################
#Script identification Main Script
##########################
#Author : HEN LANGE
#Start Date : 13-3-2016
#Script change By : xxxx
#######################################################################################
execfile ("G:\Chip_Validation\Python\Hen\infrastructure\init.py")
#################
# Main Start He
#################
# configure the correct com and baud rate :: default, COM = 6 and baudrate 3000000
SerialConfig_1 (COM ,BAUD_RATE)
# connect and sync to the D6
Open_log(Log_Name)
Sync ()
checkSum()
reset
Sync ()
checkSum()
#read_apb_reg ("0300004c")
#time.sleep(1)
#clear_bit("0300004c", "000f")
#time.sleep(1)
#read_apb_reg ("0300004c")
#set_bit("0300004c", "0001")
#read_apb_reg ("0300004c")
#def reset ():
# GPIO.output(Reset_GPIO,False)
# time.sleep(0.1)
# GPIO.output(Reset_GPIO,True)
# time.sleep(0.1)
#read_apb_reg(addr)
#write_apb_reg(addr,value)
#clear_bit(addr,bit_no)
#set_bit(addr,bit_no)
#MEM_BIST(test_name,write_val,status_reg,result_val):
#reset ()
#MEM_BIST("PRAM012","103c0","030000D4","3c0")
#MEM_BIST("PRAM34","e0080","030000D4","3f")
#MEM_BIST("DTCM2","2010","030000D0","1e00")
#MEM_BIST("DTCM1","1008","030000D0","1e0")
#MEM_BIST("DTCM0","804","030000D0","1e")
#MEM_BIST("PTCM","c020","030000D0","1fe000")
#MEM_BIST("CACHE","10040","030000D4","fc00")
#MEM_BIST("HWVAD","201","030000D0","0001")
MEM_BIST("ROM","402","0","0")