source: vis_dev/vis-2.3/models/transition/simple.mv @ 91

Last change on this file since 91 was 31, checked in by cecile, 13 years ago

example for _transition

File size: 6.9 KB
Line 
1# vl2mv simple.v
2# version: 2.1
3# date:    16:16:51 12/06/2011 (CET)
4.model concret
5# I/O ports
6.inputs i
7# p  = 0
8.names p$raw_n0
90
10# q  = 0
11.names q$raw_n1
120
13# state [1 : 0] = 0
14.names state$raw_n2<0>
150
16.names state$raw_n2<1>
170
18# non-blocking assignments for initial
19.names _n5<0>
200
21.names _n5<1>
220
23.names state<0> _n5<0> _n6<0>
24.def 0
250 1 1
261 0 1
27.names state<1> _n5<1> _n6<1>
28.def 0
290 1 1
301 0 1
31.names _n6<0> _n6<1> _n7
32.def 1
330 0 0
34.names _n7 _n4
350 1 
361 0 
37.names _n4  _n3
38.def 1
390 0
40.names _n9
411
42# i  == 1
43.names i _n9 _na
44.def 0
450 1 1
461 0 1
47.names _na _n8
480 1 
491 0 
50.names _n8 _nc
51- =_n8
52# state [1 : 0] = 1
53.names state$_n8_nd$true<0>
541
55.names state$_n8_nd$true<1>
560
57# p  = 0
58.names p$_n8_ne$true
590
60# q  = 1
61.names q$_n8_nf$true
621
63# state [1 : 0] = 2
64.names state$_n8_n10$false<0>
650
66.names state$_n8_n10$false<1>
671
68# p  = 1
69.names p$_n8_n11$false
701
71# q  = 0
72.names q$_n8_n12$false
730
74# if/else (i  == 1)
75.names _n8 p$_n8_ne$true p$_n8_n11$false p$_n8$raw_n16
76.def 0
771 1 - 1
780 - 1 1
79.names _n8 q$_n8_nf$true q$_n8_n12$false q$_n8$raw_n18
80.def 0
811 1 - 1
820 - 1 1
83.names _n8 state$_n8_nd$true<0> state$_n8_n10$false<0> state$_n8$raw_n1a<0>
84.def 0
851 1 - 1
860 - 1 1
87.names _n8 state$_n8_nd$true<1> state$_n8_n10$false<1> state$_n8$raw_n1a<1>
88.def 0
891 1 - 1
900 - 1 1
91.names _n25<0>
921
93.names _n25<1>
940
95.names state<0> _n25<0> _n26<0>
96.def 0
970 1 1
981 0 1
99.names state<1> _n25<1> _n26<1>
100.def 0
1010 1 1
1021 0 1
103.names _n26<0> _n26<1> _n27
104.def 1
1050 0 0
106.names _n27 _n24
1070 1 
1081 0 
109.names _n24  _n23
110.def 1
1110 0
112.names _n29
1131
114# i  == 1
115.names i _n29 _n2a
116.def 0
1170 1 1
1181 0 1
119.names _n2a _n28
1200 1 
1211 0 
122.names _n28 _n2c
123- =_n28
124# state [1 : 0] = 1
125.names state$_n28_n2d$true<0>
1261
127.names state$_n28_n2d$true<1>
1280
129# p  = 0
130.names p$_n28_n2e$true
1310
132# q  = 1
133.names q$_n28_n2f$true
1341
135# state [1 : 0] = 3
136.names state$_n28_n30$false<0>
1371
138.names state$_n28_n30$false<1>
1391
140# p  = 1
141.names p$_n28_n31$false
1421
143# q  = 1
144.names q$_n28_n32$false
1451
146# if/else (i  == 1)
147.names _n28 p$_n28_n2e$true p$_n28_n31$false p$_n28$raw_n36
148.def 0
1491 1 - 1
1500 - 1 1
151.names _n28 q$_n28_n2f$true q$_n28_n32$false q$_n28$raw_n38
152.def 0
1531 1 - 1
1540 - 1 1
155.names _n28 state$_n28_n2d$true<0> state$_n28_n30$false<0> state$_n28$raw_n3a<0>
156.def 0
1571 1 - 1
1580 - 1 1
159.names _n28 state$_n28_n2d$true<1> state$_n28_n30$false<1> state$_n28$raw_n3a<1>
160.def 0
1611 1 - 1
1620 - 1 1
163.names _n45<0>
1640
165.names _n45<1>
1661
167.names state<0> _n45<0> _n46<0>
168.def 0
1690 1 1
1701 0 1
171.names state<1> _n45<1> _n46<1>
172.def 0
1730 1 1
1741 0 1
175.names _n46<0> _n46<1> _n47
176.def 1
1770 0 0
178.names _n47 _n44
1790 1 
1801 0 
181.names _n44  _n43
182.def 1
1830 0
184.names _n49
1851
186# i  == 1
187.names i _n49 _n4a
188.def 0
1890 1 1
1901 0 1
191.names _n4a _n48
1920 1 
1931 0 
194.names _n48 _n4c
195- =_n48
196# state [1 : 0] = 2
197.names state$_n48_n4d$true<0>
1980
199.names state$_n48_n4d$true<1>
2001
201# p  = 1
202.names p$_n48_n4e$true
2031
204# q  = 0
205.names q$_n48_n4f$true
2060
207# state [1 : 0] = 3
208.names state$_n48_n50$false<0>
2091
210.names state$_n48_n50$false<1>
2111
212# p  = 1
213.names p$_n48_n51$false
2141
215# q  = 1
216.names q$_n48_n52$false
2171
218# if/else (i  == 1)
219.names _n48 p$_n48_n4e$true p$_n48_n51$false p$_n48$raw_n56
220.def 0
2211 1 - 1
2220 - 1 1
223.names _n48 q$_n48_n4f$true q$_n48_n52$false q$_n48$raw_n58
224.def 0
2251 1 - 1
2260 - 1 1
227.names _n48 state$_n48_n4d$true<0> state$_n48_n50$false<0> state$_n48$raw_n5a<0>
228.def 0
2291 1 - 1
2300 - 1 1
231.names _n48 state$_n48_n4d$true<1> state$_n48_n50$false<1> state$_n48$raw_n5a<1>
232.def 0
2331 1 - 1
2340 - 1 1
235.names _n65<0>
2361
237.names _n65<1>
2381
239.names state<0> _n65<0> _n66<0>
240.def 0
2410 1 1
2421 0 1
243.names state<1> _n65<1> _n66<1>
244.def 0
2450 1 1
2461 0 1
247.names _n66<0> _n66<1> _n67
248.def 1
2490 0 0
250.names _n67 _n64
2510 1 
2521 0 
253.names _n64  _n63
254.def 1
2550 0
256.names _n69
2571
258# i  == 1
259.names i _n69 _n6a
260.def 0
2610 1 1
2621 0 1
263.names _n6a _n68
2640 1 
2651 0 
266.names _n68 _n6c
267- =_n68
268# state [1 : 0] = 2
269.names state$_n68_n6d$true<0>
2700
271.names state$_n68_n6d$true<1>
2721
273# p  = 1
274.names p$_n68_n6e$true
2751
276# q  = 0
277.names q$_n68_n6f$true
2780
279# state [1 : 0] = 3
280.names state$_n68_n70$false<0>
2811
282.names state$_n68_n70$false<1>
2831
284# p  = 1
285.names p$_n68_n71$false
2861
287# q  = 1
288.names q$_n68_n72$false
2891
290# if/else (i  == 1)
291.names _n68 p$_n68_n6e$true p$_n68_n71$false p$_n68$raw_n76
292.def 0
2931 1 - 1
2940 - 1 1
295.names _n68 q$_n68_n6f$true q$_n68_n72$false q$_n68$raw_n78
296.def 0
2971 1 - 1
2980 - 1 1
299.names _n68 state$_n68_n6d$true<0> state$_n68_n70$false<0> state$_n68$raw_n7a<0>
300.def 0
3011 1 - 1
3020 - 1 1
303.names _n68 state$_n68_n6d$true<1> state$_n68_n70$false<1> state$_n68$raw_n7a<1>
304.def 0
3051 1 - 1
3060 - 1 1
307# case (state )
308.names _n63 p$_n68$raw_n76 p p$_n63$raw_n89
309.def 0
3101 1 - 1
3110 - 1 1
312.names _n63 q$_n68$raw_n78 q q$_n63$raw_n8b
313.def 0
3141 1 - 1
3150 - 1 1
316.names _n63 state$_n68$raw_n7a<0> state<0> state$_n63$raw_n8d<0>
317.def 0
3181 1 - 1
3190 - 1 1
320.names _n63 state$_n68$raw_n7a<1> state<1> state$_n63$raw_n8d<1>
321.def 0
3221 1 - 1
3230 - 1 1
324.names _n43 p$_n48$raw_n56 p$_n63$raw_n89 p$_n43$raw_n90
325.def 0
3261 1 - 1
3270 - 1 1
328.names _n43 q$_n48$raw_n58 q$_n63$raw_n8b q$_n43$raw_n92
329.def 0
3301 1 - 1
3310 - 1 1
332.names _n43 state$_n48$raw_n5a<0> state$_n63$raw_n8d<0> state$_n43$raw_n94<0>
333.def 0
3341 1 - 1
3350 - 1 1
336.names _n43 state$_n48$raw_n5a<1> state$_n63$raw_n8d<1> state$_n43$raw_n94<1>
337.def 0
3381 1 - 1
3390 - 1 1
340.names _n23 p$_n28$raw_n36 p$_n43$raw_n90 p$_n23$raw_na0
341.def 0
3421 1 - 1
3430 - 1 1
344.names _n23 q$_n28$raw_n38 q$_n43$raw_n92 q$_n23$raw_na2
345.def 0
3461 1 - 1
3470 - 1 1
348.names _n23 state$_n28$raw_n3a<0> state$_n43$raw_n94<0> state$_n23$raw_na4<0>
349.def 0
3501 1 - 1
3510 - 1 1
352.names _n23 state$_n28$raw_n3a<1> state$_n43$raw_n94<1> state$_n23$raw_na4<1>
353.def 0
3541 1 - 1
3550 - 1 1
356.names _n3 p$_n8$raw_n16 p$_n23$raw_na0 p$_n3$raw_nb0
357.def 0
3581 1 - 1
3590 - 1 1
360.names _n3 q$_n8$raw_n18 q$_n23$raw_na2 q$_n3$raw_nb2
361.def 0
3621 1 - 1
3630 - 1 1
364.names _n3 state$_n8$raw_n1a<0> state$_n23$raw_na4<0> state$_n3$raw_nb4<0>
365.def 0
3661 1 - 1
3670 - 1 1
368.names _n3 state$_n8$raw_n1a<1> state$_n23$raw_na4<1> state$_n3$raw_nb4<1>
369.def 0
3701 1 - 1
3710 - 1 1
372# conflict arbitrators
373.names _n3 _nc _n23 _n2c _n43 _n4c _n63 _n6c _nc0
374.def 0
375 1 1 - - - - - - 1
376 1 0 - - - - - - 1
377 0 - 1 1 - - - - 1
378 0 - 1 0 - - - - 1
379 0 - 0 - 1 1 - - 1
380 0 - 0 - 1 0 - - 1
381 0 - 0 - 0 - 1 1 1
382 0 - 0 - 0 - 1 0 1
383.names _nc0 p$_n3$raw_nb0 p _nc1
3841 0 - 0
3851 1 - 1
3860 - 0 0
3870 - 1 1
388.names _n3 _nc _n23 _n2c _n43 _n4c _n63 _n6c _nc2
389.def 0
390 1 1 - - - - - - 1
391 1 0 - - - - - - 1
392 0 - 1 1 - - - - 1
393 0 - 1 0 - - - - 1
394 0 - 0 - 1 1 - - 1
395 0 - 0 - 1 0 - - 1
396 0 - 0 - 0 - 1 1 1
397 0 - 0 - 0 - 1 0 1
398.names _nc2 q$_n3$raw_nb2 q _nc3
3991 0 - 0
4001 1 - 1
4010 - 0 0
4020 - 1 1
403.names _n3 _nc _n23 _n2c _n43 _n4c _n63 _n6c _nc4
404.def 0
405 1 1 - - - - - - 1
406 1 0 - - - - - - 1
407 0 - 1 1 - - - - 1
408 0 - 1 0 - - - - 1
409 0 - 0 - 1 1 - - 1
410 0 - 0 - 1 0 - - 1
411 0 - 0 - 0 - 1 1 1
412 0 - 0 - 0 - 1 0 1
413.names _nc4 state$_n3$raw_nb4<0> state$_n3$raw_nb4<1> state<0> state<1> -> _nc5<0> _nc5<1>
4141 - - - - =state$_n3$raw_nb4<0> =state$_n3$raw_nb4<1>
4150 - - - - =state<0> =state<1>
416# non-blocking assignments
417# latches
418.r p$raw_n0 p
4190 0
4201 1
421.latch _nc1 p
422.r q$raw_n1 q
4230 0
4241 1
425.latch _nc3 q
426.r state$raw_n2<0> state<0>
427.def 0
4281 1
429.r state$raw_n2<1> state<1>
430.def 0
4311 1
432.latch _nc5<0> state<0>
433.latch _nc5<1> state<1>
434# quasi-continuous assignment
435.end
Note: See TracBrowser for help on using the repository browser.