File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -670,6 +670,19 @@ proc add_sroute_connect { args } {
670670 -metalspaces -ongrid -insts} \
671671 flags {}
672672
673+ if { ![info exists keys(-layers)] } {
674+ utl::error PDN 1193 " The -layers argument is required."
675+ }
676+ if { [llength $keys(-layers) ] != 2 } {
677+ utl::error PDN 1195 " The -layers argument must be a list of 2 layers."
678+ }
679+ if { ![info exists keys(-cut_pitch)] } {
680+ utl::error PDN 1194 " The -cut_pitch argument is required."
681+ }
682+ if { [llength $keys(-cut_pitch) ] != 2 } {
683+ utl::error PDN 1196 " The -cut_pitch argument must be a list of 2 pitch values."
684+ }
685+
673686 set l0 [pdn::get_layer [lindex $keys(-layers) 0]]
674687 set l1 [pdn::get_layer [lindex $keys(-layers) 1]]
675688
You can’t perform that action at this time.
0 commit comments