Skip to content

Commit

Permalink
Merge pull request #1090 from alainmarcel/alainmarcel-patch-1
Browse files Browse the repository at this point in the history
initial with single display statement fix
  • Loading branch information
alaindargelas authored Sep 30, 2024
2 parents 1db369a + b66aa0e commit bb4971e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/SynthSubset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit bb4971e

Please sign in to comment.