Skip to content

Commit da7d010

Browse files
error out when compressed router lookahead is used with a 3d arch
1 parent 322f30f commit da7d010

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

vpr/src/route/router_lookahead/router_lookahead_compressed_map.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,16 @@ std::pair<float, float> CompressedMapLookahead::get_expected_delay_and_cong(RRNo
509509

510510
void CompressedMapLookahead::compute(const std::vector<t_segment_inf>& segment_inf) {
511511
vtr::ScopedStartFinishTimer timer("Computing router lookahead map");
512-
//First compute the delay map when starting from the various wire types
513-
//(CHANX/CHANY)in the routing architecture
512+
513+
VTR_ASSERT_MSG(g_vpr_ctx.device().grid.get_num_layers() == 1,
514+
"Compressed map router lookahead does not support 3D architectures.");
515+
516+
// First compute the delay map when starting from the various wire types
517+
// (CHANX/CHANY) in the routing architecture
514518
compute_router_wire_compressed_lookahead(segment_inf, route_verbosity_);
515519

516-
//Next, compute which wire types are accessible (and the cost to reach them)
517-
//from the different physical tile type's SOURCEs & OPINs
520+
// Next, compute which wire types are accessible (and the cost to reach them)
521+
// from the different physical tile type's SOURCEs & OPINs
518522
this->src_opin_delays = util::compute_router_src_opin_lookahead(is_flat_, route_verbosity_);
519523
}
520524

0 commit comments

Comments
 (0)