Set maximum number width (#2128)

Adjust the maximum number width to 64K. Add --max-num-width option to
adjust this setting.

Closes #2082
This commit is contained in:
Stefan Wallentowitz
2020-01-21 12:17:31 +01:00
committed by GitHub
parent d87648c258
commit 22088c907f
10 changed files with 51 additions and 5 deletions
+5
View File
@@ -948,6 +948,10 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
fl->v3fatal("Unknown --make system specified: '"<<argv[i]<<"'");
}
}
else if (!strcmp(sw, "-max-num-width")) {
shift;
m_maxNumWidth = atoi(argv[i]);
}
else if (!strcmp(sw, "-no-l2name")) { // Historical and undocumented
m_l2Name = "";
}
@@ -1518,6 +1522,7 @@ V3Options::V3Options() {
m_gateStmts = 100;
m_ifDepth = 0;
m_inlineMult = 2000;
m_maxNumWidth = 65536;
m_moduleRecursion = 100;
m_outputSplit = 0;
m_outputSplitCFuncs = 0;