Skip to content

Commit ec488cd

Browse files
committed
Add script to check if timing passes
More convenient than opening the Vivado GUI to check for timing violations.
1 parent 602519a commit ec488cd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
vivado afcv4_ref_fofb_ctrl.xpr -mode batch -source check_timing.tcl
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
set wns [get_property STATS.WNS [get_runs impl_1]]
2+
set whs [get_property STATS.WHS [get_runs impl_1]]
3+
4+
puts "WNS: ${wns}"
5+
puts "WHS: ${whs}"
6+
7+
if {($wns < 0) || ($whs < 0)} {
8+
puts "Failed timing!"
9+
exit 1
10+
} else {
11+
puts "Passed timing."
12+
exit 0
13+
}

0 commit comments

Comments
 (0)