mirror of
https://github.com/verilator/verilator.git
synced 2026-10-08 02:53:12 +02:00
Internals: Pre-elaboration progress towards class parameters.
This commit is contained in:
+2
-1
@@ -641,10 +641,11 @@ class ParamProcessor final {
|
||||
longnamer += "_" + paramSmallName(srcModp, modvarp) + paramValueNumber(exprp);
|
||||
any_overridesr = true;
|
||||
} else {
|
||||
V3Const::constifyParamsEdit(pinp->exprp());
|
||||
AstConst* const exprp = VN_CAST(pinp->exprp(), Const);
|
||||
const AstConst* const origp = VN_CAST(modvarp->valuep(), Const);
|
||||
if (!exprp) {
|
||||
// if (debug()) pinp->dumpTree(cout, "error:");
|
||||
if (debug()) pinp->dumpTree(cout, "-nodes: ");
|
||||
pinp->v3error("Can't convert defparam value to constant: Param "
|
||||
<< pinp->prettyNameQ() << " of " << nodep->prettyNameQ());
|
||||
pinp->exprp()->replaceWith(new AstConst(
|
||||
|
||||
Reference in New Issue
Block a user