hlck-ioi: fix empty list bug in generate.tcl

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2019-11-04 11:02:52 +01:00
parent 13361904ee
commit 827081b3b5
1 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,11 @@ proc route_todo {} {
lappend todos $src_wire
}
set todos_length [llength $todos]
if {$todos_length == 0} {
continue
}
puts "All todos for $tile_type / $wire"
foreach src_wire $todos {
puts " - $src_wire"