Skip to content

Commit

Permalink
Add script to check if timing passes
Browse files Browse the repository at this point in the history
More convenient than opening the Vivado GUI to checking for timing
violations.
  • Loading branch information
augustofg committed Sep 5, 2024
1 parent 70859a2 commit 68d62d1
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hdl/syn/afc_v3/check_timing.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set wns [get_property STATS.WNS [get_runs impl_1]]
set whs [get_property STATS.WHS [get_runs impl_1]]

puts "WNS: ${wns}"
puts "WHS: ${whs}"

if {($wns < 0) || ($whs < 0)} {
puts "Failed timing!"
exit 1
} else {
puts "Passed timing."
exit 0
}
3 changes: 3 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_bo_sirius/check_timing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

vivado dbe_bpm2.xpr -mode batch -source ../check_timing.tcl
3 changes: 3 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_bo_sirius_with_dcc/check_timing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

vivado dbe_bpm2_with_dcc.xpr -mode batch -source ../check_timing.tcl
3 changes: 3 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_sr_sirius/check_timing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

vivado dbe_bpm2.xpr -mode batch -source ../check_timing.tcl
3 changes: 3 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_sr_sirius_with_dcc/check_timing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

vivado dbe_bpm2_with_dcc.xpr -mode batch -source ../check_timing.tcl
3 changes: 3 additions & 0 deletions hdl/syn/afc_v3/dbe_pbpm/check_timing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

vivado dbe_pbpm.xpr -mode batch -source ../check_timing.tcl
3 changes: 3 additions & 0 deletions hdl/syn/afc_v3/dbe_pbpm_with_dcc/check_timing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

vivado dbe_pbpm_with_dcc.xpr -mode batch -source ../check_timing.tcl

0 comments on commit 68d62d1

Please sign in to comment.