mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-07 00:11:56 +00:00
fix(parse): #5234 adjust width of rhs according to lhs
This commit is contained in:
parent
cec48c6abd
commit
2a262483bb
2 changed files with 21 additions and 1 deletions
|
@ -5836,7 +5836,10 @@ bool RTLIL::SigSpec::parse_rhs(const RTLIL::SigSpec &lhs, RTLIL::SigSpec &sig, R
|
|||
}
|
||||
}
|
||||
|
||||
return parse(sig, module, str);
|
||||
if (!parse(sig, module, str))
|
||||
return false;
|
||||
sig.extend_u0(lhs.width_);
|
||||
return true;
|
||||
}
|
||||
|
||||
RTLIL::CaseRule::~CaseRule()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue