3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-30 12:25:52 +00:00

Disable Liberty support, add blackbox Verilog module, and add attribute parsing into Yosys Liberty parser

This commit is contained in:
Akash Levy 2024-05-28 01:47:46 -07:00
parent b90c20cd14
commit 4062825a9e
2 changed files with 9 additions and 0 deletions

View file

@ -591,6 +591,12 @@ struct LibertyFrontend : public Frontend {
for (auto node : cell->children)
{
if (node->id == "area")
module->attributes["\\area"] = node->value;
if (node->id == "cell_leakage_power")
module->attributes["\\LeakagePower"] = node->value;
if (node->id == "pin" && node->args.size() == 1) {
LibertyAst *dir = node->find("direction");
if (!dir || (dir->value != "input" && dir->value != "output" && dir->value != "inout" && dir->value != "internal"))