@@ -342,60 +342,6 @@ void GateMateImpl::postRoute()
342
342
}
343
343
}
344
344
}
345
- log_break ();
346
- log_info (" Resources spent on routing:\n " );
347
- for (auto &net : ctx->nets ) {
348
- NetInfo *ni = net.second .get ();
349
- for (auto &w : ni->wires ) {
350
- if (w.second .pip != PipId ()) {
351
- const auto extra_data = *reinterpret_cast <const GateMatePipExtraDataPOD *>(
352
- chip_pip_info (ctx->chip_info , w.second .pip ).extra_data .get ());
353
- if (!extra_data.name )
354
- continue ;
355
- if (extra_data.type == PipExtra::PIP_EXTRA_CPE) {
356
- Loc l = ctx->getPipLocation (w.second .pip );
357
- BelId bel_u = ctx->getBelByLocation (Loc (l.x ,l.y ,0 ));
358
- BelId bel_l = ctx->getBelByLocation (Loc (l.x ,l.y ,1 ));
359
- if (IdString (extra_data.name ) == id_RAM_O2) {
360
- if (ctx->getBoundBelCell (bel_u))
361
- log_error (" Issue adding pass trough signal.\n " );
362
- CellInfo *cell = ctx->createCell (ctx->id (ctx->nameOfBel (bel_u)), id_CPE_HALF_U);
363
- ctx->bindBel (bel_u, cell, PlaceStrength::STRENGTH_FIXED);
364
- // Propagate IN1 to O2 and RAM_O2
365
- cell->params [id_INIT_L00] = Property (0b1010 , 4 );
366
- cell->params [id_INIT_L10] = Property (0b1010 , 4 );
367
- cell->params [id_C_O2] = Property (0b11 , 2 );
368
- cell->params [id_C_RAM_O2] = Property (1 , 1 );
369
- } else if (IdString (extra_data.name ) == id_RAM_O1) {
370
- if (ctx->getBoundBelCell (bel_l))
371
- log_error (" Issue adding pass trough signal.\n " );
372
- CellInfo *cell = ctx->createCell (ctx->id (ctx->nameOfBel (bel_l)), id_CPE_HALF_L);
373
- ctx->bindBel (bel_l, cell, PlaceStrength::STRENGTH_FIXED);
374
- // Propagate IN1 to O1 and RAM_O1
375
- cell->params [id_INIT_L02] = Property (0b1010 , 4 );
376
- cell->params [id_INIT_L11] = Property (0b1010 , 4 );
377
- cell->params [id_INIT_L20] = Property (0b1100 , 4 );
378
- cell->params [id_C_O1] = Property (0b11 , 2 );
379
- cell->params [id_C_RAM_O1] = Property (1 , 1 );
380
- } else if (IdString (extra_data.name ) == id_RAM_I1) {
381
- if (ctx->getBoundBelCell (bel_l))
382
- log_error (" Issue adding pass trough signal.\n " );
383
- CellInfo *cell = ctx->createCell (ctx->id (ctx->nameOfBel (bel_l)), id_CPE_HALF_L);
384
- ctx->bindBel (bel_l, cell, PlaceStrength::STRENGTH_FIXED);
385
- cell->params [id_C_RAM_I1] = Property (1 , 1 );
386
- } else if (IdString (extra_data.name ) == id_RAM_I2) {
387
- if (ctx->getBoundBelCell (bel_u))
388
- log_error (" Issue adding pass trough signal.\n " );
389
- CellInfo *cell = ctx->createCell (ctx->id (ctx->nameOfBel (bel_u)), id_CPE_HALF_U);
390
- ctx->bindBel (bel_u, cell, PlaceStrength::STRENGTH_FIXED);
391
- cell->params [id_C_RAM_I2] = Property (1 , 1 );
392
- } else {
393
- log_error (" Issue adding pass trough signal for %s.\n " ,IdString (extra_data.name ).c_str (ctx));
394
- }
395
- }
396
- }
397
- }
398
- }
399
345
for (auto &cell : ctx->cells ) {
400
346
if (cell.second ->type .in (id_CPE_HALF_U)) {
401
347
uint8_t func = int_or_default (cell.second ->params , id_C_FUNCTION, 0 );
0 commit comments