From a58cd66358c32f00eb0a69000970ced7388f54ed Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 16 Nov 2022 18:17:24 -0500 Subject: [PATCH] Fix printtimescale --- src/V3EmitCFunc.h | 2 +- test_regress/t/t_timescale_unit.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3EmitCFunc.h b/src/V3EmitCFunc.h index 45f863d21..d7ff08772 100644 --- a/src/V3EmitCFunc.h +++ b/src/V3EmitCFunc.h @@ -876,7 +876,7 @@ public: } void visit(AstPrintTimeScale* nodep) override { puts("VL_PRINTTIMESCALE("); - putsQuoted(protect(nodep->name())); + putsQuoted(protect(nodep->prettyName())); puts(", "); putsQuoted(nodep->timeunit().ascii()); puts(", vlSymsp->_vm_contextp__);\n"); diff --git a/test_regress/t/t_timescale_unit.out b/test_regress/t/t_timescale_unit.out index 6f3bba3f0..dca44f779 100644 --- a/test_regress/t/t_timescale_unit.out +++ b/test_regress/t/t_timescale_unit.out @@ -1,4 +1,4 @@ -Time scale of __024unit is 10ps / 10ps +Time scale of $unit is 10ps / 10ps Time scale of from_unit is 10ps / 10ps Time scale of t is 100ps / 10ps *-* All Finished *-*