mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-06 14:24:08 +00:00
31 lines
422 B
Plaintext
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
|