mirror of https://github.com/YosysHQ/yosys.git
22 lines
344 B
Plaintext
22 lines
344 B
Plaintext
|
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
|
||
|
|
||
|
select -assert-count 1 c:*
|
||
|
select -assert-none t:* t:$and %d
|