From 2ddfb61e65bb8299ba9bc09af9bb4636efc2ddb0 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 16 Apr 2020 12:45:04 -0700 Subject: [PATCH] select: add test for not selecting inside black/white boxes --- tests/select/blackboxes.ys | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/select/blackboxes.ys diff --git a/tests/select/blackboxes.ys b/tests/select/blackboxes.ys new file mode 100644 index 000000000..0031de194 --- /dev/null +++ b/tests/select/blackboxes.ys @@ -0,0 +1,21 @@ +read_verilog -specify < o) = 1; +endspecify +endmodule + +(* whitebox *) +module wb(input a, b, output o); +assign o = a ^ b; +endmodule +EOT + +select -assert-count 1 c:* +select -assert-none t:* t:$and %d -- 2.30.2