mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-01 07:40:42 +00:00
memlib: Fix ubsan
This commit is contained in:
parent
1cdf058df4
commit
3ca2b7951f
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue