mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-09 00:35:48 +00:00
tests/select: Add tests for selections with boxes
This commit is contained in:
parent
7ea06990e7
commit
5767da92d5
9 changed files with 103 additions and 12 deletions
16
tests/select/boxes.v
Normal file
16
tests/select/boxes.v
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue