Skip to content

Commit

Permalink
Optimize IFV run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarawneh committed Dec 15, 2017
1 parent 0f7382a commit 26b3367
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
14 changes: 13 additions & 1 deletion ifv/go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ ifv \
+bind_top+bind_info \
+nocopyright \
-q \
# +nohal \
# +disable_xcheck \
# +bb_gen \
# +gui

simvisdbutil -vcd $WORK_DIR/examples -output $EXAMPLE_DIR/counter.vcd -overwrite >/dev/null 2>&1
# Export counter-example as VCD file

if [ ! -z "$(ls $WORK_DIR/examples)" ]; then
echo "Converting counter-example to VCD ..."
simvisdbutil \
-vcd $WORK_DIR/examples \
-output $EXAMPLE_DIR/counter.vcd \
-overwrite \
>/dev/null 2>&1
fi
33 changes: 30 additions & 3 deletions ifv/run.tcl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@

reset

clock -add clk -width 1 -period 1 -offset 0
# clock -add clk1 -width 1 -period 2
# clock -add clk2 -width 1 -period 2
# clock -add clk3 -width 1 -period 2
clock -add clk -width 1 -period 2

force reset 0
run 2
force reset 1
run 2

run 4
clock -show

# The supported values are 'Auto', 'Axe', 'Axe1', 'Axe2', 'Sword', 'Sword1',
# 'Sword2', 'Bow', 'Bow1', 'Bow2', 'Bow3', 'Hammer', 'Hammer1', 'Spear',
# 'Spear1', 'Spear2'.

# define engine hammer

init -load -current

Expand All @@ -21,8 +33,23 @@ constraint -add -pin reset 0 -reset
define effort 5 minutes
define delay_assertion 2

# Disable design partitioning algorithm. This cuts down the verification test
# of the incorrect arbiter circuit (with tied inputs optimization) fom 30 down
# to 20 seconds.
define halo off

# brings it down to 16
define witness_check off

report

# exit

# check -show

prove

debug circuit.u1.deadlock_free -sstexport examples -overwrite
# debug system.no_multiple_grants -sstexport examples -overwrite
debug u1.deadlock_free -sstexport examples -overwrite

exit

0 comments on commit 26b3367

Please sign in to comment.