Apply 'make format' [ci skip]

This commit is contained in:
github action 2026-07-02 23:39:37 +00:00
parent 189cf47393
commit 42ff4772f7
13 changed files with 14 additions and 11 deletions

View File

@ -267,12 +267,15 @@ The grammar of control commands is as follows:
.. option:: public [-module "<modulename>"] [-task/-function "<taskname>"] [-var "<signame>"] .. option:: public [-module "<modulename>"] [-task/-function "<taskname>"] [-var "<signame>"]
.. option:: public_flat -path "<hier.path.signame>" .. option:: public_flat -path "<hier.path.signame>"
.. option:: public_flat [-module "<modulename>"] [-task/-function "<taskname>"] [(-param | -port | -var) "<signame>"] .. option:: public_flat [-module "<modulename>"] [-task/-function "<taskname>"] [(-param | -port | -var) "<signame>"]
.. option:: public_flat_rd -path "<hier.path.signame>" .. option:: public_flat_rd -path "<hier.path.signame>"
.. option:: public_flat_rd [-module "<modulename>"] [-task/-function "<taskname>"] [(-param | -port | -var) "<signame>"] .. option:: public_flat_rd [-module "<modulename>"] [-task/-function "<taskname>"] [(-param | -port | -var) "<signame>"]
.. option:: public_flat_rw -path "<hier.path.signame>" .. option:: public_flat_rw -path "<hier.path.signame>"
.. option:: public_flat_rw [-module "<modulename>"] [-task/-function "<taskname>"] [(-param | -port | -var) "<signame>"] ["@(edge)"] .. option:: public_flat_rw [-module "<modulename>"] [-task/-function "<taskname>"] [(-param | -port | -var) "<signame>"] ["@(edge)"]
Sets the specified signal to be public. Same as Sets the specified signal to be public. Same as

View File

@ -1352,12 +1352,10 @@ static void collectScopeMatches(AstNode* firstp, const std::string& name,
} }
} }
using ScopeChildrenCache using ScopeChildrenCache = std::map<std::pair<const AstNode*, std::string>, std::vector<AstNode*>>;
= std::map<std::pair<const AstNode*, std::string>, std::vector<AstNode*>>;
static const std::vector<AstNode*>& findScopeChildren(AstNode* scopep, static const std::vector<AstNode*>&
const V3ControlHierSegment& seg, findScopeChildren(AstNode* scopep, const V3ControlHierSegment& seg, ScopeChildrenCache& cache) {
ScopeChildrenCache& cache) {
const std::string name = segmentPrettyText(seg); const std::string name = segmentPrettyText(seg);
const auto key = std::make_pair(static_cast<const AstNode*>(scopep), name); const auto key = std::make_pair(static_cast<const AstNode*>(scopep), name);
const auto pair = cache.emplace(key, std::vector<AstNode*>{}); const auto pair = cache.emplace(key, std::vector<AstNode*>{});

View File

@ -50,8 +50,8 @@
#include "V3Param.h" #include "V3Param.h"
#include "V3Case.h" #include "V3Case.h"
#include "V3Control.h"
#include "V3Const.h" #include "V3Const.h"
#include "V3Control.h"
#include "V3EmitV.h" #include "V3EmitV.h"
#include "V3Hasher.h" #include "V3Hasher.h"
#include "V3LinkDotIfaceCapture.h" #include "V3LinkDotIfaceCapture.h"

View File

@ -12,7 +12,8 @@ import vltest_bootstrap
test.scenarios('vlt') test.scenarios('vlt')
test.top_filename = "t/t_vlt_public_spec.v" test.top_filename = "t/t_vlt_public_spec.v"
test.lint(fails=True, expect_filename=test.golden_filename, test.lint(fails=True,
expect_filename=test.golden_filename,
verilator_flags2=["--vpi", test.name + ".vlt"]) verilator_flags2=["--vpi", test.name + ".vlt"])
test.passes() test.passes()

View File

@ -12,7 +12,8 @@ import vltest_bootstrap
test.scenarios('vlt') test.scenarios('vlt')
test.top_filename = "t/t_vlt_public_spec.v" test.top_filename = "t/t_vlt_public_spec.v"
test.lint(fails=True, expect_filename=test.golden_filename, test.lint(fails=True,
expect_filename=test.golden_filename,
verilator_flags2=["--vpi", test.name + ".vlt"]) verilator_flags2=["--vpi", test.name + ".vlt"])
test.passes() test.passes()

0
test_regress/t/t_vlt_public_spec_hier_cellarr_share.py Normal file → Executable file
View File

0
test_regress/t/t_vlt_public_spec_hier_escid_array.py Normal file → Executable file
View File

View File

@ -12,7 +12,8 @@ import vltest_bootstrap
test.scenarios('vlt') test.scenarios('vlt')
test.top_filename = "t/t_vlt_public_spec_hier_genblock.v" test.top_filename = "t/t_vlt_public_spec_hier_genblock.v"
test.lint(fails=True, expect_filename=test.golden_filename, test.lint(fails=True,
expect_filename=test.golden_filename,
verilator_flags2=["--vpi", test.name + ".vlt"]) verilator_flags2=["--vpi", test.name + ".vlt"])
test.passes() test.passes()

0
test_regress/t/t_vlt_public_spec_hier_iface.py Normal file → Executable file
View File

0
test_regress/t/t_vlt_public_spec_hier_multidim.py Normal file → Executable file
View File

0
test_regress/t/t_vlt_public_spec_hier_negidx.py Normal file → Executable file
View File

View File

@ -13,8 +13,7 @@ test.scenarios('vlt')
test.top_filename = "t/t_vlt_public_spec_hier_pub.v" test.top_filename = "t/t_vlt_public_spec_hier_pub.v"
test.compile(verilator_flags2=[ test.compile(verilator_flags2=[
"--binary", "--vpi", "--public-ignore", "--public-params", "--binary", "--vpi", "--public-ignore", "--public-params", test.name + ".vlt"
test.name + ".vlt"
]) ])
test.execute() test.execute()

0
test_regress/t/t_vlt_public_spec_hier_share.py Normal file → Executable file
View File