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

Test designs using $allconst

This commit is contained in:
Jannis Harder 2022-06-03 16:48:21 +02:00
parent 41cd8e5b5e
commit b4c110815c

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