mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-25 20:46:04 +00:00
Add verific verilog test cases for blackboxes
This commit is contained in:
parent
7d4aff618f
commit
05398889ad
2 changed files with 58 additions and 0 deletions
17
tests/verific/blackbox_empty.ys
Normal file
17
tests/verific/blackbox_empty.ys
Normal file
|
@ -0,0 +1,17 @@
|
|||
verific -sv <<EOF
|
||||
module TEST_CELL(input clk, input a, input b, output reg c);
|
||||
parameter PATH = "DEFAULT";
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
verific -sv <<EOF
|
||||
module top(input clk, input a, input b, output c, output d);
|
||||
TEST_CELL #(.PATH("TEST")) test1(.clk(clk),.a(a),.b(1'b1),.c(c));
|
||||
TEST_CELL #(.PATH("DEFAULT")) test2(.clk(clk),.a(a),.b(1'bx),.c(d));
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
verific -import top
|
||||
hierarchy -top top
|
||||
stat
|
||||
select -assert-count 2 t:TEST_CELL
|
Loading…
Add table
Add a link
Reference in a new issue