3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-16 20:25:43 +00:00

Merge pull request #93 from donn/l2j_src

read_liberty2json: propagate src attribute if available
This commit is contained in:
Akash Levy 2025-12-03 13:27:47 -05:00 committed by GitHub
commit e6af5772cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,6 +391,11 @@ struct L2JFrontend : public Frontend {
current_module->set_string_attribute(ID(LeakagePower), std::to_string(cell_leakage_power));
current_module->set_string_attribute(ID(leakage_power_unit), leakage_power_unit);
if (cell.count("src")) {
auto src_attr = get_string_attr(cell_desc + " src attribute", cell, "src", "");
current_module->set_src_attribute(src_attr);
}
size_t group_idx = 0;
size_t pin_idx = 0;
size_t bus_idx = 0;