File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,25 @@ module [Module] testStackID ();
248
248
blueCheckID( checkStackWithReset( r.new_rst) , r) ;
249
249
endmodule
250
250
251
+ // Iterative deepening version (with extra options)
252
+ module [ Module ] testStackIDCustom () ;
253
+ Clock clk < - exposeCurrentClock;
254
+ MakeResetIfc r < - mkReset( 0 , True , clk) ;
255
+
256
+ // Customise default BlueCheck parameters
257
+ BlueCheck_Params params = bcParamsID( r) ;
258
+ params.wedgeDetect = True ;
259
+ params.id.initialDepth = 3 ;
260
+ function incr( x) = x+ 1 ;
261
+ params.id.incDepth = incr;
262
+ params.numIterations = 25 ;
263
+ params.id.testsPerDepth = 100 ;
264
+
265
+ // Generate checker
266
+ Stmt s < - mkModelChecker( checkStackWithReset( r.new_rst) , params) ;
267
+ mkAutoFSM( s) ;
268
+ endmodule
269
+
251
270
// Iterative deepening version & classification
252
271
module [ Module ] testStackIDClassify () ;
253
272
Clock clk < - exposeCurrentClock;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ rm -f *.cxx *.o *.h *.ba *.bo *.so
38
38
rm -f State.txt
39
39
rm -f testStack
40
40
rm -f testStackID
41
+ rm -f testStackIDCustom
41
42
rm -f testStackAlg
42
43
rm -f testStackAlgID
43
44
rm -f testStackIDClassify
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ echo "(7) Stack(algebraic)"
53
53
echo " (8) Stack(algebraic) + ID"
54
54
echo " (9) Stack(synthesisable)"
55
55
echo " (10) Stack(synthesisable) + ID"
56
+ echo " (11) Stack + ID + custom parameters"
56
57
57
58
read OPTION
58
59
case " $OPTION " in
@@ -88,6 +89,9 @@ case "$OPTION" in
88
89
TOPMOD=testStackID
89
90
SYNTH=1
90
91
;;
92
+ 11) TOPFILE=StackExample.bsv
93
+ TOPMOD=testStackIDCustom
94
+ ;;
91
95
* ) echo " Option not recognised"
92
96
exit
93
97
;;
You can’t perform that action at this time.
0 commit comments