From e1110a2c983cae00f2b16a05ba0ecc9d992e1fc4 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Tue, 24 Nov 2020 11:57:57 +0100 Subject: [PATCH] comment hashes in column 1 for hiertEDAx according to syntax rules --- src/flatten_tedax.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flatten_tedax.awk b/src/flatten_tedax.awk index e6bea32b..5a4ef720 100755 --- a/src/flatten_tedax.awk +++ b/src/flatten_tedax.awk @@ -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) }