mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Support $past_gclk
This commit is contained in:
+5
-1
@@ -395,9 +395,13 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public EmitCBaseVisitorConst {
|
||||
void visit(AstPast* nodep) override {
|
||||
putfs(nodep, "$past(");
|
||||
iterateAndNextConstNull(nodep->exprp());
|
||||
if (nodep->ticksp()) {
|
||||
if (nodep->ticksp() || nodep->sentreep()) {
|
||||
puts(", ");
|
||||
iterateAndNextConstNull(nodep->ticksp());
|
||||
if (nodep->sentreep()) {
|
||||
puts(", ");
|
||||
iterateAndNextConstNull(nodep->sentreep());
|
||||
}
|
||||
}
|
||||
puts(")");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user