source: vis_dev/vis-2.3/models/debug/and2.mv @ 33

Last change on this file since 33 was 33, checked in by cecile, 12 years ago

add debug example

File size: 864 bytes
Line 
1# vl2mv and2.v
2# version: 2.1
3# date:    16:50:59 12/22/2011 (CET)
4.model andgate
5# I/O ports
6.inputs a
7.inputs b
8# c  = 0
9.names c$raw_n0
100
11# non-blocking assignments for initial
12# assign x  = a  & b
13# a  & b
14.names a b _n2
15.def 0
161 1 1
17.names _n2 x$raw_n1
18- =_n2
19# assign y  = (a ) ? b  : x
20# (a ) ? b  : x
21.names a b x _n4
22.def 0
231 1 - 1
240 - 1 1
25.names _n4 y$raw_n3
26- =_n4
27# c  = ~x  + c
28.names x _n7
290 1 
301 0 
31# ~x  + c
32.names _n9
330
34.names _n7 c _n9 _n8
35.def 0
360 0 1 1
370 1 0 1
381 0 0 1
391 1 1 1
40# carry/borrow
41.names _nb
420
43.names _n7 c _nb _na
44.def 0
45- 1 1 1
461 - 1 1
471 1 - 1
48.names _n8 c$raw_n6
49- =_n8
50# conflict arbitrators
51.names y$raw_n3  y
520 0
531 1
54.names _nc
55.def 0
56 1
57.names _nc c$raw_n6 _nd
58.def 0
591 0 0
601 1 1
61.names x$raw_n1  x
620 0
631 1
64# non-blocking assignments
65# latches
66.r c$raw_n0 c
670 0
681 1
69.latch _nd c
70# quasi-continuous assignment
71.end
Note: See TracBrowser for help on using the repository browser.