3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-27 11:49:02 +00:00

Reapply "Merge pull request #5301 from KrystalDelusion/krys/re_5280"

This reverts commit 88eb83a0c3.
This commit is contained in:
Krystine Sherwin 2025-09-12 09:27:29 +12:00 committed by Jannis Harder
parent 727998f663
commit f102b25914
7 changed files with 171 additions and 34 deletions

View file

@ -880,7 +880,7 @@ struct Parser {
}
}
}
var.clk_en = find_single_cap(pdef.clken, cram.options, portopts, "clken");
var.clk_en = find_single_cap(pdef.clken, cram.options, portopts, "clken") != nullptr;
}
const PortWidthDef *wdef = find_single_cap(pdef.width, cram.options, portopts, "width");
if (wdef) {

View file

@ -109,7 +109,7 @@ struct PortVariant {
PortKind kind;
int clk_shared;
ClkPolKind clk_pol;
bool clk_en;
bool clk_en = false;
bool width_tied;
int min_wr_wide_log2;
int max_wr_wide_log2;