From f7c23c4adeb8f2d628599d591b1c7d03c8373c7f Mon Sep 17 00:00:00 2001 From: Yutetsu TAKATSUKASA Date: Tue, 11 May 2021 22:38:13 +0900 Subject: [PATCH] Internals: Set missing timescale though it is not referred yet. (#2946) --- src/V3Assert.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3Assert.cpp b/src/V3Assert.cpp index 5ee211b09..8b53adf95 100644 --- a/src/V3Assert.cpp +++ b/src/V3Assert.cpp @@ -108,6 +108,7 @@ private: // Like newFireAssert() but omits the asserts-on check AstDisplay* dispp = new AstDisplay(nodep->fileline(), AstDisplayType::DT_ERROR, message, nullptr, nullptr); + dispp->fmtp()->timeunit(m_modp->timeunit()); AstNode* bodysp = dispp; replaceDisplay(dispp, "%%Error"); // Convert to standard DISPLAY format bodysp->addNext(new AstStop(nodep->fileline(), true));