Skip to content

Commit

Permalink
Merge pull request verilog-to-routing#2618 from verilog-to-routing/fi…
Browse files Browse the repository at this point in the history
…x_segfault_atom_cluster_noc_group_check

Fix segfault in atom_cluster_noc_group_check()
  • Loading branch information
vaughnbetz authored Jun 17, 2024
2 parents 4c7d5ff + a14aee1 commit 029fb01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vpr/src/pack/cluster_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ bool atom_cluster_noc_group_check(AtomBlockId blk_id,
ClusterBlockId clb_index,
int verbosity,
NocGroupId& temp_cluster_noc_grp_id) {
const NocGroupId atom_noc_grp_id = g_vpr_ctx.cl_helper().atom_noc_grp_id[blk_id];
const auto& atom_noc_grp_ids = g_vpr_ctx.cl_helper().atom_noc_grp_id;
const NocGroupId atom_noc_grp_id = atom_noc_grp_ids.empty() ? NocGroupId::INVALID() : atom_noc_grp_ids[blk_id];

if (temp_cluster_noc_grp_id == NocGroupId::INVALID()) {
// the cluster does not have a NoC group
Expand Down

0 comments on commit 029fb01

Please sign in to comment.