Apply 'make format' [ci skip]
This commit is contained in:
parent
189cf47393
commit
42ff4772f7
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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*>{});
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue