mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 19:55:41 +00:00
read_liberty2json: propagate src attribute
This commit is contained in:
parent
60e4b76981
commit
1a561f42fa
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue