From aab338760c15a3dcd8207f9a6cd3c2216d72bb79 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 5 Apr 2012 21:46:55 -0400 Subject: [PATCH] Increase VL_VALUE_STRING_MAX_WIDTH, bug479 --- include/verilated.cpp | 2 +- src/V3EmitC.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/verilated.cpp b/include/verilated.cpp index 00425cffc..11345c229 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -27,7 +27,7 @@ #include "verilated_imp.h" #include -#define VL_VALUE_STRING_MAX_WIDTH 1024 ///< Max static char array for VL_VALUE_STRING +#define VL_VALUE_STRING_MAX_WIDTH 8192 ///< Max static char array for VL_VALUE_STRING //=========================================================================== // Global variables diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 67b5bd58d..f36fd913f 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -33,7 +33,7 @@ #include "V3EmitC.h" #include "V3EmitCBase.h" -#define VL_VALUE_STRING_MAX_WIDTH 1024 // We use a static char array in VL_VALUE_STRING +#define VL_VALUE_STRING_MAX_WIDTH 8192 // We use a static char array in VL_VALUE_STRING //###################################################################### // Emit statements and math operators @@ -1195,7 +1195,7 @@ void EmitCStmts::displayArg(AstNode* dispp, AstNode** elistp, bool isScan, return; } if (argp->widthMin() > VL_VALUE_STRING_MAX_WIDTH) { - dispp->v3error("Exceeded limit of 1024 bits for any display arguments"); + dispp->v3error("Exceeded limit of "+cvtToStr(VL_VALUE_STRING_MAX_WIDTH)+" bits for any display arguments"); } if (argp && argp->isWide() && (fmtLetter=='d'||fmtLetter=='u')) {