@@ -384,9 +384,7 @@ bool vpr_flow(t_vpr_setup& vpr_setup, t_arch& arch) {
384
384
}
385
385
}
386
386
387
- // For the time being, we decided to create the flat graph after placement is done. Thus, the is_flat parameter for this function
388
- // , since it is called before routing, should be false.
389
- vpr_create_device (vpr_setup, arch, false );
387
+ vpr_create_device (vpr_setup, arch);
390
388
391
389
// TODO: Placer still assumes that cluster net list is used - graphics can not work with flat routing yet
392
390
vpr_init_graphics (vpr_setup, arch, false );
@@ -449,7 +447,7 @@ bool vpr_flow(t_vpr_setup& vpr_setup, t_arch& arch) {
449
447
return route_status.success ();
450
448
}
451
449
452
- void vpr_create_device (t_vpr_setup& vpr_setup, const t_arch& arch, bool is_flat ) {
450
+ void vpr_create_device (t_vpr_setup& vpr_setup, const t_arch& arch) {
453
451
vtr::ScopedStartFinishTimer timer (" Create Device" );
454
452
vpr_create_device_grid (vpr_setup, arch);
455
453
@@ -458,7 +456,9 @@ void vpr_create_device(t_vpr_setup& vpr_setup, const t_arch& arch, bool is_flat)
458
456
vpr_setup_noc (vpr_setup, arch);
459
457
460
458
if (vpr_setup.PlacerOpts .place_chan_width != NO_FIXED_CHANNEL_WIDTH) {
461
- vpr_create_rr_graph (vpr_setup, arch, vpr_setup.PlacerOpts .place_chan_width , is_flat);
459
+ // The RR graph built by this function should contain only the intra-cluster resources.
460
+ // If the flat router is used, additional resources are added when routing begins.
461
+ vpr_create_rr_graph (vpr_setup, arch, vpr_setup.PlacerOpts .place_chan_width , false );
462
462
}
463
463
}
464
464
0 commit comments