-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedge_4_4.anml
175 lines (175 loc) · 8.25 KB
/
edge_4_4.anml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<macro-definition id="edge_4" name="edge_4" units="0.001">
<header>
<parameter-declarations>
<parameter parameter-name="%p1" default-value="[\x01]">
<description>First byte of v</description>
</parameter>
<parameter parameter-name="%p2" default-value="[\x02]">
<description>Second byte of v</description>
</parameter>
<parameter parameter-name="%p3" default-value="[\x03]">
<description>Third byte of v</description>
</parameter>
<parameter parameter-name="%p4" default-value="[\x04]">
<description>Fourth byte of v</description>
</parameter>
<parameter parameter-name="%p5" default-value="[\x05]">
<description>First byte of u1</description>
</parameter>
<parameter parameter-name="%p6" default-value="[\x06]">
<description>Second byte of u1</description>
</parameter>
<parameter parameter-name="%p7" default-value="[\x07]">
<description>Third byte of u1</description>
</parameter>
<parameter parameter-name="%p8" default-value="[\x08]">
<description>Fourth byte of u1</description>
</parameter>
<parameter parameter-name="%p9" default-value="[\x09]">
<description>First byte of u2</description>
</parameter>
<parameter parameter-name="%p10" default-value="[\x0a]">
<description>Second byte of u2</description>
</parameter>
<parameter parameter-name="%p11" default-value="[\x0b]">
<description>Third byte of u2</description>
</parameter>
<parameter parameter-name="%p12" default-value="[\x0c]">
<description>Fourth byte of u2</description>
</parameter>
<parameter parameter-name="%p13" default-value="[\x0d]">
<description>First byte of u3</description>
</parameter>
<parameter parameter-name="%p14" default-value="[\x0e]">
<description>Second byte of u3</description>
</parameter>
<parameter parameter-name="%p15" default-value="[\x0f]">
<description>Third byte of u3</description>
</parameter>
<parameter parameter-name="%p16" default-value="[\x10]">
<description>Fourth byte of u3</description>
</parameter>
<parameter parameter-name="%p17" default-value="[\x11]">
<description>First byte of u4</description>
</parameter>
<parameter parameter-name="%p18" default-value="[\x12]">
<description>Second byte of u4</description>
</parameter>
<parameter parameter-name="%p19" default-value="[\x13]">
<description>Third byte of u4</description>
</parameter>
<parameter parameter-name="%p20" default-value="[\x14]">
<description>Fourth byte of u4</description>
</parameter>
</parameter-declarations>
</header>
<body>
<state-transition-element id="s1" symbol-set="[\xff]" start="all-input">
<activate-on-match element="s2"/>
</state-transition-element>
<state-transition-element id="s2" symbol-set="[\xff]">
<activate-on-match element="s3"/>
</state-transition-element>
<state-transition-element id="s3" symbol-set="[\xff]">
<activate-on-match element="s4"/>
</state-transition-element>
<state-transition-element id="s4" symbol-set="[\xff]">
<activate-on-match element="s5"/>
<activate-on-match element="s8"/>
</state-transition-element>
<state-transition-element id="s5" symbol-set="[^\xff]" start="start-of-data">
<activate-on-match element="s6"/>
<activate-on-match element="s9"/>
</state-transition-element>
<state-transition-element id="s6" symbol-set="*">
<activate-on-match element="s7"/>
<activate-on-match element="s10"/>
</state-transition-element>
<state-transition-element id="s7" symbol-set="*">
<activate-on-match element="s11"/>
</state-transition-element>
<state-transition-element id="s8" symbol-set="%p1" start="start-of-data">
<activate-on-match element="s12"/>
</state-transition-element>
<state-transition-element id="s9" symbol-set="%p2">
<activate-on-match element="s13"/>
</state-transition-element>
<state-transition-element id="s10" symbol-set="%p3">
<activate-on-match element="s14"/>
</state-transition-element>
<state-transition-element id="s11" symbol-set="%p4">
<activate-on-match element="s5"/>
<activate-on-match element="s8"/>
<activate-on-match element="s15"/>
<activate-on-match element="s21"/>
<activate-on-match element="s25"/>
<activate-on-match element="s29"/>
</state-transition-element>
<state-transition-element id="s12" symbol-set="*">
<activate-on-match element="s13"/>
</state-transition-element>
<state-transition-element id="s13" symbol-set="*">
<activate-on-match element="s14"/>
</state-transition-element>
<state-transition-element id="s14" symbol-set="*">
<activate-on-match element="s5"/>
<activate-on-match element="s8"/>
<activate-on-match element="s15"/>
<activate-on-match element="s21"/>
<activate-on-match element="s25"/>
<activate-on-match element="s29"/>
</state-transition-element>
<state-transition-element id="s15" symbol-set="%p5">
<activate-on-match element="s17"/>
</state-transition-element>
<state-transition-element id="s17" symbol-set="%p6">
<activate-on-match element="s18"/>
</state-transition-element>
<state-transition-element id="s18" symbol-set="%p7">
<activate-on-match element="s19"/>
</state-transition-element>
<state-transition-element id="s19" symbol-set="%p8">
<activate-on-match element="s20"/>
</state-transition-element>
<state-transition-element id="s20" symbol-set="[\xff]">
<report-on-match/>
</state-transition-element>
<state-transition-element id="s21" symbol-set="%p9">
<activate-on-match element="s22"/>
</state-transition-element>
<state-transition-element id="s22" symbol-set="%p10">
<activate-on-match element="s23"/>
</state-transition-element>
<state-transition-element id="s23" symbol-set="%p11">
<activate-on-match element="s24"/>
</state-transition-element>
<state-transition-element id="s24" symbol-set="%p12">
<activate-on-match element="s20"/>
</state-transition-element>
<state-transition-element id="s25" symbol-set="%p13">
<activate-on-match element="s26"/>
</state-transition-element>
<state-transition-element id="s26" symbol-set="%p14">
<activate-on-match element="s27"/>
</state-transition-element>
<state-transition-element id="s27" symbol-set="%p15">
<activate-on-match element="s28"/>
</state-transition-element>
<state-transition-element id="s28" symbol-set="%p16">
<activate-on-match element="s20"/>
</state-transition-element>
<state-transition-element id="s29" symbol-set="%p17">
<activate-on-match element="s30"/>
</state-transition-element>
<state-transition-element id="s30" symbol-set="%p18">
<activate-on-match element="s31"/>
</state-transition-element>
<state-transition-element id="s31" symbol-set="%p19">
<activate-on-match element="s32"/>
</state-transition-element>
<state-transition-element id="s32" symbol-set="%p20">
<activate-on-match element="s20"/>
</state-transition-element>
</body>
</macro-definition>