From 114d93b21243fd7200b8da3412074bc2a37f3eea Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 8 Apr 2023 15:11:26 -0400 Subject: [PATCH] Internals: Move -debug-exit-uvm to post V3LinkDot, just before V3Param (#1538) --- src/Verilator.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Verilator.cpp b/src/Verilator.cpp index 65acb5a6f..785553361 100644 --- a/src/Verilator.cpp +++ b/src/Verilator.cpp @@ -125,12 +125,6 @@ static void process() { // Convert parseref's to varrefs, and other directly post parsing fixups V3LinkParse::linkParse(v3Global.rootp()); - if (v3Global.opt.debugExitUvm()) { - V3Error::abortIfErrors(); - cout << "--debug-exit-uvm: Exiting after UVM-supported pass\n"; - std::exit(0); - } - // Cross-link signal names // Cross-link dotted hierarchical references V3LinkDot::linkDotPrimary(v3Global.rootp()); @@ -148,6 +142,11 @@ static void process() { V3Error::abortIfErrors(); if (v3Global.opt.stats()) V3Stats::statsStageAll(v3Global.rootp(), "Link"); + if (v3Global.opt.debugExitUvm()) { + V3Error::abortIfErrors(); + cout << "--debug-exit-uvm: Exiting after UVM-supported pass\n"; + std::exit(0); + } // Remove parameters by cloning modules to de-parameterized versions // This requires some width calculations and constant propagation