From b66aa0e6c10b7d8221375cb500c942b80257830d Mon Sep 17 00:00:00 2001 From: alaindargelas Date: Mon, 30 Sep 2024 10:08:48 -0700 Subject: [PATCH] initial with single display statement fix --- templates/SynthSubset.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/SynthSubset.cpp b/templates/SynthSubset.cpp index dd6983ef..77c1a13a 100644 --- a/templates/SynthSubset.cpp +++ b/templates/SynthSubset.cpp @@ -326,8 +326,10 @@ void SynthSubset::removeFromStmt(any* parent, const any* object) { } else if (parent->UhdmType() == uhdminitial) { initial* st = (initial*) parent; const std::string_view name = object->VpiName(); - if (name == "$error" || name == "$finish" || name == "$display") { - st->Stmt(nullptr); + if (name == "$error" || name == "$finish") { + st->Stmt(makeStubDisplayStmt(object)); + } else if (name == "$display") { + // No better alternative than to keep the statement } else { st->Stmt(makeStubDisplayStmt(object)); }