From 75e99cae91f7b204a914fb1386e64819582d2deb Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 19 Sep 2023 01:29:52 +0200 Subject: [PATCH] update tier.tcl generator to handle unresolvable parameters --- src/actions.c | 14 ++++++++++++++ xschem_library/generators/tier.tcl | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/actions.c b/src/actions.c index 0c3f2506..1d69cab1 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1391,6 +1391,20 @@ int place_symbol(int pos, const char *symbol_name, double x, double y, short rot dbg(1, "place_symbol(): done set_inst_prop()\n"); /* 03-02-2000 */ set_inst_flags(&xctx->inst[n]); + + + + + + + my_strncpy(name, translate(n, name), S(name)); + i = match_symbol(name); + xctx->inst[n].ptr = i; + + + + + type = xctx->sym[xctx->inst[n].ptr].type; cond= type && IS_LABEL_SH_OR_PIN(type); if(cond) { diff --git a/xschem_library/generators/tier.tcl b/xschem_library/generators/tier.tcl index 414a87f7..eed2d70f 100755 --- a/xschem_library/generators/tier.tcl +++ b/xschem_library/generators/tier.tcl @@ -10,7 +10,7 @@ puts "v {xschem version=3.4.0 file_version=1.2 G {} K {type=label format=\"*.alias @lab\" -template=\"name=p1 sig_type=std_logic lab=${arg1}\" +template=\"name=p1 sig_type=std_logic lab=GND\" net_name=true } V {}