From 4f0c3afa23ce8268b16706bcce381e1fac1bf354 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 24 Aug 2024 08:21:08 +0200 Subject: [PATCH] port ordering for a schematic .subckt line will always be deduced from the symbol if it exists, even if the symbol type is not "subcircuit" (so it will be used for also "primitive" type symbols). --- src/spice_netlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spice_netlist.c b/src/spice_netlist.c index 59512478..1e7863d7 100644 --- a/src/spice_netlist.c +++ b/src/spice_netlist.c @@ -349,9 +349,9 @@ int global_spice_netlist(int global) /* netlister driver */ dbg(1, "found top level symbol %s\n", top_symbol_name); load_sym_def(top_symbol_name, NULL); found_top_symbol = 1; - /* only use the symbol if it has pins and is a subcircuit */ if(xctx->sym[xctx->symbols - 1].type != NULL && - !strcmp(xctx->sym[xctx->symbols - 1].type, "subcircuit") && + /* only use the symbol if it has pins and is a subcircuit ? */ + /* !strcmp(xctx->sym[xctx->symbols - 1].type, "subcircuit") && */ xctx->sym[xctx->symbols - 1].rects[PINLAYER] > 0) { fprintf(fd," "); print_spice_subckt_nodes(fd, xctx->symbols - 1);