mirror of
https://github.com/YosysHQ/sby.git
synced 2025-11-02 22:07:53 +00:00
add new blackbox test cases
This commit is contained in:
parent
9675d158ce
commit
8423d3e2c8
5 changed files with 172 additions and 3 deletions
31
tests/blackbox/parameter.sby
Normal file
31
tests/blackbox/parameter.sby
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
[options]
|
||||
mode bmc
|
||||
depth 1
|
||||
expect fail
|
||||
|
||||
[engines]
|
||||
smtbmc
|
||||
|
||||
[script]
|
||||
read -formal test.v
|
||||
prep -top top
|
||||
cutpoint -blackbox
|
||||
|
||||
[file test.v]
|
||||
(* blackbox *)
|
||||
module submod #(parameter WIDTH = 24) (input [WIDTH-1:0] a, output [WIDTH-1:0] b);
|
||||
endmodule
|
||||
|
||||
module top;
|
||||
(*anyconst *) wire [7:0] a;
|
||||
wire [7:0] b;
|
||||
|
||||
submod #(.WIDTH(8)) submod(
|
||||
.a(a),
|
||||
.b(b)
|
||||
);
|
||||
|
||||
always @* begin
|
||||
assert(~a == b);
|
||||
end
|
||||
endmodule
|
||||
Loading…
Add table
Add a link
Reference in a new issue