Apply 'make format'

This commit is contained in:
github action 2026-05-27 12:35:09 +00:00
parent 8ae0e48103
commit 62f475709f
2 changed files with 4 additions and 7 deletions

View File

@ -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);

0
test_regress/t/t_lint_always_ff_multidriven_bad.py Normal file → Executable file
View File