@@ -173,7 +173,7 @@ static void sync_pb_routes_to_routing(void) {
173
173
/* Don't erase entries for nets without routing in place (clocks, globals...) */
174
174
std::vector<int > pins_to_erase;
175
175
auto & pb_routes = cluster_ctx.clb_nlist .block_pb (clb_blk_id)->pb_route ;
176
- for (auto & [pin, pb_route]: pb_routes){
176
+ for (auto & [pin, pb_route] : pb_routes) {
177
177
/* No route tree: no routing in place, it is global or clock */
178
178
if (!route_ctx.route_trees [ParentNetId (int (pb_route.atom_net_id ))])
179
179
continue ;
@@ -266,27 +266,27 @@ static void sync_clustered_netlist_to_routing(void) {
266
266
267
267
for (auto net_id : clb_netlist.nets ()) {
268
268
auto atom_net_id = atom_lookup.atom_net (net_id);
269
- if (!route_ctx.route_trees [ParentNetId (int (atom_net_id))])
269
+ if (!route_ctx.route_trees [ParentNetId (int (atom_net_id))])
270
270
continue ;
271
271
272
272
nets_to_remove.push_back (net_id);
273
273
}
274
274
/* Mark ports and pins for removal. Don't remove a port if
275
275
* it has at least one pin remaining */
276
- for (auto port_id: clb_netlist.ports ()){
276
+ for (auto port_id : clb_netlist.ports ()) {
277
277
size_t skipped_pins = 0 ;
278
278
279
- for (auto pin_id: clb_netlist.port_pins (port_id)){
279
+ for (auto pin_id : clb_netlist.port_pins (port_id)) {
280
280
ClusterNetId clb_net_id = clb_netlist.pin_net (pin_id);
281
281
auto atom_net_id = atom_lookup.atom_net (clb_net_id);
282
- if (atom_net_id && !route_ctx.route_trees [ParentNetId (int (atom_net_id))]){
282
+ if (atom_net_id && !route_ctx.route_trees [ParentNetId (int (atom_net_id))]) {
283
283
skipped_pins++;
284
- }else {
284
+ } else {
285
285
pins_to_remove.push_back (pin_id);
286
286
}
287
287
}
288
288
289
- if (!skipped_pins) // All pins have been removed, remove port
289
+ if (!skipped_pins) // All pins have been removed, remove port
290
290
ports_to_remove.push_back (port_id);
291
291
}
292
292
@@ -334,7 +334,7 @@ static void sync_clustered_netlist_to_routing(void) {
334
334
/* OPIN on the tile: create a new clb_net_id and add all ports & pins into here
335
335
* Due to how the route tree is traversed, all nodes until the next OPIN on the tile will
336
336
* be under this OPIN, so this is valid (we don't need to get the branch explicitly) */
337
- if (node_type == OPIN){
337
+ if (node_type == OPIN) {
338
338
std::string net_name = atom_ctx.netlist ().net_name (parent_net_id) + " _" + std::to_string (clb_nets_so_far);
339
339
clb_net_id = clb_netlist.create_net (net_name);
340
340
atom_ctx.mutable_lookup ().add_atom_clb_net (atom_net_id, clb_net_id);
@@ -362,10 +362,10 @@ static void sync_clustered_netlist_to_routing(void) {
362
362
/* Pin already exists. This means a global was connected to here. */
363
363
if (clb_netlist.port_pin (port_id, pb_graph_pin->pin_number )) {
364
364
VTR_LOG_WARN (" Pin %s of block %s has a global or clock net"
365
- " connected and it has a routing clash with the flat router."
366
- " This may cause inconsistent results.\n " ,
367
- pb_graph_pin->to_string ().c_str (),
368
- clb_netlist.block_name (clb).c_str ());
365
+ " connected and it has a routing clash with the flat router."
366
+ " This may cause inconsistent results.\n " ,
367
+ pb_graph_pin->to_string ().c_str (),
368
+ clb_netlist.block_name (clb).c_str ());
369
369
continue ;
370
370
}
371
371
ClusterPinId new_pin = clb_netlist.create_pin (port_id, pb_graph_pin->pin_number , clb_net_id, pin_type, pb_graph_pin->pin_count_in_cluster );
@@ -415,7 +415,7 @@ static void fixup_atom_pb_graph_pin_mapping(void) {
415
415
continue ;
416
416
}
417
417
418
- for (AtomPinId atom_pin: atom_ctx.netlist ().port_pins (atom_port)){
418
+ for (AtomPinId atom_pin : atom_ctx.netlist ().port_pins (atom_port)) {
419
419
/* Match net IDs from pb_route and atom netlist and connect in lookup */
420
420
if (pb_route.atom_net_id == atom_ctx.netlist ().pin_net (atom_pin)) {
421
421
atom_ctx.mutable_lookup ().set_atom_pin_pb_graph_pin (atom_pin, atom_pbg_pin);
0 commit comments