From 098f375e9de31b341aafbe755e7d3ffb4324206c Mon Sep 17 00:00:00 2001 From: github action Date: Wed, 12 Aug 2026 23:13:40 +0000 Subject: [PATCH] Apply 'make format' [ci skip] --- include/verilated.cpp | 8 ++------ include/verilated.h | 3 ++- test_regress/t/t_assert_ctl_lock_arg_noassert.py | 3 +-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/include/verilated.cpp b/include/verilated.cpp index 292c66e12..39f3f6373 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -3119,12 +3119,8 @@ void VerilatedContext::assertOnClear(VerilatedAssertType_t types, if (assertCtlsLocked()) return; m_s.m_assertOn &= ~assertOnMask(types, directives); } -bool VerilatedContext::assertCtlsLocked() const VL_MT_SAFE { - return m_ns.m_assertCtlsLocked; -} -void VerilatedContext::assertCtlsLocked(bool flag) VL_MT_SAFE { - m_ns.m_assertCtlsLocked = flag; -} +bool VerilatedContext::assertCtlsLocked() const VL_MT_SAFE { return m_ns.m_assertCtlsLocked; } +void VerilatedContext::assertCtlsLocked(bool flag) VL_MT_SAFE { m_ns.m_assertCtlsLocked = flag; } void VerilatedContext::assertCtl(uint32_t controlType, VerilatedAssertType_t types, VerilatedAssertDirectiveType_t directives) VL_MT_SAFE { // IEEE 1800-2023 Table 20-5 control_type. Lock freezes the On/Off state of the diff --git a/include/verilated.h b/include/verilated.h index bc8d56cb2..3588d0f48 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -450,7 +450,8 @@ protected: // A worker queues $finish before the main thread callback can set m_gotFinish. std::atomic m_finishPending{0}; // Number of queued $finish callbacks std::atomic m_finishPendingTime{TIME_UNSET}; // Time of the first callback - std::atomic m_assertCtlsLocked{false}; // When true, all assertion-control updates are ignored + std::atomic m_assertCtlsLocked{ + false}; // When true, all assertion-control updates are ignored int m_stopReserved = 0; // Posted $stop requests not yet executed bool m_executingFinal = false; // Running generated final() code uint64_t m_profExecStart = 1; // +prof+exec+start time diff --git a/test_regress/t/t_assert_ctl_lock_arg_noassert.py b/test_regress/t/t_assert_ctl_lock_arg_noassert.py index a1bd36752..6bae910fd 100755 --- a/test_regress/t/t_assert_ctl_lock_arg_noassert.py +++ b/test_regress/t/t_assert_ctl_lock_arg_noassert.py @@ -12,8 +12,7 @@ import vltest_bootstrap test.scenarios('vlt') test.top_filename = "t_assert_ctl_lock_arg.v" -test.compile( - verilator_flags2=["--binary --assert +define+T_ASSERT_CTL_LOCK_ARG_NOASSERT"]) +test.compile(verilator_flags2=["--binary --assert +define+T_ASSERT_CTL_LOCK_ARG_NOASSERT"]) test.execute(all_run_flags=["+verilator+noassert", "+verilator+assert+lock"])