Skip to content

Commit

Permalink
Internals: Set missing timescale though it is not referred yet. (veri…
Browse files Browse the repository at this point in the history
  • Loading branch information
yTakatsukasa committed May 11, 2021
1 parent 00cedf3 commit f7c23c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/V3Assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class AssertVisitor final : public AstNVisitor {
// 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));
Expand Down

0 comments on commit f7c23c4

Please sign in to comment.