45
45
*/
46
46
static void alloc_and_load_pb_stats (t_pb* pb) {
47
47
/* Call this routine when starting to fill up a new cluster. It resets *
48
- * the gain vector, etc. */
48
+ * the gain vector, etc. */
49
49
50
50
pb->pb_stats = new t_pb_stats;
51
51
@@ -61,7 +61,7 @@ static void alloc_and_load_pb_stats(t_pb* pb) {
61
61
* @brief Check the atom blocks of a cluster pb. Used in the verify method.
62
62
*/
63
63
/* TODO: May want to check that all atom blocks are actually reached */
64
- static void check_cluster_atom_blocks (t_pb* pb, std::unordered_set<AtomBlockId>& blocks_checked, const AtomPBBimap & atom_pb_lookup) {
64
+ static void check_cluster_atom_blocks (t_pb* pb, std::unordered_set<AtomBlockId>& blocks_checked, const AtomPBBimap& atom_pb_lookup) {
65
65
const AtomContext& atom_ctx = g_vpr_ctx.atom ();
66
66
67
67
const t_pb_type* pb_type = pb->pb_graph_node ->pb_type ;
@@ -191,7 +191,7 @@ static bool check_cluster_floorplanning(AtomBlockId atom_blk_id,
191
191
VTR_LOGV (log_verbosity > 3 ,
192
192
" \t\t\t Intersect: Atom block %d passed cluster, cluster PR was updated with intersection result \n " ,
193
193
atom_blk_id);
194
- return true ;
194
+ return true ;
195
195
}
196
196
197
197
/* *
@@ -390,8 +390,8 @@ static bool primitive_memory_sibling_feasible(const AtomBlockId blk_id, const t_
390
390
}
391
391
392
392
/*
393
- * @brief Check if the given atom is feasible in the given pb.
394
- */
393
+ * @brief Check if the given atom is feasible in the given pb.
394
+ */
395
395
static bool primitive_feasible (const AtomBlockId blk_id, t_pb* cur_pb, const AtomPBBimap& atom_to_pb) {
396
396
const t_pb_type* cur_pb_type = cur_pb->pb_graph_node ->pb_type ;
397
397
@@ -408,7 +408,7 @@ static bool primitive_feasible(const AtomBlockId blk_id, t_pb* cur_pb, const Ato
408
408
* - all siblings must share all nets, including open nets, with the exception of data nets */
409
409
410
410
/* find sibling if one exists */
411
- const t_pb * sibling_memory_pb = find_memory_sibling (cur_pb);
411
+ const t_pb* sibling_memory_pb = find_memory_sibling (cur_pb);
412
412
AtomBlockId sibling_memory_blk_id = atom_to_pb.pb_atom (sibling_memory_pb);
413
413
414
414
if (sibling_memory_blk_id) {
@@ -429,17 +429,17 @@ static bool primitive_feasible(const AtomBlockId blk_id, t_pb* cur_pb, const Ato
429
429
*/
430
430
static enum e_block_pack_status
431
431
try_place_atom_block_rec (const t_pb_graph_node* pb_graph_node,
432
- const AtomBlockId blk_id,
433
- t_pb* cb,
434
- t_pb** parent,
435
- const LegalizationClusterId cluster_id,
436
- vtr::vector_map<AtomBlockId, LegalizationClusterId>& atom_cluster,
437
- const PackMoleculeId molecule_id,
438
- t_lb_router_data* router_data,
439
- int verbosity,
440
- const Prepacker& prepacker,
441
- const vtr::vector_map<MoleculeChainId, t_clustering_chain_info>& clustering_chain_info,
442
- AtomPBBimap& atom_to_pb) {
432
+ const AtomBlockId blk_id,
433
+ t_pb* cb,
434
+ t_pb** parent,
435
+ const LegalizationClusterId cluster_id,
436
+ vtr::vector_map<AtomBlockId, LegalizationClusterId>& atom_cluster,
437
+ const PackMoleculeId molecule_id,
438
+ t_lb_router_data* router_data,
439
+ int verbosity,
440
+ const Prepacker& prepacker,
441
+ const vtr::vector_map<MoleculeChainId, t_clustering_chain_info>& clustering_chain_info,
442
+ AtomPBBimap& atom_to_pb) {
443
443
const AtomContext& atom_ctx = g_vpr_ctx.atom ();
444
444
445
445
VTR_ASSERT_SAFE (cb != nullptr );
@@ -450,11 +450,11 @@ try_place_atom_block_rec(const t_pb_graph_node* pb_graph_node,
450
450
if (pb_graph_node->parent_pb_graph_node != cb->pb_graph_node ) {
451
451
t_pb* my_parent = nullptr ;
452
452
block_pack_status = try_place_atom_block_rec (pb_graph_node->parent_pb_graph_node , blk_id, cb,
453
- &my_parent, cluster_id,
454
- atom_cluster,
455
- molecule_id, router_data,
456
- verbosity,
457
- prepacker, clustering_chain_info, atom_to_pb);
453
+ &my_parent, cluster_id,
454
+ atom_cluster,
455
+ molecule_id, router_data,
456
+ verbosity,
457
+ prepacker, clustering_chain_info, atom_to_pb);
458
458
parent_pb = my_parent;
459
459
} else {
460
460
parent_pb = cb;
@@ -543,10 +543,10 @@ try_place_atom_block_rec(const t_pb_graph_node* pb_graph_node,
543
543
VTR_ASSERT (molecule.chain_id .is_valid ());
544
544
const t_chain_info& prepack_chain_info = prepacker.get_molecule_chain_info (molecule.chain_id );
545
545
block_pack_status = check_chain_root_placement_feasibility (pb_graph_node,
546
- prepack_chain_info,
547
- clustering_chain_info[molecule.chain_id ],
548
- molecule.pack_pattern ,
549
- blk_id);
546
+ prepack_chain_info,
547
+ clustering_chain_info[molecule.chain_id ],
548
+ molecule.pack_pattern ,
549
+ blk_id);
550
550
}
551
551
}
552
552
@@ -629,7 +629,7 @@ static int net_sinks_reachable_in_cluster(const t_pb_graph_pin* driver_pb_gpin,
629
629
630
630
/* *
631
631
* @brief Returns the pb_graph_pin of the atom pin defined by the driver_pin_id in the driver_pb
632
- */
632
+ */
633
633
static t_pb_graph_pin* get_driver_pb_graph_pin (const t_pb* driver_pb, const AtomPinId driver_pin_id) {
634
634
const AtomNetlist& atom_netlist = g_vpr_ctx.atom ().netlist ();
635
635
@@ -792,8 +792,8 @@ static void compute_and_mark_lookahead_pins_used_for_pin(const t_pb_graph_pin* p
792
792
* @brief Determine if pins of speculatively packed pb are legal
793
793
*/
794
794
static void compute_and_mark_lookahead_pins_used (const AtomBlockId blk_id,
795
- const vtr::vector_map<AtomBlockId, LegalizationClusterId>& atom_cluster,
796
- const AtomPBBimap& atom_to_pb) {
795
+ const vtr::vector_map<AtomBlockId, LegalizationClusterId>& atom_cluster,
796
+ const AtomPBBimap& atom_to_pb) {
797
797
const AtomNetlist& atom_netlist = g_vpr_ctx.atom ().netlist ();
798
798
799
799
const t_pb* cur_pb = atom_to_pb.atom_pb (blk_id);
@@ -1417,7 +1417,7 @@ ClusterLegalizer::start_new_cluster(PackMoleculeId molecule_id,
1417
1417
1418
1418
// Allocate and load the LB router data
1419
1419
t_lb_router_data* router_data = alloc_and_load_router_data (&lb_type_rr_graphs_[cluster_type->index ],
1420
- cluster_type);
1420
+ cluster_type);
1421
1421
1422
1422
// Allocate and load the cluster's placement stats
1423
1423
t_intra_cluster_placement_stats* cluster_placement_stats = alloc_and_load_cluster_placement_stats (cluster_type, cluster_mode);
@@ -1468,7 +1468,7 @@ ClusterLegalizer::start_new_cluster(PackMoleculeId molecule_id,
1468
1468
}
1469
1469
1470
1470
e_block_pack_status ClusterLegalizer::add_mol_to_cluster (PackMoleculeId molecule_id,
1471
- LegalizationClusterId cluster_id) {
1471
+ LegalizationClusterId cluster_id) {
1472
1472
// Safety asserts to make sure the inputs are valid.
1473
1473
VTR_ASSERT_SAFE (cluster_id.is_valid () && (size_t )cluster_id < legalization_clusters_.size ());
1474
1474
VTR_ASSERT (legalization_cluster_ids_[cluster_id].is_valid () && " Cannot add to a destroyed cluster" );
0 commit comments