1 | .model elevator[0] |
---|
2 | .inputs init<0> init<1> stop_next continue |
---|
3 | .outputs dec inc |
---|
4 | .table init<0> ->init<0>0 |
---|
5 | 0 0 |
---|
6 | 1 1 |
---|
7 | .table init<1> ->init<1>0 |
---|
8 | 0 0 |
---|
9 | 1 1 |
---|
10 | .table stop_next ->stop_next0 |
---|
11 | 0 0 |
---|
12 | 1 1 |
---|
13 | .table continue ->continue0 |
---|
14 | 0 0 |
---|
15 | 1 1 |
---|
16 | .table dec0 ->dec |
---|
17 | 0 0 |
---|
18 | 1 1 |
---|
19 | .table inc0 ->inc |
---|
20 | 0 0 |
---|
21 | 1 1 |
---|
22 | .mv _n245 2 STOPPED MOVING |
---|
23 | .mv movement 2 STOPPED MOVING |
---|
24 | .table _n2450 ->_n245 |
---|
25 | 0 STOPPED |
---|
26 | 1 MOVING |
---|
27 | .table movement ->movement0 |
---|
28 | STOPPED 0 |
---|
29 | MOVING 1 |
---|
30 | .mv movement$raw_n1a 2 STOPPED MOVING |
---|
31 | .table movement$raw_n1a0 ->movement$raw_n1a |
---|
32 | 0 STOPPED |
---|
33 | 1 MOVING |
---|
34 | .mv _n25c<*2*> 2 ON OFF |
---|
35 | .mv buttons<*2*> 2 ON OFF |
---|
36 | .table _n25c<*2*>0 ->_n25c<*2*> |
---|
37 | 0 ON |
---|
38 | 1 OFF |
---|
39 | .table buttons<*2*> ->buttons<*2*>0 |
---|
40 | ON 0 |
---|
41 | OFF 1 |
---|
42 | .mv buttons$raw_n1b<*2*> 2 ON OFF |
---|
43 | .table buttons$raw_n1b<*2*>0 ->buttons$raw_n1b<*2*> |
---|
44 | 0 ON |
---|
45 | 1 OFF |
---|
46 | .mv buttons$raw_n2d<*2*> 2 ON OFF |
---|
47 | .table buttons$raw_n2d<*2*>0 ->buttons$raw_n2d<*2*> |
---|
48 | 0 ON |
---|
49 | 1 OFF |
---|
50 | .mv buttons$raw_n3f<*2*> 2 ON OFF |
---|
51 | .table buttons$raw_n3f<*2*>0 ->buttons$raw_n3f<*2*> |
---|
52 | 0 ON |
---|
53 | 1 OFF |
---|
54 | .mv _n25c<*0*> 2 ON OFF |
---|
55 | .mv buttons<*0*> 2 ON OFF |
---|
56 | .table _n25c<*0*>0 ->_n25c<*0*> |
---|
57 | 0 ON |
---|
58 | 1 OFF |
---|
59 | .table buttons<*0*> ->buttons<*0*>0 |
---|
60 | ON 0 |
---|
61 | OFF 1 |
---|
62 | .mv buttons$raw_n1b<*0*> 2 ON OFF |
---|
63 | .table buttons$raw_n1b<*0*>0 ->buttons$raw_n1b<*0*> |
---|
64 | 0 ON |
---|
65 | 1 OFF |
---|
66 | .mv buttons$raw_n2d<*0*> 2 ON OFF |
---|
67 | .table buttons$raw_n2d<*0*>0 ->buttons$raw_n2d<*0*> |
---|
68 | 0 ON |
---|
69 | 1 OFF |
---|
70 | .mv buttons$raw_n3f<*0*> 2 ON OFF |
---|
71 | .table buttons$raw_n3f<*0*>0 ->buttons$raw_n3f<*0*> |
---|
72 | 0 ON |
---|
73 | 1 OFF |
---|
74 | .mv _n29d 4 OPEN OPENING CLOSED CLOSING |
---|
75 | .mv door 4 OPEN OPENING CLOSED CLOSING |
---|
76 | .table _n29d0 _n29d1 ->_n29d |
---|
77 | 0 0 OPEN |
---|
78 | 1 0 OPENING |
---|
79 | 0 1 CLOSED |
---|
80 | 1 1 CLOSING |
---|
81 | .table door ->door0 door1 |
---|
82 | OPEN 0 0 |
---|
83 | OPENING 1 0 |
---|
84 | CLOSED 0 1 |
---|
85 | CLOSING 1 1 |
---|
86 | .mv door$raw_n19 4 OPEN OPENING CLOSED CLOSING |
---|
87 | .table door$raw_n190 door$raw_n191 ->door$raw_n19 |
---|
88 | 0 0 OPEN |
---|
89 | 1 0 OPENING |
---|
90 | 0 1 CLOSED |
---|
91 | 1 1 CLOSING |
---|
92 | .table _n2b4<0>0 ->_n2b4<0> |
---|
93 | 0 0 |
---|
94 | 1 1 |
---|
95 | .table location<0> ->location<0>0 |
---|
96 | 0 0 |
---|
97 | 1 1 |
---|
98 | .table location$raw_n17<0>0 ->location$raw_n17<0> |
---|
99 | 0 0 |
---|
100 | 1 1 |
---|
101 | .mv _n25c<*1*> 2 ON OFF |
---|
102 | .mv buttons<*1*> 2 ON OFF |
---|
103 | .table _n25c<*1*>0 ->_n25c<*1*> |
---|
104 | 0 ON |
---|
105 | 1 OFF |
---|
106 | .table buttons<*1*> ->buttons<*1*>0 |
---|
107 | ON 0 |
---|
108 | OFF 1 |
---|
109 | .mv buttons$raw_n1b<*1*> 2 ON OFF |
---|
110 | .table buttons$raw_n1b<*1*>0 ->buttons$raw_n1b<*1*> |
---|
111 | 0 ON |
---|
112 | 1 OFF |
---|
113 | .mv buttons$raw_n2d<*1*> 2 ON OFF |
---|
114 | .table buttons$raw_n2d<*1*>0 ->buttons$raw_n2d<*1*> |
---|
115 | 0 ON |
---|
116 | 1 OFF |
---|
117 | .mv buttons$raw_n3f<*1*> 2 ON OFF |
---|
118 | .table buttons$raw_n3f<*1*>0 ->buttons$raw_n3f<*1*> |
---|
119 | 0 ON |
---|
120 | 1 OFF |
---|
121 | .mv _n2b6 2 UP DOWN |
---|
122 | .mv direction 2 UP DOWN |
---|
123 | .table _n2b60 ->_n2b6 |
---|
124 | 0 UP |
---|
125 | 1 DOWN |
---|
126 | .table direction ->direction0 |
---|
127 | UP 0 |
---|
128 | DOWN 1 |
---|
129 | .mv direction$raw_n18 2 UP DOWN |
---|
130 | .table direction$raw_n180 ->direction$raw_n18 |
---|
131 | 0 UP |
---|
132 | 1 DOWN |
---|
133 | .table _n2cd0 ->_n2cd |
---|
134 | 0 0 |
---|
135 | 1 1 |
---|
136 | .table open_next ->open_next0 |
---|
137 | 0 0 |
---|
138 | 1 1 |
---|
139 | .table open_next$raw_n160 ->open_next$raw_n16 |
---|
140 | 0 0 |
---|
141 | 1 1 |
---|
142 | .table _n2b4<1>0 ->_n2b4<1> |
---|
143 | 0 0 |
---|
144 | 1 1 |
---|
145 | .table location<1> ->location<1>0 |
---|
146 | 0 0 |
---|
147 | 1 1 |
---|
148 | .table location$raw_n17<1>0 ->location$raw_n17<1> |
---|
149 | 0 0 |
---|
150 | 1 1 |
---|
151 | .latch _n245 movement |
---|
152 | .reset movement$raw_n1a ->movement |
---|
153 | - =movement$raw_n1a |
---|
154 | .latch _n25c<*2*> buttons<*2*> |
---|
155 | .reset buttons$raw_n1b<*2*> buttons$raw_n2d<*2*> buttons$raw_n3f<*2*> ->buttons<*2*> |
---|
156 | .default ON |
---|
157 | OFF - - =buttons$raw_n1b<*2*> |
---|
158 | ON OFF - =buttons$raw_n2d<*2*> |
---|
159 | ON ON OFF =buttons$raw_n3f<*2*> |
---|
160 | .latch _n25c<*0*> buttons<*0*> |
---|
161 | .reset buttons$raw_n1b<*0*> buttons$raw_n2d<*0*> buttons$raw_n3f<*0*> ->buttons<*0*> |
---|
162 | .default ON |
---|
163 | OFF - - =buttons$raw_n1b<*0*> |
---|
164 | ON OFF - =buttons$raw_n2d<*0*> |
---|
165 | ON ON OFF =buttons$raw_n3f<*0*> |
---|
166 | .latch _n29d door |
---|
167 | .reset door$raw_n19 ->door |
---|
168 | - =door$raw_n19 |
---|
169 | .latch _n2b4<0> location<0> |
---|
170 | .reset location$raw_n17<0> ->location<0> |
---|
171 | .default 0 |
---|
172 | 1 1 |
---|
173 | .latch _n25c<*1*> buttons<*1*> |
---|
174 | .reset buttons$raw_n1b<*1*> buttons$raw_n2d<*1*> buttons$raw_n3f<*1*> ->buttons<*1*> |
---|
175 | .default ON |
---|
176 | OFF - - =buttons$raw_n1b<*1*> |
---|
177 | ON OFF - =buttons$raw_n2d<*1*> |
---|
178 | ON ON OFF =buttons$raw_n3f<*1*> |
---|
179 | .latch _n2b6 direction |
---|
180 | .reset direction$raw_n18 ->direction |
---|
181 | - =direction$raw_n18 |
---|
182 | .latch _n2cd open_next |
---|
183 | .reset open_next$raw_n16 ->open_next |
---|
184 | 0 0 |
---|
185 | 1 1 |
---|
186 | .latch _n2b4<1> location<1> |
---|
187 | .reset location$raw_n17<1> ->location<1> |
---|
188 | .default 0 |
---|
189 | 1 1 |
---|
190 | .table ->random_push<0> |
---|
191 | - |
---|
192 | .table random_push<0> ->[0]0 |
---|
193 | .default 0 |
---|
194 | 0 0 |
---|
195 | 1 1 |
---|
196 | .table ->random_push<1> |
---|
197 | - |
---|
198 | .table random_push<1> ->[1]0 |
---|
199 | .default 0 |
---|
200 | 0 0 |
---|
201 | 1 1 |
---|
202 | .table ->random_push<2> |
---|
203 | - |
---|
204 | .table random_push<2> ->[2]0 |
---|
205 | .default 0 |
---|
206 | 0 0 |
---|
207 | 1 1 |
---|
208 | .table ->random |
---|
209 | 0 |
---|
210 | 1 |
---|
211 | .table random ->[3]0 |
---|
212 | .default 0 |
---|
213 | 0 0 |
---|
214 | 1 1 |
---|
215 | .table ->r_stop |
---|
216 | 0 |
---|
217 | 1 |
---|
218 | .table r_stop ->[4]0 |
---|
219 | .default 0 |
---|
220 | 0 0 |
---|
221 | 1 1 |
---|