your FETs have M prefix, that needs to be an X for a subcircuit
s
Stefan Schippers
10/04/2020, 10:37 AM
(@bluecmd) please notice that you can add 'spiceprefix=X' to the mos instance attributes and enable xschem 'Simulation -> Use spiceprefix attribute'. Another simple way to make it work is simply change its name attribute (M1 ->XM1 or X1) . The spiceprefix is used in order to be able to create simulation netlist (with spiceprefix) and LVS netlists (usually without spiceprefix) without manually changing the circuit schematic.
b
bluecmd
10/04/2020, 10:42 AM
Thanks! I was reading about it but it wasn't clear to me how to actually define the spiceprefix, but now when you say it it makes sense it is just like another prefix
bluecmd
10/04/2020, 10:43 AM
I ended up forking the pmos4 component and setting spiceprefix to X specifically
bluecmd
10/04/2020, 10:44 AM
worked! Thanks Stefan!
s
Stefan Schippers
10/04/2020, 10:47 AM
When i was working in Intel as well as Micron, every new process node had the convention about 'use primitive mos, / wrap mos in subcircuits' changed...
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.