3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00
This commit is contained in:
Akash Levy 2024-11-04 17:01:41 -08:00
commit 1cba744712
10 changed files with 68 additions and 27 deletions

13
tests/select/list_mod.ys Normal file
View file

@ -0,0 +1,13 @@
read_verilog <<EOF
module top1;
(* foo *)
wire w;
endmodule
module top2;
(* bar *)
wire w;
endmodule
EOF
logger -expect log top1 1
select -list-mod a:foo %m

View file

@ -41,7 +41,7 @@ module \top
end
EOT
cellmatch -lut_attrs *
cellmatch -derive_luts *
select -set buffers a:lut=2'b10 %m
select -set inverters a:lut=2'b01 %m

View file

@ -77,3 +77,11 @@ opt_clean
equiv_induct equiv
equiv_status -assert
design -reset
design -load gatelib
cellmatch -derive_luts
select -assert-any bufgate/w:Y a:lut=2'b10 %i
select -assert-any reducegate/w:X a:lut=8'b10000000 %i
select -assert-any reducegate/w:Y a:lut=8'b11111110 %i
select -assert-any fagate/w:X a:lut=8'b10010110 %i
select -assert-any fagate/w:Y a:lut=8'b11101000 %i