diff --git a/vpr/src/pack/prepack.cpp b/vpr/src/pack/prepack.cpp index 9a16c49c0b..9743d969fe 100644 --- a/vpr/src/pack/prepack.cpp +++ b/vpr/src/pack/prepack.cpp @@ -1141,11 +1141,12 @@ static AtomBlockId get_sink_block(const AtomBlockId block_id, // Iterate through all sink blocks and check whether any of them // is compatible with the block specified in the pack pattern. bool connected_to_latch = false; - LogicalModelId latch_model_id = LogicalModels::MODEL_LATCH_ID; AtomBlockId pattern_sink_block_id = AtomBlockId::INVALID(); for (const auto& sink_pin_id : net_sinks) { auto sink_block_id = atom_nlist.pin_block(sink_pin_id); - if (atom_nlist.block_model(sink_block_id) == latch_model_id) { + // If the sink block has a clock, it is considered stateful (e.g., a latch or flip-flop). + // Mark this so we can later decide whether to drop the block based on the net’s fanout. + if (!atom_nlist.block_is_combinational(sink_block_id)) { connected_to_latch = true; } if (primitive_type_feasible(sink_block_id, to_pb_type)) {