File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -371,17 +371,18 @@ struct ClockgatePass : public Pass {
371
371
if (!matching_icg_desc)
372
372
continue ;
373
373
374
- Cell* icg = module ->addCell (NEW_ID, matching_icg_desc->name );
374
+ Cell* cell = *ce_ffs.begin ();
375
+ Cell* icg = module ->addCell (NEW_ID2_SUFFIX (" icg" ), matching_icg_desc->name );
375
376
icg->setPort (matching_icg_desc->ce_pin , clk.ce_bit );
376
377
icg->setPort (matching_icg_desc->clk_in_pin , clk.clk_bit );
377
- gclk.new_net = module ->addWire (NEW_ID );
378
+ gclk.new_net = module ->addWire (NEW_ID2_SUFFIX ( " gclk " ) );
378
379
icg->setPort (matching_icg_desc->clk_out_pin , gclk.new_net );
379
380
// Tie low DFT ports like scan chain enable
380
381
for (auto port : matching_icg_desc->tie_lo_pins )
381
382
icg->setPort (port, Const (0 , 1 ));
382
383
// Fix CE polarity if needed
383
384
if (!clk.pol_ce ) {
384
- SigBit ce_fixed_pol = module ->NotGate (NEW_ID , clk.ce_bit );
385
+ SigBit ce_fixed_pol = module ->NotGate (NEW_ID2_SUFFIX ( " ce_not " ) , clk.ce_bit );
385
386
icg->setPort (matching_icg_desc->ce_pin , ce_fixed_pol);
386
387
}
387
388
}
You can’t perform that action at this time.
0 commit comments