mirror of https://github.com/YosysHQ/yosys.git
Additional fixes for undef propagation in concat and replicate ops
This commit is contained in:
parent
6fcbc79b5c
commit
baeca48a24
|
@ -966,6 +966,8 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
|||
sig.width += s.chunks[i].width;
|
||||
}
|
||||
}
|
||||
if (sig.width < width_hint)
|
||||
sig.extend(width_hint, false);
|
||||
return sig;
|
||||
}
|
||||
|
||||
|
@ -979,6 +981,8 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
|||
RTLIL::SigSpec sig;
|
||||
for (int i = 0; i < count; i++)
|
||||
sig.append(right);
|
||||
if (sig.width < width_hint)
|
||||
sig.extend(width_hint, false);
|
||||
is_signed = false;
|
||||
return sig;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue