Skip to content

Commit

Permalink
071-ppips: generate hints for nodes with multiple uphill pips
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Baier <[email protected]>
  • Loading branch information
hansfbaier committed Dec 2, 2022
1 parent c0d2323 commit 5ae6059
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fuzzers/071-ppips/generate.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,19 @@ proc write_ioi_ppips_db {filename tile} {

foreach pip [get_pips -of_objects $tile] {
set dst_wire [get_wires -downhill -of_objects $pip]
set nodes [get_nodes -of_objects $dst_wire]
set uphill_pips [get_pips -uphill -of_objects $nodes]

if [string match "*DATAOUT*" $dst_wire] {
continue
} elseif {[get_pips -uphill -of_objects [get_nodes -of_objects $dst_wire]] == $pip} {
} elseif {$uphill_pips == $pip} {
# if there is only one uphill pip, then output always
set src_wire [get_wires -uphill -of_objects $pip]
puts $fp "${tile_type}.[regsub {.*/} $dst_wire ""].[regsub {.*/} $src_wire ""] always"
} elseif {[lsearch -exact $uphill_pips $pip]} {
# if there are multiple uphill pips, output a hint
set src_wire [get_wires -uphill -of_objects $pip]
puts $fp "${tile_type}.[regsub {.*/} $dst_wire ""].[regsub {.*/} $src_wire ""] hint"
}
}

Expand Down

0 comments on commit 5ae6059

Please sign in to comment.