@@ -134,7 +134,7 @@ static void print_chain_starting_points(t_pack_patterns* chain_pattern);
134
134
*/
135
135
static std::vector<t_pack_patterns> alloc_and_load_pack_patterns (const std::vector<t_logical_block_type>& logical_block_types) {
136
136
int L_num_blocks;
137
- std::vector<t_pack_patterns> list_of_packing_patterns ;
137
+ std::vector<t_pack_patterns> packing_patterns ;
138
138
t_pb_graph_edge* expansion_edge;
139
139
140
140
/* alloc and initialize array of packing patterns based on architecture complex blocks */
@@ -143,7 +143,7 @@ static std::vector<t_pack_patterns> alloc_and_load_pack_patterns(const std::vect
143
143
discover_pattern_names_in_pb_graph_node (type.pb_graph_head , pattern_names);
144
144
}
145
145
146
- list_of_packing_patterns = alloc_and_init_pattern_list_from_hash (pattern_names);
146
+ packing_patterns = alloc_and_init_pattern_list_from_hash (pattern_names);
147
147
148
148
/* load packing patterns by traversing the edges to find edges belonging to pattern */
149
149
for (size_t i = 0 ; i < pattern_names.size (); i++) {
@@ -155,30 +155,30 @@ static std::vector<t_pack_patterns> alloc_and_load_pack_patterns(const std::vect
155
155
}
156
156
157
157
L_num_blocks = 0 ;
158
- list_of_packing_patterns [i].base_cost = 0 ;
158
+ packing_patterns [i].base_cost = 0 ;
159
159
// use the found expansion edge to build the pack pattern
160
160
backward_expand_pack_pattern_from_edge (expansion_edge,
161
- list_of_packing_patterns [i], nullptr , nullptr , &L_num_blocks);
162
- list_of_packing_patterns [i].num_blocks = L_num_blocks;
161
+ packing_patterns [i], nullptr , nullptr , &L_num_blocks);
162
+ packing_patterns [i].num_blocks = L_num_blocks;
163
163
164
164
/* Default settings: A section of a netlist must match all blocks in a pack
165
165
* pattern before it can be made a molecule except for carry-chains.
166
166
* For carry-chains, since carry-chains are typically quite flexible in terms
167
167
* of size, it is optional whether or not an atom in a netlist matches any
168
168
* particular block inside the chain */
169
- list_of_packing_patterns [i].is_block_optional = new bool [L_num_blocks];
169
+ packing_patterns [i].is_block_optional = new bool [L_num_blocks];
170
170
for (int k = 0 ; k < L_num_blocks; k++) {
171
- list_of_packing_patterns [i].is_block_optional [k] = false ;
172
- if (list_of_packing_patterns [i].is_chain && list_of_packing_patterns [i].root_block ->block_id != k) {
173
- list_of_packing_patterns [i].is_block_optional [k] = true ;
171
+ packing_patterns [i].is_block_optional [k] = false ;
172
+ if (packing_patterns [i].is_chain && packing_patterns [i].root_block ->block_id != k) {
173
+ packing_patterns [i].is_block_optional [k] = true ;
174
174
}
175
175
}
176
176
177
177
// if this is a chain pattern (extends between complex blocks), check if there
178
178
// are multiple equivalent chains with different starting and ending points
179
- if (list_of_packing_patterns [i].is_chain ) {
180
- find_all_equivalent_chains (&list_of_packing_patterns [i], type.pb_graph_head );
181
- print_chain_starting_points (&list_of_packing_patterns [i]);
179
+ if (packing_patterns [i].is_chain ) {
180
+ find_all_equivalent_chains (&packing_patterns [i], type.pb_graph_head );
181
+ print_chain_starting_points (&packing_patterns [i]);
182
182
}
183
183
184
184
// if pack pattern i is found to belong to current block type, go to next pack pattern
@@ -188,12 +188,12 @@ static std::vector<t_pack_patterns> alloc_and_load_pack_patterns(const std::vect
188
188
189
189
// Sanity check, every pattern should have a root block
190
190
for (size_t i = 0 ; i < pattern_names.size (); ++i) {
191
- if (list_of_packing_patterns [i].root_block == nullptr ) {
192
- VPR_FATAL_ERROR (VPR_ERROR_ARCH, " Failed to find root block for pack pattern %s" , list_of_packing_patterns [i].name );
191
+ if (packing_patterns [i].root_block == nullptr ) {
192
+ VPR_FATAL_ERROR (VPR_ERROR_ARCH, " Failed to find root block for pack pattern %s" , packing_patterns [i].name );
193
193
}
194
194
}
195
195
196
- return list_of_packing_patterns ;
196
+ return packing_patterns ;
197
197
}
198
198
199
199
/* *
0 commit comments