read_liberty2json: propagate src attribute

This commit is contained in:
Mohamed Gaber 2025-11-25 13:19:31 +02:00
parent 60e4b76981
commit 1a561f42fa
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

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;