mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Fix interface exposure with --public-depth or --trace-depth (#5758).
This commit is contained in:
@@ -205,6 +205,14 @@ class LinkCellsVisitor final : public VNVisitor {
|
||||
modp->level(vvertexp->rank() + 1);
|
||||
}
|
||||
}
|
||||
m_graph.rankMin();
|
||||
for (V3GraphVertex& vtx : m_graph.vertices()) {
|
||||
if (const LinkCellsVertex* const vvertexp = vtx.cast<LinkCellsVertex>()) {
|
||||
// +1 so we leave level 1 for the new wrapper we'll make in a moment
|
||||
AstNodeModule* const modp = vvertexp->modp();
|
||||
modp->depth(vvertexp->rank() + 1);
|
||||
}
|
||||
}
|
||||
if (v3Global.opt.topModule() != "" && !m_topVertexp) {
|
||||
v3error("Specified --top-module '" << v3Global.opt.topModule()
|
||||
<< "' was not found in design.");
|
||||
|
||||
Reference in New Issue
Block a user