@@ -232,9 +232,13 @@ void PrintArchInfo(FILE* Echo, const t_arch* arch) {
232
232
}
233
233
234
234
fprintf (Echo, " \t Input Connect Block Switch Name Within a Same Die: %s\n " , arch->ipin_cblock_switch_name [0 ].c_str ());
235
+
235
236
// if there is more than one layer available, print the connection block switch name that is used for connection between two dice
236
- if (arch->grid_layouts .size () > 1 ) {
237
- fprintf (Echo, " \t Input Connect Block Switch Name Between Two Dice: %s\n " , arch->ipin_cblock_switch_name [1 ].c_str ());
237
+ for (const auto & layout : arch->grid_layouts ){
238
+ int num_layers = (int )layout.layers .size ();
239
+ if (num_layers > 1 ){
240
+ fprintf (Echo, " \t Input Connect Block Switch Name Between Two Dice: %s\n " , arch->ipin_cblock_switch_name [1 ].c_str ());
241
+ }
238
242
}
239
243
240
244
fprintf (Echo, " *************************************************\n\n " );
@@ -287,9 +291,12 @@ void PrintArchInfo(FILE* Echo, const t_arch* arch) {
287
291
fprintf (Echo, " \t\t\t\t type unidir mux_name for within die connections: %s\n " ,
288
292
arch->Switches [seg.arch_wire_switch ].name .c_str ());
289
293
// if there is more than one layer available, print the segment switch name that is used for connection between two dice
290
- if (arch->grid_layouts .size () > 1 ) {
291
- fprintf (Echo, " \t\t\t\t type unidir mux_name for between two dice connections: %s\n " ,
294
+ for (const auto & layout : arch->grid_layouts ){
295
+ int num_layers = (int )layout.layers .size ();
296
+ if (num_layers > 1 ){
297
+ fprintf (Echo, " \t\t\t\t type unidir mux_name for between two dice connections: %s\n " ,
292
298
arch->Switches [seg.arch_opin_between_dice_switch ].name .c_str ());
299
+ }
293
300
}
294
301
} else { // Should be bidir
295
302
fprintf (Echo, " \t\t\t\t type bidir wire_switch %s arch_opin_switch %s\n " ,
0 commit comments