@@ -65,7 +65,7 @@ extern void Abc_FrameSetLibGen(void* pLib);
6565namespace cgt {
6666
6767ClockGating::ClockGating (utl::Logger* logger, sta::dbSta* open_sta)
68- : impl_(std::make_unique<Impl>(logger, open_sta))
68+ : impl_(std::make_unique<Impl>(logger, open_sta))
6969{
7070}
7171
@@ -679,12 +679,13 @@ static std::vector<sta::Net*> except(
679679 return result;
680680}
681681
682- void ClockGating::Impl::searchClockGates (sta::Instance* const instance,
683- std::vector<sta::Net*>& good_gate_conds,
684- const std::vector<sta::Net*>::iterator begin,
685- const std::vector<sta::Net*>::iterator end,
686- abc::Abc_Ntk_t& abc_network,
687- const bool clk_enable)
682+ void ClockGating::Impl::searchClockGates (
683+ sta::Instance* const instance,
684+ std::vector<sta::Net*>& good_gate_conds,
685+ const std::vector<sta::Net*>::iterator begin,
686+ const std::vector<sta::Net*>::iterator end,
687+ abc::Abc_Ntk_t& abc_network,
688+ const bool clk_enable)
688689{
689690 int half_len = (end - begin) / 2 ;
690691 if (half_len == 0 ) {
@@ -1105,7 +1106,7 @@ utl::UniquePtrWithDeleter<abc::Abc_Ntk_t> ClockGating::Impl::makeTestNetwork(
11051106}
11061107
11071108bool ClockGating::Impl::simulationTest (abc::Abc_Ntk_t* const abc_network,
1108- const std::string& combined_gate_name)
1109+ const std::string& combined_gate_name)
11091110{
11101111 DebugScopedTimer timer (
11111112 sim_time_, logger_, CGT, " clock_gating" , 3 , " Simulation time: {}" );
@@ -1144,7 +1145,7 @@ bool ClockGating::Impl::simulationTest(abc::Abc_Ntk_t* const abc_network,
11441145}
11451146
11461147bool ClockGating::Impl::satTest (abc::Abc_Ntk_t* const abc_network,
1147- const std::string& combined_gate_name)
1148+ const std::string& combined_gate_name)
11481149{
11491150 DebugScopedTimer timer (
11501151 sat_time_, logger_, CGT, " clock_gating" , 3 , " SAT time: {}" );
@@ -1215,9 +1216,10 @@ bool ClockGating::Impl::isCorrectClockGate(
12151216 return true ;
12161217}
12171218
1218- void ClockGating::Impl::insertClockGate (const std::vector<sta::Instance*>& instances,
1219- const std::vector<sta::Net*>& gate_cond_nets,
1220- const bool clk_enable)
1219+ void ClockGating::Impl::insertClockGate (
1220+ const std::vector<sta::Instance*>& instances,
1221+ const std::vector<sta::Net*>& gate_cond_nets,
1222+ const bool clk_enable)
12211223{
12221224 auto network = sta_->getDbNetwork ();
12231225
@@ -1387,7 +1389,8 @@ void ClockGating::Impl::dump(const char* const name)
13871389 dump_counter_++;
13881390}
13891391
1390- void ClockGating::Impl::dumpAbc (const char * const name, abc::Abc_Ntk_t* const network)
1392+ void ClockGating::Impl::dumpAbc (const char * const name,
1393+ abc::Abc_Ntk_t* const network)
13911394{
13921395 if (!dump_dir_) {
13931396 return ;
@@ -1429,7 +1432,8 @@ std::filesystem::path ClockGating::Impl::getAbcGraphvizDumpPath(
14291432 / (std::to_string (dump_counter_) + " _abc_" + name + " .dot" );
14301433}
14311434
1432- std::filesystem::path ClockGating::Impl::getAbcVerilogDumpPath (const char * const name)
1435+ std::filesystem::path ClockGating::Impl::getAbcVerilogDumpPath (
1436+ const char * const name)
14331437{
14341438 return getDumpDir () / (std::to_string (dump_counter_) + " _abc_" + name + " .v" );
14351439}
0 commit comments