3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-06 14:24:08 +00:00
sby/tests/unsorted/allconst.sby
2022-06-03 16:55:06 +02:00

31 lines
422 B
Plaintext

[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