File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ read_rtlil <<EOT
2+ module \pdk_not
3+
4+ wire input 1 \A
5+ wire output 2 \Y
6+
7+ cell $_NOT_ \not
8+ connect \A \A
9+ connect \Y \Y
10+ end
11+
12+ end
13+
14+ module \pdk_buf
15+
16+ wire input 1 \A
17+ wire output 2 \Y
18+
19+ cell $_BUF_ \buf
20+ connect \A \A
21+ connect \Y \Y
22+ end
23+
24+ end
25+
26+ module \top
27+ wire input 1 \A
28+ wire output 2 \Y
29+ wire \w
30+
31+ cell \pdk_buf \buf
32+ connect \A \A
33+ connect \Y \w
34+ end
35+
36+ cell \pdk_not \not
37+ connect \A \w
38+ connect \Y \Y
39+ end
40+
41+ end
42+ EOT
43+
44+ cellmatch -lut_attrs *
45+
46+ select -set buffers a:lut=2'b10 %m
47+ select -set inverters a:lut=2'b01 %m
48+
49+ select -assert-count 1 t:@buffers t:pdk_buf %i
50+ select -assert-count 0 t:@buffers t:pdk_not %i
51+ select -assert-count 0 t:@inverters t:pdk_buf %i
52+ select -assert-count 1 t:@inverters t:pdk_not %i
You can’t perform that action at this time.
0 commit comments