Apply 'make format'
This commit is contained in:
parent
218659f4e8
commit
dc049fdd74
|
|
@ -2792,11 +2792,11 @@ class ConstVisitor final : public VNVisitor {
|
||||||
// required (m_required=true), call replaceWithSimulation() to compute
|
// required (m_required=true), call replaceWithSimulation() to compute
|
||||||
// the slice via simulation. Otherwise just iterate the children.
|
// the slice via simulation. Otherwise just iterate the children.
|
||||||
void visit(AstSliceSel* nodep) override {
|
void visit(AstSliceSel* nodep) override {
|
||||||
// First constify or width any child nodes
|
// First constify or width any child nodes
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
if (!m_required) return; // Do nothing unless we are in parameter mode
|
if (!m_required) return; // Do nothing unless we are in parameter mode
|
||||||
// Fallback to simulation: this will invoke SimulateVisitor::visit(AstSliceSel*)
|
// Fallback to simulation: this will invoke SimulateVisitor::visit(AstSliceSel*)
|
||||||
replaceWithSimulation(nodep);
|
replaceWithSimulation(nodep);
|
||||||
}
|
}
|
||||||
|
|
||||||
void visit(AstCAwait* nodep) override {
|
void visit(AstCAwait* nodep) override {
|
||||||
|
|
|
||||||
|
|
@ -737,8 +737,8 @@ class ParamProcessor final {
|
||||||
// integer array and include it in the module name. Constantify nested
|
// integer array and include it in the module name. Constantify nested
|
||||||
// expressions before mangling the value number.
|
// expressions before mangling the value number.
|
||||||
V3Const::constifyParamsEdit(pinp->exprp());
|
V3Const::constifyParamsEdit(pinp->exprp());
|
||||||
longnamer += "_" + paramSmallName(srcModp, modvarp)
|
longnamer
|
||||||
+ paramValueNumber(pinp->exprp());
|
+= "_" + paramSmallName(srcModp, modvarp) + paramValueNumber(pinp->exprp());
|
||||||
any_overridesr = true;
|
any_overridesr = true;
|
||||||
} else {
|
} else {
|
||||||
V3Const::constifyParamsEdit(pinp->exprp());
|
V3Const::constifyParamsEdit(pinp->exprp());
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import vltest_bootstrap
|
||||||
|
|
||||||
test.scenarios('vlt')
|
test.scenarios('vlt')
|
||||||
|
|
||||||
test.compile(verilator_flags2=['--exe','--main','--timing'])
|
test.compile(verilator_flags2=['--exe', '--main', '--timing'])
|
||||||
|
|
||||||
test.execute()
|
test.execute()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue