Default Symbol Shape for Generic Spice Model

Hello, I was wondering if it is possible to change the default shape of a generic Spice model when you are trying to add a new symbol. Currently, the default shape seems to be a square - is it possible to make the default shape the opamp symbol when inserting a new model into QSpice? Thanks!

I guess you are referring to autogenerating symbols from a subcircuit netlist. The autogenerate symbol is default in yellow with a box shape (steps 1 to 4). If you want to change its appearance, you need to do so in the Symbol Window by following steps 5 to 9. You can customize the drawing to your preference in step 8.

1 Like

Hi Kevin. That was the method I was using, but I wasn’t sure if there was an option to choose the default shape of the symbol when adding a subcircuit. Thanks for the response!

So far, I am not aware of a way to change the shape of the autogenerate symbol. Is there a specific reason you want to have a choice in the initial shape of the autogenerate symbol? .subckt models, in general, are quite different and typically require dealing with their pin assignments on a case-by-case basis, except for opamps. However, you can always reuse your custom opamp symbols with autogenerate method (of course, needs few more clicks). Therefore, I am just curious about the reason.

I am trying to build up my own symbol library in QSpice, which includes quite a few opamps. It’s a bit tedious to always add the triangle shape and reorganize the pinout. I was curious if there was a way to choose the type of subcircuit shape the model is when adding it to QSpice (triangle for opamp, pentagon for ADC, etc.).

Hi, csto.

I agree that it would be nice if we could select a shape.

Since that’s not an option and you have a large number of op amps to convert, you might consider editing the symbol file directly. It’s a text file. Copy the sub-circuit definition into the “library file:” text record. You’d still need to be careful with pin numbering, of course.

Just an idea.

–robert

Actually, you don’t have to redraw your symbol every time. If you want a symbol with an embedded subcircuit, you can take advantage of the autogenerate symbol method and copy its generated one-line netlist into your custom symbol.

I created subcircuit symbols and uploaded it to my GitHub. In fact, you just need a few extra steps to complete this work. Here are two files that requires for below procedure if you want to practice this. I think if you follow the step and you will see how easy can reuse a custom symbol with autogenerate symbol method.

Opamp-VddVss-subckt2.qsym (898 Bytes)
OPA462.txt (15.6 KB)

https://github.com/KSKelvin-Github/Qspice/tree/main/Symbols-KSKelvin/subckt%20symbol%20(third-party%20model)

1 Like