mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-24 12:07:53 +00:00
Improve libparse encapsulation
This commit is contained in:
parent
c35f5e379c
commit
3057c13a66
5 changed files with 73 additions and 71 deletions
|
@ -361,7 +361,7 @@ void read_liberty_cellarea(dict<IdString, cell_area_t> &cell_area, string libert
|
|||
if (cell->id != "cell" || cell->args.size() != 1)
|
||||
continue;
|
||||
|
||||
LibertyAst *ar = cell->find("area");
|
||||
const LibertyAst *ar = cell->find("area");
|
||||
bool is_flip_flop = cell->find("ff") != nullptr;
|
||||
if (ar != nullptr && !ar->value.empty())
|
||||
cell_area["\\" + cell->args[0]] = {/*area=*/atof(ar->value.c_str()), is_flip_flop};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue