Hi <@U01819B63HP>, I'm trying to invoke xschem to ...
# xschem
t
Hi @Stefan Schippers, I'm trying to invoke xschem to output a spice netlist from a bash script - something I have always done for LVS runs - but I seem to be getting an error which I've not seen before when I have an instance of xschem already running. How can I fix this? Cheers, Tom
Copy code
tom@tom-workstation:/media/tom/Storage/Linux/repos/discrete-buck$ xschem --rcfile=$PROJECT_ROOT/xschemrc -n -q -o .  --tcl "set top_subckt 0" "sch/tb_sbmix2.sch"
setup_tcp_xschem: problems listening to TCP port: 2021
couldn't open socket: address already in use
I should point out, it does generate the file I just want to know if there is a way of getting rid of the message in this instance
s
This is just a warning. Netlist will be generated correctly. This warning is issued because xschem has tcp listening enabled. Edit your xschemrc, find this line and comment it out.
set xschem_listen_port 2021
Its's always good to disable tcp listening if you don't need to send commands to xschem from other applications. Another possibility is to run the xschem from the bash script with a different tcp port (-
-tcp 2033
)
.. or disable tcp in the bash command:
xschem --tcl 'set xschem_listen_port {}' ......
Although the best thing to do is to disable tcp listening entirely in the xschemrc file if you are not using this.
t
Thank you very much, @Stefan Schippers