-
Notifications
You must be signed in to change notification settings - Fork 1
/
testscript.sh
58 lines (42 loc) · 1.36 KB
/
testscript.sh
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
#!/bin/bash
set -x
monitor 0X40000000
#Configur
monitor 0x40000004 0 # #STOP
monitor 0x40000008 1 # #RESET Settings
monitor 0x40000010 0xFFFF # #RESET PATTERN
monitor 0x40000020 3 # #LOGLEVEL FULL
#Configur sequence 1
monitor 0x40010000 1 ##Enable
monitor 0x40010020 1000000000 ##Rerun after 1s
monitor 0x40010024 100 ##Length 100ns
for i in {1..100}
do
monitor 0x40010030 $i #Outputpattern
monitor 0x40010034 $(($i * 1)) #Output time
monitor 0x40010038 0x00000001 ##transfer
done
monitor 0x40010100 0x00000004 ##ld mode
monitor 0x40010110 0x00000000 ##ld I0 st
monitor 0x40010114 0x00000400 ##ld I0 et
monitor 0x40010118 0x00000020 ##ld I0 minc
monitor 0x4001011C 0x00000100 ##ld I0 maxc
monitor 0x40010120 0x00000040 ##ld I1 st
monitor 0x40010124 0x00000400 ##ld I1 et
monitor 0x40010128 0x00000000 ##ld I1 minc
monitor 0x4001012C 0x00000100 ##ld I1 maxc
#Configur sequence 2
monitor 0x40011000 1 ##Enable
monitor 0x40011020 100000000 ##Rerun after 0.1s
monitor 0x40011024 100 ##Length 100ns
for i in {1..100}
do
monitor 0x40011030 $i #Outputpattern
monitor 0x40011034 $(($i * 1)) #Output time
monitor 0x40011038 0x00000001 ##transfer
done
monitor 0x40011100 0x00000000 ##ld mode
monitor 0x40000004 1 ##START
sleep 10s
monitor 0x40000004 0 ##STOP
exit