3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 22:14:08 +00:00

Merge pull request #169 from jix/yices-forall

Test designs using $allconst
This commit is contained in:
Jannis Harder 2022-06-08 09:43:47 +02:00 committed by GitHub
commit 534ac21742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,30 @@
[tasks]
yices
z3
[options]
mode cover
depth 1
[engines]
yices: smtbmc --stbv yices
z3: smtbmc --stdt z3
[script]
read -noverific
read -formal primegen.sv
prep -top primegen
[file primegen.sv]
module primegen;
(* anyconst *) reg [9:0] prime;
(* allconst *) reg [4:0] factor;
always @* begin
if (1 < factor && factor < prime)
assume ((prime % factor) != 0);
assume (prime > 800);
cover (1);
end
endmodule