Hi again <@U01819B63HP>, sorry, another question [...
# xschem
c
Hi again @User, sorry, another question [edit: Now solved, see below] I have a subckt model of an inductor (from some EM simulations) and I'd like to use in in xschem. What I've tried so far is creating a symbol for this inductor in xschem with no schematic associated, let's call it nameofsymbol.sym, and placing that symbol in my testbench schematic, and in the code_shown block I put .lib /path/inductormodel.mod and in the properties of the symbol I put model=subcircuitname where that subcircuit is defined in inductormodel.mod but when I netlist, it complains "unable to open file nameofsymbol.sch". How do I tell it not to look for any schematic and just use the subcircuit defined in the file that I provided please? (The next question will be: how do I correct the order of the pins in my symbol to match the model....) [EDIT}: Nevermind, after reading the tutorials again I figured out that I needed to select the symbol, then go Edit->Edit selected symbol view in new window, then with nothing selected press q, then change type=subcircuit to something else, I used type=textfile_subcircuit, now it netlists ok. The only remaining thing that is puzzling me is that it instantiates a subcircuit named the same as the symbol, instead of the model= that I put in the symbol properties.
s
@Chris Jones , For the model name, just edit the symbol, in the format string you have something like: format="@name @pinlist @symname" Change to : format="@name @pinlist @model"