Skip to content

Commit de84b8a

Browse files
committed
[vpr][pack] initializer intra_lb_pb_pin_lookup and pass it to alloc_and_load_pb_route
1 parent a839dc2 commit de84b8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/pack/cluster_legalizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ void ClusterLegalizer::clean_cluster(LegalizationClusterId cluster_id) {
15711571
// Load the pb_route so we can free the cluster router data.
15721572
// The pb_route is used when creating a netlist from the legalized clusters.
15731573
std::vector<t_intra_lb_net>* saved_lb_nets = cluster.router_data->saved_lb_nets;
1574-
cluster.pb->pb_route = alloc_and_load_pb_route(saved_lb_nets, cluster.type);
1574+
cluster.pb->pb_route = alloc_and_load_pb_route(saved_lb_nets, cluster.type, intra_lb_pb_pin_lookup_);
15751575
// Free the router data.
15761576
free_router_data(cluster.router_data);
15771577
cluster.router_data = nullptr;
@@ -1631,6 +1631,7 @@ ClusterLegalizer::ClusterLegalizer(const AtomNetlist& atom_netlist,
16311631
log_verbosity_ = log_verbosity;
16321632
VTR_ASSERT(g_vpr_ctx.atom().lookup().atom_pb_bimap().is_empty());
16331633
atom_pb_lookup_ = AtomPBBimap();
1634+
intra_lb_pb_pin_lookup_ = IntraLbPbPinLookup(g_vpr_ctx.device().logical_block_types);
16341635
}
16351636

16361637
void ClusterLegalizer::reset() {

0 commit comments

Comments
 (0)