File size: 749 Bytes
055c19b | 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 | read_rtlil <<EOT
module \pdk_not
wire input 1 \A
wire output 2 \Y
cell $_NOT_ \not
connect \A \A
connect \Y \Y
end
end
module \pdk_buf
wire input 1 \A
wire output 2 \Y
cell $_BUF_ \buf
connect \A \A
connect \Y \Y
end
end
module \top
wire input 1 \A
wire output 2 \Y
wire \w
cell \pdk_buf \buf
connect \A \A
connect \Y \w
end
cell \pdk_not \not
connect \A \w
connect \Y \Y
end
end
EOT
cellmatch -derive_luts *
select -set buffers a:lut=2'b10 %m
select -set inverters a:lut=2'b01 %m
select -assert-count 1 t:@buffers t:pdk_buf %i
select -assert-count 0 t:@buffers t:pdk_not %i
select -assert-count 0 t:@inverters t:pdk_buf %i
select -assert-count 1 t:@inverters t:pdk_not %i
|