Fix access mode
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
9425745f47
commit
dede75ab4c
|
|
@ -308,6 +308,7 @@ class ForceConvertVisitor final : public VNVisitor {
|
|||
if (refp->access() != VAccess::WRITE) return;
|
||||
AstVarScope* const vscp = refp->varScopep();
|
||||
if (vscp->varp()->isContinuously()) {
|
||||
refp->access(VAccess::READ);
|
||||
ForceState::markNonReplaceable(refp);
|
||||
} else {
|
||||
refp->replaceWith(m_state.getForceComponents(vscp).forcedUpdate(vscp));
|
||||
|
|
|
|||
Loading…
Reference in New Issue