I'm trying to get started with xschem and ngspice to simulate some circuits but have problems getting the programs installed.
I tried a very small circuit with 1 transistor, but get an error. After looking around on the web I still don't now how to fix it. In the manual I found that there should be external port names in the line of the .subckt but xschem doens't generated this, can that be a problem? I don't now if I need to add something extra in the schematic?
I will add picture of schematic, netlis and simulation error below.
Thanks in advance! I'm very new to this, so it is very possible it is a very stupid mistake. Kind Regards Faith



.LIBfile for the IRF540, and then add a.lib sihf540.libas a SPICE command on the schematic . The file is available on Vishay's site here: https://www.vishay.com/mosfets/list/product-91021/tab/designtools-ppg/ – Ste Kulov Nov 23 '21 at 01:54