bcp_ui_sec.tst
2.84 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//****************************************************************************
//
// File: bcp_ui.tst
// Test file for USB Interface (AI)
//
// File Format:
//
// t <id> <arg1> <arg2> <arg3> <arg4> - Run test id with the 4 args
// where id = decimal number
// argX = hex number
// q - Quit testing and shutdown verilog
// server
//
//****************************************************************************
//****************************************************************************
// Configure DDR
//
//t 0200 00000000 00000000 00000000 00000000
k 1
// Write Data into SRAM and reg
t 0102 04980000 12345678 00000000 00000001
t 0101 04980000 12345678 00000000 00000001
t 0102 0490009c 000000e8 00000000 00000001
t 0101 0490009c 000000e8 00000000 00000001
t 0102 04a80000 12345678 00000000 00000001
t 0101 04a80000 12345678 00000000 00000001
t 0102 04a0009c 00000065 00000000 00000001
t 0101 04a0009c 00000065 00000000 00000001
// Try to turn on security bit in insecurity mode
t 0102 04940010 00000001 00000000 00000000
t 0102 04a40010 00000001 00000000 00000000
t 0102 04980000 12345678 00000000 00000001
t 0101 04980000 12345678 00000000 00000001
t 0102 0490009c 000000e8 00000000 00000001
t 0101 0490009c 000000e8 00000000 00000001
t 0102 04a80000 12345678 00000000 00000001
t 0101 04a80000 12345678 00000000 00000001
t 0102 04a0009c 00000065 00000000 00000001
t 0101 04a0009c 00000065 00000000 00000001
// Enter the security mode
t 0100 04300014 00000000 00000000 00000000
t 0100 1fc00000 00000000 00000000 00000000
t 0102 04940010 00000001 00000000 00000000
t 0102 04a40010 00000001 00000000 00000000
// Now do it again
t 0102 04980000 12345678 00000000 00000000
t 0101 04980000 12345678 00000000 00000000
t 0102 0490009c 00000043 00000000 00000000
t 0101 0490009c 00000043 00000000 00000000
t 0102 04a80000 12345678 00000000 00000000
t 0101 04a80000 12345678 00000000 00000000
t 0102 04a0009c 00000012 00000000 00000000
t 0101 04a0009c 00000012 00000000 00000000
// Leave security mode
t 0110 04300014 04300014 00000042 00000000
t 0102 04980000 12345678 00000000 00000000
t 0101 04980000 12345678 00000000 00000000
t 0102 0490009c 000000e8 00000000 00000000
t 0101 0490009c 000000e8 00000000 00000000
t 0102 04a80000 12345678 00000000 00000000
t 0101 04a80000 12345678 00000000 00000000
t 0102 04a0009c 000000e8 00000000 00000000
t 0101 04a0009c 000000e8 00000000 00000000
// Turn off security bit
t 0102 04940010 00000000 00000000 00000000
t 0102 04a40010 00000000 00000000 00000000
t 0102 04980000 12345678 00000000 00000001
t 0101 04980000 12345678 00000000 00000001
t 0102 0490009c 000000e8 00000000 00000001
t 0101 0490009c 000000e8 00000000 00000001
t 0102 04a80000 12345678 00000000 00000001
t 0101 04a80000 12345678 00000000 00000001
t 0102 04a0009c 000000e8 00000000 00000001
t 0101 04a0009c 000000e8 00000000 00000001
k 0
//q