3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-01 07:40:42 +00:00

memlib: Fix ubsan

This commit is contained in:
Krystine Sherwin 2025-08-19 17:05:51 +12:00
parent 1cdf058df4
commit 3ca2b7951f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -878,7 +878,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;