Skip to content

Commit a72a5f4

Browse files
compare max fanout with fanout, not the number of pins
1 parent 745e230 commit a72a5f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void drawnets(ezgl::renderer* g) {
249249
continue; /* Don't draw */
250250
}
251251

252-
if ((int)cluster_ctx.clb_nlist.net_pins(net_id).size() > draw_state->draw_net_max_fanout) {
252+
if ((int)cluster_ctx.clb_nlist.net_pins(net_id).size() - 1 > draw_state->draw_net_max_fanout) {
253253
continue;
254254
}
255255

vpr/src/draw/intra_logic_block.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ void draw_logical_connections(ezgl::renderer* g) {
570570

571571
// iterate over all the atom nets
572572
for (auto net_id : atom_ctx.nlist.nets()) {
573-
if ((int)atom_ctx.nlist.net_pins(net_id).size() > draw_state->draw_net_max_fanout) {
573+
if ((int)atom_ctx.nlist.net_pins(net_id).size() - 1 > draw_state->draw_net_max_fanout) {
574574
continue;
575575
}
576576

0 commit comments

Comments
 (0)