mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 17:01:09 +02:00
This commit is contained in:
+1
-2
@@ -429,12 +429,11 @@ class GateOkVisitor final : public VNVisitorConst {
|
||||
|
||||
// We only allow a LHS ref for the var being set, and a RHS ref for
|
||||
// something else being read.
|
||||
AstVarScope* const vscp = nodep->varScopep();
|
||||
if (nodep->access().isWriteOnly()) {
|
||||
if (vscp->tracePreserve()) clearSimple("Needed for tracing");
|
||||
if (m_lhsVarRef) clearSimple(">1 write refs");
|
||||
m_lhsVarRef = nodep;
|
||||
} else {
|
||||
AstVarScope* const vscp = nodep->varScopep();
|
||||
// TODO: possible bug, should it be >= 1 as add is below?
|
||||
if (m_readVscps.size() > 1) {
|
||||
if (m_buffersOnly) clearSimple(">1 rhs varRefs");
|
||||
|
||||
Reference in New Issue
Block a user