Skip to content

Commit

Permalink
fixing abc library generation, adding parameter names to code
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantamHD committed Jan 7, 2025
1 parent 5603ac2 commit 5ff350a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/rmp/src/abc_library_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ AbcLibrary AbcLibraryFactory::Build()
PopulateAbcSclLibFromSta(abc_library, library);
}
abc::Abc_SclLibNormalize(abc_library);
abc::Abc_SclHashCells(abc_library);
abc::Abc_SclLinkCells(abc_library);

return AbcLibrary(utl::UniquePtrWithDeleter<abc::SC_Lib>(
abc_library, [](abc::SC_Lib* lib) { abc::Abc_SclLibFree(lib); }));
Expand Down
22 changes: 10 additions & 12 deletions src/rmp/src/delay_optimization_strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ utl::UniquePtrWithDeleter<abc::Abc_Ntk_t> WrapUnique(abc::Abc_Ntk_t* ntk)
void AbcPrintStats(const abc::Abc_Ntk_t* ntk)
{
abc::Abc_NtkPrintStats(const_cast<abc::Abc_Ntk_t*>(ntk),
false,
false,
false,
false,
false,
false,
false,
false,
false,
false);
/*fFactored=*/false,
/*fSaveBest=*/false,
/*fDumpResult=*/false,
/*fUseLutLib=*/false,
/*fPrintMuxes=*/false,
/*fPower=*/false,
/*fGlitch=*/false,
/*fSkipBuf=*/false,
/*fSkipSmall=*/false,
/*fPrintMem=*/false);
}

utl::UniquePtrWithDeleter<abc::Abc_Ntk_t> BufferNetwork(
Expand Down Expand Up @@ -90,8 +90,6 @@ utl::UniquePtrWithDeleter<abc::Abc_Ntk_t> DelayOptimizationStrategy::Optimize(
AbcLibraryFactory library_factory(logger);
library_factory.AddDbSta(sta_);
AbcLibrary abc_sc_library = library_factory.Build();
abc::Abc_SclHashCells(abc_sc_library.abc_library());
abc::Abc_SclLinkCells(abc_sc_library.abc_library());

AbcPrintStats(ntk);

Expand Down

0 comments on commit 5ff350a

Please sign in to comment.