mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-26 03:11:30 +00:00
fix(parse): #5234 adjust width of rhs according to lhs
This commit is contained in:
parent
c0577890f0
commit
11b829ba70
3 changed files with 32 additions and 1 deletions
|
@ -5974,7 +5974,11 @@ 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;
|
||||
if (sig.width_ > lhs.width_)
|
||||
sig.remove(lhs.width_, sig.width_ - lhs.width_);
|
||||
return true;
|
||||
}
|
||||
|
||||
RTLIL::CaseRule::~CaseRule()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue