Skip to content

Commit 74b7375

Browse files
authored
Merge branch 'master' into legalizer_frontend
2 parents b69586d + 029fb01 commit 74b7375

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

vpr/src/pack/cluster_placement.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef CLUSTER_PLACEMENT_H
77
#define CLUSTER_PLACEMENT_H
88
#include "arch_types.h"
9+
#include "vpr_types.h"
910

1011
t_cluster_placement_stats* alloc_and_load_cluster_placement_stats();
1112
bool get_next_primitive_list(

vpr/src/pack/cluster_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,8 @@ bool atom_cluster_noc_group_check(AtomBlockId blk_id,
13841384
ClusterBlockId clb_index,
13851385
int verbosity,
13861386
NocGroupId& temp_cluster_noc_grp_id) {
1387-
const NocGroupId atom_noc_grp_id = g_vpr_ctx.cl_helper().atom_noc_grp_id[blk_id];
1387+
const auto& atom_noc_grp_ids = g_vpr_ctx.cl_helper().atom_noc_grp_id;
1388+
const NocGroupId atom_noc_grp_id = atom_noc_grp_ids.empty() ? NocGroupId::INVALID() : atom_noc_grp_ids[blk_id];
13881389

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

0 commit comments

Comments
 (0)