Skip to content

Commit 621ccfc

Browse files
committed
cgt: Fix memory leak, remove redundant ABC calls
Signed-off-by: Krzysztof Bieganski <[email protected]>
1 parent eada1bb commit 621ccfc

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

src/cgt/src/ClockGating.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,6 @@ void ClockGating::run()
375375
abc_factory_->AddDbSta(sta_);
376376
abc_library_ = std::make_unique<cut::AbcLibrary>(abc_factory_->Build());
377377

378-
abc::Abc_SclInstallGenlib(abc_library_->abc_library(),
379-
/*Slew=*/0,
380-
/*Gain=*/0,
381-
/*fUseAll=*/0,
382-
/*nGatesMin=*/0);
383-
abc::Mio_LibraryTransferCellIds();
384-
385378
dump("pre");
386379

387380
std::vector<sta::Instance*> instances;

src/cgt/test/aes_nangate45.ok

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[WARNING CUT-0021] Leakage power doesn't exist for cell LOGIC0_X1
44
[WARNING CUT-0021] Leakage power doesn't exist for cell LOGIC1_X1
55
Derived GENLIB library "NangateOpenCellLibrary" with 92 gates.
6-
Warning: Detected 2 multi-output gates (for example, "FA_X1").
7-
SC library cannot be found.
86
[INFO CGT-0003] Clock gating instance 0/562
97
[INFO CGT-0004] Accepted clock enable '_13148_ | _04712_ | _04712_ | _00499_ | _05106_ | _05208_' for instance dcnt\[0\]$_SDFFE_PN0P_
108
[INFO CGT-0004] Accepted clock enable '_13151_ | _11055_ | _07150_ | _09231_ | _11144_ | _05152_ | _07152_ | _04670_' for instance ld_r$_DFF_P_

src/cgt/test/countdown_asap7.ok

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
[INFO ODB-0227] LEF file: asap7/asap7_tech_1x_201209.lef, created 30 layers, 9 vias
1212
[INFO ODB-0227] LEF file: asap7/asap7sc7p5t_28_R_1x_220121a.lef, created 212 library cells
1313
Derived GENLIB library "asap7sc7p5t_AO_RVT_FF_nldm_211120" with 169 gates.
14-
Warning: Detected 2 multi-output gates (for example, "FAx1_ASAP7_75t_R").
15-
SC library cannot be found.
1614
[INFO CGT-0003] Clock gating instance 0/3
1715
[INFO CGT-0004] Accepted clock enable '_05_ | _02_ | _01_ | _10_ | _03_' for instance val\[0\]$_DFF_PP1_
1816
No differences found.

src/cgt/test/ibex_sky130hd.ok

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[INFO ODB-0227] LEF file: sky130hd/sky130hd.tlef, created 13 layers, 25 vias
22
[INFO ODB-0227] LEF file: sky130hd/sky130hd_std_cell.lef, created 437 library cells
33
Derived GENLIB library "sky130_fd_sc_hd__ss_n40C_1v40" with 317 gates.
4-
Warning: Detected 9 multi-output gates (for example, "sky130_fd_sc_hd__fa_1").
5-
SC library cannot be found.
64
[INFO CGT-0003] Clock gating instance 0/946
75
[INFO CGT-0004] Accepted clock enable 'ex_block_i.gen_multdiv_fast.multdiv_i.md_state_q\[5\] | _03749_ | _03000_ | _04094_ | _03636_ | _04093_' for instance _20290_
86
[INFO CGT-0004] Accepted clock enable 'cs_registers_i.mcountinhibit_q\[0\] | _05037_ | _04531_ | _04533_ | _04495_ | _04405_ | _05854_ | _04404_' for instance cs_registers_i.mcountinhibit_q\[0\]$_DFFE_PN0P_

0 commit comments

Comments
 (0)