From 37c6229a21e8a2afa0e9ca106c462e17c238bf56 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 1 Dec 2023 12:11:12 +0100 Subject: [PATCH] xinit.c: do a `xschem set format lvs_format` if lvs_netlist is set via xschemrc or command line --- src/xinit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/xinit.c b/src/xinit.c index c3018c05..99b79841 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -2467,8 +2467,6 @@ int Tcl_AppInit(Tcl_Interp *inter) if(cli_opt_tcl_command) { tcleval(cli_opt_tcl_command); } - - /* set tcp port given in cmdline if any */ if(tcp_port > 0) { if(tcp_port < 1024) fprintf(errfp, "please use port numbers >=1024 on command line\n"); @@ -2553,6 +2551,11 @@ int Tcl_AppInit(Tcl_Interp *inter) xctx->only_probes = tclgetintvar("only_probes"); /* set global variables fetching data from tcl code */ + + /* if lvs_netlist is set also use lvs_format for devices netlisting rule if existing */ + if(tclgetboolvar("lvs_netlist")) tcleval("xschem set format lvs_format"); + else tcleval("xschem set format {}"); + if(cli_opt_netlist_type) { xctx->netlist_type = cli_opt_netlist_type; set_tcl_netlist_type();