Skip to content

Commit 5ae6059

Browse files
committed
071-ppips: generate hints for nodes with multiple uphill pips
Signed-off-by: Hans Baier <[email protected]>
1 parent c0d2323 commit 5ae6059

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

fuzzers/071-ppips/generate.tcl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,19 @@ proc write_ioi_ppips_db {filename tile} {
131131

132132
foreach pip [get_pips -of_objects $tile] {
133133
set dst_wire [get_wires -downhill -of_objects $pip]
134+
set nodes [get_nodes -of_objects $dst_wire]
135+
set uphill_pips [get_pips -uphill -of_objects $nodes]
136+
134137
if [string match "*DATAOUT*" $dst_wire] {
135138
continue
136-
} elseif {[get_pips -uphill -of_objects [get_nodes -of_objects $dst_wire]] == $pip} {
139+
} elseif {$uphill_pips == $pip} {
140+
# if there is only one uphill pip, then output always
137141
set src_wire [get_wires -uphill -of_objects $pip]
138142
puts $fp "${tile_type}.[regsub {.*/} $dst_wire ""].[regsub {.*/} $src_wire ""] always"
143+
} elseif {[lsearch -exact $uphill_pips $pip]} {
144+
# if there are multiple uphill pips, output a hint
145+
set src_wire [get_wires -uphill -of_objects $pip]
146+
puts $fp "${tile_type}.[regsub {.*/} $dst_wire ""].[regsub {.*/} $src_wire ""] hint"
139147
}
140148
}
141149

0 commit comments

Comments
 (0)