From ddb57b4566579c4245c43e127f3b9f64c8e1f019 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 15 Nov 2017 20:27:45 +0000 Subject: [PATCH] Bugfix for const0/const1 net in 013-intpips fuzzer Signed-off-by: Clifford Wolf Signed-off-by: Tim 'mithro' Ansell --- fuzzers/013-intpips/generate.tcl | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/fuzzers/013-intpips/generate.tcl b/fuzzers/013-intpips/generate.tcl index 0b863447..6db75a91 100644 --- a/fuzzers/013-intpips/generate.tcl +++ b/fuzzers/013-intpips/generate.tcl @@ -30,16 +30,15 @@ write_checkpoint -force design.dcp proc write_txtdata {filename} { puts "Writing $filename." set fp [open $filename w] + set all_pips [lsort -unique [get_pips -of_objects [get_nets -hierarchical]]] foreach tile [get_tiles [regsub -all {CLBL[LM]} [get_tiles -of_objects [get_sites -of_objects [get_pblocks roi]]] INT]] { puts "Dumping pips from tile $tile" - foreach pip [get_pips -of_objects $tile] { - if {[get_nets -quiet -of_objects $pip] != {}} { - set src_wire [get_wires -uphill -of_objects $pip] - set dst_wire [get_wires -downhill -of_objects $pip] - set num_pips [llength [get_nodes -uphill -of_objects [get_nodes -of_objects $dst_wire]]] - set dir_prop [get_property IS_DIRECTIONAL $pip] - puts $fp "$tile $pip $src_wire $dst_wire $num_pips $dir_prop" - } + foreach pip [filter $all_pips "TILE == $tile"] { + set src_wire [get_wires -uphill -of_objects $pip] + set dst_wire [get_wires -downhill -of_objects $pip] + set num_pips [llength [get_nodes -uphill -of_objects [get_nodes -of_objects $dst_wire]]] + set dir_prop [get_property IS_DIRECTIONAL $pip] + puts $fp "$tile $pip $src_wire $dst_wire $num_pips $dir_prop" } } close $fp