Skip to content

Commit

Permalink
Add back is_memory_cell
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy committed Dec 10, 2024
1 parent 9ab67aa commit 07f287c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions search/Property.cc
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ getProperty(const LibertyCell *cell,
return PropertyValue(cell->isBuffer());
else if (stringEqual(property, "is_inverter"))
return PropertyValue(cell->isInverter());
else if (stringEqual(property, "is_memory"))
else if (stringEqual(property, "is_memory")
|| stringEqual(property, "is_memory_cell"))
return PropertyValue(cell->isMemory());
else if (stringEqual(property, "dont_use"))
return PropertyValue(cell->dontUse());
Expand Down Expand Up @@ -971,7 +972,8 @@ getProperty(const Instance *inst,
return PropertyValue(liberty_cell && liberty_cell->isInverter());
else if (stringEqual(property, "is_macro"))
return PropertyValue(liberty_cell && liberty_cell->isMacro());
else if (stringEqual(property, "is_memory"))
else if (stringEqual(property, "is_memory")
|| stringEqual(property, "is_memory_cell"))
return PropertyValue(liberty_cell && liberty_cell->isMemory());
else
throw PropertyUnknown("instance", property);
Expand Down

0 comments on commit 07f287c

Please sign in to comment.