projects
/
SymbiYosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41cd8e5
)
Test designs using $allconst
author
Jannis Harder
<me@jix.one>
Fri, 3 Jun 2022 14:48:21 +0000
(16:48 +0200)
committer
Jannis Harder
<me@jix.one>
Fri, 3 Jun 2022 14:55:06 +0000
(16:55 +0200)
tests/unsorted/allconst.sby
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/unsorted/allconst.sby
b/tests/unsorted/allconst.sby
new file mode 100644
(file)
index 0000000..
0d43f12
--- /dev/null
+++ b/
tests/unsorted/allconst.sby
@@ -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