mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
blackbox: Include whiteboxed modules
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
937392ad33
commit
dd6d34f461
4 changed files with 19 additions and 4 deletions
14
tests/various/blackbox_wb.ys
Normal file
14
tests/various/blackbox_wb.ys
Normal file
|
@ -0,0 +1,14 @@
|
|||
read_verilog <<EOT
|
||||
(* whitebox *)
|
||||
module box(input a, output q);
|
||||
assign q = ~a;
|
||||
endmodule
|
||||
|
||||
module top(input a, output q);
|
||||
box box_i(.a(a), .q(q));
|
||||
endmodule
|
||||
EOT
|
||||
select -assert-count 1 =box/t:$not
|
||||
blackbox =box
|
||||
select -assert-count 0 =A:whitebox
|
||||
select -assert-count 0 =box/t:$not
|
Loading…
Add table
Add a link
Reference in a new issue