Skip to content

Commit faf6813

Browse files
[Pack] Added Comments for Map Lookups
1 parent 4adac46 commit faf6813

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vpr/src/pack/cluster_feasibility_filter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ void load_pin_classes_in_pb_graph_head(t_pb_graph_node* pb_graph_node) {
7676
depth = get_max_depth_of_pb_graph_node(pb_graph_node);
7777
for (i = 0; i < depth; i++) {
7878
input_count = output_count = 0;
79+
// The following function marks pins based on the pin count. This is
80+
// used when traversing the pb heirarchy.
7981
std::unordered_map<t_pb_graph_pin*, int> pin_marker;
8082
load_pin_class_by_depth(pb_graph_node, i, &input_count, &output_count, pin_marker);
8183
}
@@ -167,7 +169,6 @@ static void load_pin_class_by_depth(t_pb_graph_node* pb_graph_node,
167169
std::unordered_map<t_pb_graph_pin*, int>& pin_marker) {
168170
int i, j, k;
169171

170-
171172
if (pb_graph_node->is_primitive()) {
172173
if (pb_graph_node->pb_type->depth > depth) {
173174
/* At primitive, determine which pin class each of its pins belong to */
@@ -258,6 +259,8 @@ static void load_pin_class_by_depth(t_pb_graph_node* pb_graph_node,
258259
static void load_list_of_connectable_input_pin_ptrs(t_pb_graph_node* pb_graph_node) {
259260
int i, j, k;
260261

262+
// We keep track of the pins we have already seen when expanding the pb
263+
// graph.
261264
std::unordered_set<t_pb_graph_pin*> seen_pins;
262265

263266
if (pb_graph_node->is_primitive()) {

0 commit comments

Comments
 (0)