mirror of https://github.com/YosysHQ/abc.git
Adding Python API n_area() to report area after standard cell mapping.
This commit is contained in:
parent
2140c1298c
commit
adb3044f39
|
|
@ -115,6 +115,19 @@ int n_levels()
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double n_area()
|
||||||
|
{
|
||||||
|
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
|
||||||
|
Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc);
|
||||||
|
|
||||||
|
if ( pNtk && Abc_NtkHasMapping(pNtk) )
|
||||||
|
{
|
||||||
|
return Abc_NtkGetMappedArea(pNtk);
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
int has_comb_model()
|
int has_comb_model()
|
||||||
{
|
{
|
||||||
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
|
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
|
||||||
|
|
@ -660,6 +673,7 @@ int n_pis();
|
||||||
int n_pos();
|
int n_pos();
|
||||||
int n_latches();
|
int n_latches();
|
||||||
int n_levels();
|
int n_levels();
|
||||||
|
double n_area();
|
||||||
|
|
||||||
int run_command(char* cmd);
|
int run_command(char* cmd);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue