From 62f475709f3529a00440e9daa6ad30c6f150fac7 Mon Sep 17 00:00:00 2001 From: github action Date: Wed, 27 May 2026 12:35:09 +0000 Subject: [PATCH] Apply 'make format' --- src/V3Undriven.cpp | 11 ++++------- test_regress/t/t_lint_always_ff_multidriven_bad.py | 0 2 files changed, 4 insertions(+), 7 deletions(-) mode change 100644 => 100755 test_regress/t/t_lint_always_ff_multidriven_bad.py diff --git a/src/V3Undriven.cpp b/src/V3Undriven.cpp index 14396bc1f..dae9613ed 100644 --- a/src/V3Undriven.cpp +++ b/src/V3Undriven.cpp @@ -561,14 +561,12 @@ class UndrivenVisitor final : public VNVisitorConst { << nodep->warnContextPrimary() << '\n' << otherWritep->warnOther() << "... Location of always_comb write\n" - << otherWritep->warnContextSecondary()); + << otherWritep->warnContextSecondary()); } - if (m_alwaysFFp - && !otherWriteIsStaticInit + if (m_alwaysFFp && !otherWriteIsStaticInit && (!entryp->isDrivenAlwaysFFWhole() || (m_alwaysFFp != entryp->getAlwFFp() - && m_alwaysFFp->fileline() - != entryp->getAlwFFp()->fileline()))) { + && m_alwaysFFp->fileline() != entryp->getAlwFFp()->fileline()))) { nodep->v3warn( MULTIDRIVEN, "Variable written to in always_ff also written by other process" @@ -599,8 +597,7 @@ class UndrivenVisitor final : public VNVisitorConst { entryp->underGenerate(); if (m_alwaysCombp) entryp->drivenAlwaysCombWhole(m_alwaysCombp, m_alwaysCombp->fileline()); - if (m_alwaysFFp) - entryp->drivenAlwaysFFWhole(m_alwaysFFp, nodep->varp()); + if (m_alwaysFFp) entryp->drivenAlwaysFFWhole(m_alwaysFFp, nodep->varp()); } if (nodep->access().isWriteOrRW()) { if (m_inInitialStatic && !entryp->initStaticp()) entryp->initStaticp(nodep); diff --git a/test_regress/t/t_lint_always_ff_multidriven_bad.py b/test_regress/t/t_lint_always_ff_multidriven_bad.py old mode 100644 new mode 100755