@@ -203,7 +203,7 @@ void PdnGen::trimShapes()
203203 std::map<odb::dbTechLayer*, std::unique_ptr<TechLayer>> tech_layers;
204204
205205 for (auto * grid : grids) {
206- if (grid->type () == Grid::Existing ) {
206+ if (grid->type () == Grid::kExisting ) {
207207 // fixed shapes, so nothing to do
208208 continue ;
209209 }
@@ -458,10 +458,10 @@ void PdnGen::makeCoreGrid(
458458 const std::vector<odb::dbTechLayer*>& pad_pin_layers)
459459{
460460 auto grid = std::make_unique<CoreGrid>(
461- domain, name, starts_with == POWER , generate_obstructions);
461+ domain, name, starts_with == kPower , generate_obstructions);
462462 grid->setPinLayers (pin_layers);
463463
464- PowerSwitchNetworkType control_network = PowerSwitchNetworkType::DAISY ;
464+ PowerSwitchNetworkType control_network = PowerSwitchNetworkType::kDaisy ;
465465 if (strlen (powercontrolnetwork) > 0 ) {
466466 control_network
467467 = GridSwitchedPower::fromString (powercontrolnetwork, logger_);
@@ -549,7 +549,7 @@ void PdnGen::makeInstanceGrid(
549549 grid = std::make_unique<BumpGrid>(domain, name, inst);
550550 } else {
551551 grid = std::make_unique<InstanceGrid>(
552- domain, name, starts_with == POWER , inst, generate_obstructions);
552+ domain, name, starts_with == kPower , inst, generate_obstructions);
553553 }
554554 if (!std::ranges::all_of (halo, [](int v) { return v == 0 ; })) {
555555 grid->addHalo (halo);
@@ -599,15 +599,15 @@ void PdnGen::makeRing(Grid* grid,
599599 ring->setPadOffset (pad_offset);
600600 }
601601 ring->setExtendToBoundary (extend);
602- if (starts_with != GRID ) {
603- ring->setStartWithPower (starts_with == POWER );
602+ if (starts_with != kGrid ) {
603+ ring->setStartWithPower (starts_with == kPower );
604604 }
605605 if (allow_out_of_die) {
606606 ring->setAllowOutsideDieArea ();
607607 }
608608 ring->setNets (nets);
609609 grid->addRing (std::move (ring));
610- if (!pad_pin_layers.empty () && grid->type () == Grid::Core ) {
610+ if (!pad_pin_layers.empty () && grid->type () == Grid::kCore ) {
611611 auto * core_grid = static_cast <CoreGrid*>(grid);
612612 core_grid->setupDirectConnect (pad_pin_layers);
613613 for (const auto & comp : core_grid->getStraps ()) {
@@ -649,8 +649,8 @@ void PdnGen::makeStrap(Grid* grid,
649649 strap->setExtend (extend);
650650 strap->setOffset (offset);
651651 strap->setSnapToGrid (snap);
652- if (starts_with != GRID ) {
653- strap->setStartWithPower (starts_with == POWER );
652+ if (starts_with != kGrid ) {
653+ strap->setStartWithPower (starts_with == kPower );
654654 }
655655 strap->setNets (nets);
656656 strap->setAllowOutsideCoreArea (allow_out_of_core);
@@ -736,7 +736,7 @@ void PdnGen::updateRenderer(bool reset) const
736736
737737void PdnGen::createSrouteWires (
738738 const char * net,
739- const char * outerNet ,
739+ const char * outer_net ,
740740 odb::dbTechLayer* layer0,
741741 odb::dbTechLayer* layer1,
742742 int cut_pitch_x,
@@ -751,7 +751,7 @@ void PdnGen::createSrouteWires(
751751 const std::vector<odb::dbInst*>& insts)
752752{
753753 sroute_->createSrouteWires (net,
754- outerNet ,
754+ outer_net ,
755755 layer0,
756756 layer1,
757757 cut_pitch_x,
0 commit comments