Internals: Cleanup .txt file whitespace (#3842)

This commit is contained in:
Larry Doolittle 2023-01-05 02:00:54 -08:00 committed by GitHub
parent 4370490a71
commit 2ab70ba452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 261 additions and 262 deletions

View File

@ -191,7 +191,7 @@ void VerilatedFst::declare(uint32_t code, const char* name, int dtypenum, fstVar
if ((new_it->back() & 0x80)) { if ((new_it->back() & 0x80)) {
tmpModName = *new_it; tmpModName = *new_it;
tmpModName.pop_back(); tmpModName.pop_back();
// If the scope ends with a non-ascii character, it will be 0x80 + fstScopeType // If the scope ends with a non-ASCII character, it will be 0x80 + fstScopeType
fstWriterSetScope(m_fst, static_cast<fstScopeType>(new_it->back() & 0x7f), fstWriterSetScope(m_fst, static_cast<fstScopeType>(new_it->back() & 0x7f),
tmpModName.c_str(), nullptr); tmpModName.c_str(), nullptr);
} else { } else {

View File

@ -30,270 +30,270 @@ endmacro()
# Sources and headers for the verilator binary # Sources and headers for the verilator binary
set(HEADERS set(HEADERS
V3Active.h V3Active.h
V3ActiveTop.h V3ActiveTop.h
V3Assert.h V3Assert.h
V3AssertPre.h V3AssertPre.h
V3Ast.h V3Ast.h
V3AstConstOnly.h V3AstConstOnly.h
V3AstInlines.h V3AstInlines.h
V3AstNodeDType.h V3AstNodeDType.h
V3AstNodeExpr.h V3AstNodeExpr.h
V3AstNodeOther.h V3AstNodeOther.h
V3AstUserAllocator.h V3AstUserAllocator.h
V3Begin.h V3Begin.h
V3Branch.h V3Branch.h
V3Broken.h V3Broken.h
V3Case.h V3Case.h
V3Cast.h V3Cast.h
V3CCtors.h V3CCtors.h
V3Cdc.h V3Cdc.h
V3Class.h V3Class.h
V3Clean.h V3Clean.h
V3Clock.h V3Clock.h
V3Combine.h V3Combine.h
V3Common.h V3Common.h
V3Config.h V3Config.h
V3Const.h V3Const.h
V3Coverage.h V3Coverage.h
V3CoverageJoin.h V3CoverageJoin.h
V3CUse.h V3CUse.h
V3Dead.h V3Dead.h
V3Delayed.h V3Delayed.h
V3Depth.h V3Depth.h
V3DepthBlock.h V3DepthBlock.h
V3Descope.h V3Descope.h
V3Dfg.h V3Dfg.h
V3DfgOptimizer.h V3DfgOptimizer.h
V3DfgPasses.h V3DfgPasses.h
V3DfgPeephole.h V3DfgPeephole.h
V3DfgVertices.h V3DfgVertices.h
V3DupFinder.h V3DupFinder.h
V3EmitC.h V3EmitC.h
V3EmitCBase.h V3EmitCBase.h
V3EmitCConstInit.h V3EmitCConstInit.h
V3EmitCFunc.h V3EmitCFunc.h
V3EmitCMain.h V3EmitCMain.h
V3EmitCMake.h V3EmitCMake.h
V3EmitMk.h V3EmitMk.h
V3EmitV.h V3EmitV.h
V3EmitXml.h V3EmitXml.h
V3Error.h V3Error.h
V3Expand.h V3Expand.h
V3File.h V3File.h
V3FileLine.h V3FileLine.h
V3Force.h V3Force.h
V3FunctionTraits.h V3FunctionTraits.h
V3Gate.h V3Gate.h
V3Global.h V3Global.h
V3Graph.h V3Graph.h
V3GraphAlg.h V3GraphAlg.h
V3GraphPathChecker.h V3GraphPathChecker.h
V3GraphStream.h V3GraphStream.h
V3Hash.h V3Hash.h
V3Hasher.h V3Hasher.h
V3HierBlock.h V3HierBlock.h
V3Inline.h V3Inline.h
V3Inst.h V3Inst.h
V3InstrCount.h V3InstrCount.h
V3LangCode.h V3LangCode.h
V3LanguageWords.h V3LanguageWords.h
V3Life.h V3Life.h
V3LifePost.h V3LifePost.h
V3LinkCells.h V3LinkCells.h
V3LinkDot.h V3LinkDot.h
V3LinkInc.h V3LinkInc.h
V3LinkJump.h V3LinkJump.h
V3LinkLevel.h V3LinkLevel.h
V3LinkLValue.h V3LinkLValue.h
V3LinkParse.h V3LinkParse.h
V3LinkResolve.h V3LinkResolve.h
V3List.h V3List.h
V3Localize.h V3Localize.h
V3MergeCond.h V3MergeCond.h
V3Name.h V3Name.h
V3Number.h V3Number.h
V3OptionParser.h V3OptionParser.h
V3Options.h V3Options.h
V3Order.h V3Order.h
V3OrderGraph.h V3OrderGraph.h
V3OrderMoveGraph.h V3OrderMoveGraph.h
V3Os.h V3Os.h
V3PairingHeap.h V3PairingHeap.h
V3Param.h V3Param.h
V3Parse.h V3Parse.h
V3ParseImp.h V3ParseImp.h
V3ParseSym.h V3ParseSym.h
V3Partition.h V3Partition.h
V3PartitionGraph.h V3PartitionGraph.h
V3PreLex.h V3PreLex.h
V3Premit.h V3Premit.h
V3PreProc.h V3PreProc.h
V3PreShell.h V3PreShell.h
V3ProtectLib.h V3ProtectLib.h
V3Randomize.h V3Randomize.h
V3Reloop.h V3Reloop.h
V3Sched.h V3Sched.h
V3Scope.h V3Scope.h
V3Scoreboard.h V3Scoreboard.h
V3SenExprBuilder.h V3SenExprBuilder.h
V3SenTree.h V3SenTree.h
V3Simulate.h V3Simulate.h
V3Slice.h V3Slice.h
V3Split.h V3Split.h
V3SplitAs.h V3SplitAs.h
V3SplitVar.h V3SplitVar.h
V3Stats.h V3Stats.h
V3StdFuture.h V3StdFuture.h
V3String.h V3String.h
V3Subst.h V3Subst.h
V3SymTable.h V3SymTable.h
V3Table.h V3Table.h
V3Task.h V3Task.h
V3Timing.h V3Timing.h
V3Trace.h V3Trace.h
V3TraceDecl.h V3TraceDecl.h
V3Tristate.h V3Tristate.h
V3TSP.h V3TSP.h
V3Undriven.h V3Undriven.h
V3UniqueNames.h V3UniqueNames.h
V3Unknown.h V3Unknown.h
V3Unroll.h V3Unroll.h
V3VariableOrder.h V3VariableOrder.h
V3Waiver.h V3Waiver.h
V3Width.h V3Width.h
V3WidthCommit.h V3WidthCommit.h
VlcBucket.h VlcBucket.h
VlcOptions.h VlcOptions.h
VlcPoint.h VlcPoint.h
VlcSource.h VlcSource.h
VlcTest.h VlcTest.h
VlcTop.h VlcTop.h
) )
set(COMMON_SOURCES set(COMMON_SOURCES
Verilator.cpp Verilator.cpp
V3Active.cpp V3Active.cpp
V3ActiveTop.cpp V3ActiveTop.cpp
V3Assert.cpp V3Assert.cpp
V3AssertPre.cpp V3AssertPre.cpp
V3Ast.cpp V3Ast.cpp
V3AstNodes.cpp V3AstNodes.cpp
V3Begin.cpp V3Begin.cpp
V3Branch.cpp V3Branch.cpp
V3Broken.cpp V3Broken.cpp
V3CCtors.cpp V3CCtors.cpp
V3CUse.cpp V3CUse.cpp
V3Case.cpp V3Case.cpp
V3Cast.cpp V3Cast.cpp
V3Cdc.cpp V3Cdc.cpp
V3Class.cpp V3Class.cpp
V3Clean.cpp V3Clean.cpp
V3Clock.cpp V3Clock.cpp
V3Combine.cpp V3Combine.cpp
V3Common.cpp V3Common.cpp
V3Config.cpp V3Config.cpp
V3Const__gen.cpp V3Const__gen.cpp
V3Coverage.cpp V3Coverage.cpp
V3CoverageJoin.cpp V3CoverageJoin.cpp
V3Dead.cpp V3Dead.cpp
V3Delayed.cpp V3Delayed.cpp
V3Depth.cpp V3Depth.cpp
V3DepthBlock.cpp V3DepthBlock.cpp
V3Descope.cpp V3Descope.cpp
V3Dfg.cpp V3Dfg.cpp
V3DfgAstToDfg.cpp V3DfgAstToDfg.cpp
V3DfgDecomposition.cpp V3DfgDecomposition.cpp
V3DfgDfgToAst.cpp V3DfgDfgToAst.cpp
V3DfgOptimizer.cpp V3DfgOptimizer.cpp
V3DfgPasses.cpp V3DfgPasses.cpp
V3DfgPeephole.cpp V3DfgPeephole.cpp
V3DupFinder.cpp V3DupFinder.cpp
V3Timing.cpp V3Timing.cpp
V3EmitCBase.cpp V3EmitCBase.cpp
V3EmitCConstPool.cpp V3EmitCConstPool.cpp
V3EmitCFunc.cpp V3EmitCFunc.cpp
V3EmitCHeaders.cpp V3EmitCHeaders.cpp
V3EmitCImp.cpp V3EmitCImp.cpp
V3EmitCInlines.cpp V3EmitCInlines.cpp
V3EmitCMain.cpp V3EmitCMain.cpp
V3EmitCMake.cpp V3EmitCMake.cpp
V3EmitCModel.cpp V3EmitCModel.cpp
V3EmitCSyms.cpp V3EmitCSyms.cpp
V3EmitMk.cpp V3EmitMk.cpp
V3EmitV.cpp V3EmitV.cpp
V3EmitXml.cpp V3EmitXml.cpp
V3Error.cpp V3Error.cpp
V3Expand.cpp V3Expand.cpp
V3File.cpp V3File.cpp
V3FileLine.cpp V3FileLine.cpp
V3Force.cpp V3Force.cpp
V3Gate.cpp V3Gate.cpp
V3Global.cpp V3Global.cpp
V3Graph.cpp V3Graph.cpp
V3GraphAcyc.cpp V3GraphAcyc.cpp
V3GraphAlg.cpp V3GraphAlg.cpp
V3GraphPathChecker.cpp V3GraphPathChecker.cpp
V3GraphTest.cpp V3GraphTest.cpp
V3Hash.cpp V3Hash.cpp
V3Hasher.cpp V3Hasher.cpp
V3HierBlock.cpp V3HierBlock.cpp
V3Inline.cpp V3Inline.cpp
V3Inst.cpp V3Inst.cpp
V3InstrCount.cpp V3InstrCount.cpp
V3Life.cpp V3Life.cpp
V3LifePost.cpp V3LifePost.cpp
V3LinkCells.cpp V3LinkCells.cpp
V3LinkDot.cpp V3LinkDot.cpp
V3LinkInc.cpp V3LinkInc.cpp
V3LinkJump.cpp V3LinkJump.cpp
V3LinkLevel.cpp V3LinkLevel.cpp
V3LinkLValue.cpp V3LinkLValue.cpp
V3LinkParse.cpp V3LinkParse.cpp
V3LinkResolve.cpp V3LinkResolve.cpp
V3Localize.cpp V3Localize.cpp
V3MergeCond.cpp V3MergeCond.cpp
V3Name.cpp V3Name.cpp
V3Number.cpp V3Number.cpp
V3OptionParser.cpp V3OptionParser.cpp
V3Options.cpp V3Options.cpp
V3Order.cpp V3Order.cpp
V3Os.cpp V3Os.cpp
V3Param.cpp V3Param.cpp
V3Partition.cpp V3Partition.cpp
V3PreShell.cpp V3PreShell.cpp
V3Premit.cpp V3Premit.cpp
V3ProtectLib.cpp V3ProtectLib.cpp
V3Randomize.cpp V3Randomize.cpp
V3Reloop.cpp V3Reloop.cpp
V3Sched.cpp V3Sched.cpp
V3SchedAcyclic.cpp V3SchedAcyclic.cpp
V3SchedPartition.cpp V3SchedPartition.cpp
V3SchedReplicate.cpp V3SchedReplicate.cpp
V3SchedTiming.cpp V3SchedTiming.cpp
V3Scope.cpp V3Scope.cpp
V3Scoreboard.cpp V3Scoreboard.cpp
V3Slice.cpp V3Slice.cpp
V3Split.cpp V3Split.cpp
V3SplitAs.cpp V3SplitAs.cpp
V3SplitVar.cpp V3SplitVar.cpp
V3Stats.cpp V3Stats.cpp
V3StatsReport.cpp V3StatsReport.cpp
V3String.cpp V3String.cpp
V3Subst.cpp V3Subst.cpp
V3Table.cpp V3Table.cpp
V3Task.cpp V3Task.cpp
V3Trace.cpp V3Trace.cpp
V3TraceDecl.cpp V3TraceDecl.cpp
V3Tristate.cpp V3Tristate.cpp
V3TSP.cpp V3TSP.cpp
V3Undriven.cpp V3Undriven.cpp
V3Unknown.cpp V3Unknown.cpp
V3Unroll.cpp V3Unroll.cpp
V3VariableOrder.cpp V3VariableOrder.cpp
V3Waiver.cpp V3Waiver.cpp
V3Width.cpp V3Width.cpp
V3WidthSel.cpp V3WidthSel.cpp
V3ParseImp.cpp V3ParseImp.cpp
V3ParseGrammar.cpp V3ParseGrammar.cpp
V3ParseLex.cpp V3ParseLex.cpp

View File

@ -33,7 +33,7 @@ foreach my $file (sort keys %files) {
} }
if ($contents =~ /[ \t]\n/ if ($contents =~ /[ \t]\n/
|| $contents =~ m/\n\n+$/) { # Regexp repeated below || $contents =~ m/\n\n+$/) { # Regexp repeated below
my $eol_ws_exempt = ($file =~ /(\.txt|\.html)$/ my $eol_ws_exempt = ($file =~ /spelling.txt$/
|| $file =~ m!/gtkwave/!); || $file =~ m!/gtkwave/!);
next if $eol_ws_exempt; next if $eol_ws_exempt;
if ($ENV{HARNESS_UPDATE_GOLDEN}) { if ($ENV{HARNESS_UPDATE_GOLDEN}) {
@ -49,7 +49,7 @@ foreach my $file (sort keys %files) {
my $line_no = 0; my $line_no = 0;
foreach my $line (@lines) { foreach my $line (@lines) {
$line_no++; $line_no++;
# Trim trailing carriage-return (ascii 0xd) and form feed (0xc), # Trim trailing carriage-return (ASCII 0x0d) and form feed (0x0c),
# as we expect a few of those # as we expect a few of those
$line =~ s/[\x{d}\x{c}]//g; $line =~ s/[\x{d}\x{c}]//g;
if ($line =~ /\s$/) { if ($line =~ /\s$/) {

View File

@ -24,4 +24,3 @@ set(VERILATOR_OPTIONS "${VERILATOR_OPTIONS}" --hierarchical --stats --CFLAGS "-p
verilate(t_hier_block_cmake VERILATOR_ARGS ${VERILATOR_OPTIONS} SOURCES verilate(t_hier_block_cmake VERILATOR_ARGS ${VERILATOR_OPTIONS} SOURCES
../t_hier_block.v ) ../t_hier_block.v )