Skip to content

Code comment for #1591 #1595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions vpr/src/pack/prepack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,16 @@ static void update_chain_root_pins(t_pack_patterns* chain_pattern,
for (const auto pin_ptr : chain_input_pins) {
std::vector<t_pb_graph_pin*> connected_primitive_pins;
get_all_connected_primitive_pins(pin_ptr, connected_primitive_pins);

/**
* It is required that the chain pins are connected inside a complex
* block. Although it is allowed to have them disconnected in some
* modes of the block provided that there is always at least one mode
* that has them connected inside. The following assert checks for
* that.
*/
VTR_ASSERT(connected_primitive_pins.size());

primitive_input_pins.push_back(connected_primitive_pins);
}

Expand Down