Skip to content

Commit 894e1ac

Browse files
committed
Added code comment
Signed-off-by: Maciej Kurc <[email protected]>
1 parent 00a7efd commit 894e1ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vpr/src/pack/prepack.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,16 @@ static void update_chain_root_pins(t_pack_patterns* chain_pattern,
15481548
for (const auto pin_ptr : chain_input_pins) {
15491549
std::vector<t_pb_graph_pin*> connected_primitive_pins;
15501550
get_all_connected_primitive_pins(pin_ptr, connected_primitive_pins);
1551+
1552+
/**
1553+
* It is required that the chain pins areconnected inside a complex
1554+
* block. Although it is allowed to have them disconnected in some of
1555+
* modes of the block provided that there is always at least one mode
1556+
* that has them connected inside. The following assert checks for
1557+
* that.
1558+
*/
15511559
VTR_ASSERT(connected_primitive_pins.size());
1560+
15521561
primitive_input_pins.push_back(connected_primitive_pins);
15531562
}
15541563

0 commit comments

Comments
 (0)