3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-03 16:48:07 +00:00

tests/select: Add tests for selections with boxes

This commit is contained in:
Krystine Sherwin 2025-03-14 14:05:40 +13:00
parent 398afd102e
commit 061c234559
No known key found for this signature in database
9 changed files with 103 additions and 12 deletions

View file

@ -1,28 +0,0 @@
read_verilog -specify <<EOT
module top(input a, b, output o);
assign o = a & b;
endmodule
(* blackbox *)
module bb(input a, b, output o);
assign o = a | b;
specify
(a => o) = 1;
endspecify
endmodule
(* whitebox *)
module wb(input a, b, output o);
assign o = a ^ b;
endmodule
EOT
clean
select -assert-count 1 c:*
select -assert-none t:* t:$and %d
select -assert-count 3 w:*
select -assert-count 4 *
select -assert-count 3 =c:*
select -assert-count 10 =w:*
select -assert-count 13 =*