comment hashes in column 1 for hiertEDAx according to syntax rules

This commit is contained in:
Stefan Frederik 2020-11-24 11:57:57 +01:00
parent a61d803a3e
commit e1110a2c98
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ function expand(cell, instname, path, maplist, i, j, subpos, subcell, subi
subinst=$3
subpos = i
sub(/__subcircuit__/, "subcircuit", $0)
print spaces(hier * 2) "#" $0
print "#" spaces(hier * 2 - 1) $0
for(i++; ;i++) {
$0 = netlist[i]
if($1 != "__map__") break
@ -60,7 +60,7 @@ function expand(cell, instname, path, maplist, i, j, subpos, subcell, subi
$4 = resolve_node($4, path, maplist)
submaplist = submaplist " " $2 " " $4
sub(/__map__/, "map", $0)
print spaces(hier * 2) "#" $0
print "#" spaces(hier * 2 - 1) $0
}
expand(subcell, subinst, path subinst hiersep, submaplist)
}