Skip to content

Commit 4621cd3

Browse files
committed
added a comment to explain the condition purpose
1 parent 423fd0d commit 4621cd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vpr/src/pack/prepack.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,8 @@ static AtomBlockId get_sink_block(const AtomBlockId block_id,
11441144
AtomBlockId pattern_sink_block_id = AtomBlockId::INVALID();
11451145
for (const auto& sink_pin_id : net_sinks) {
11461146
auto sink_block_id = atom_nlist.pin_block(sink_pin_id);
1147+
// If the sink block has a clock, it is considered stateful (e.g., a latch or flip-flop).
1148+
// Mark this so we can later decide whether to drop the block based on the net’s fanout.
11471149
if (!atom_nlist.block_is_combinational(sink_block_id)) {
11481150
connected_to_latch = true;
11491151
}

0 commit comments

Comments
 (0)