<@U01819B63HP> I was wondering your opinion on cre...
# xschem
y
@Stefan Schippers I was wondering your opinion on creating CDL netlists. For LVS we often want/need to use a CDL format instead of SPICE format. The most obvious difference is FETs which often are modeled in subcircuits in SPICE so use the X prefix, where LVS expects an M prefix. In xschem there is already the
spiceprefix
, would a
cdlprefix
make sense? or maybe a prefix based on
type
? I know that netgen doesn't seem to care about X prefixes but I think it is a little unique, certainly KLayout expects a CDL netlist. So far I've just been post-processing the netlist to strip the X prefix but maybe a better approach is possible?
s
@yrrapt xschem has two options to handle netlists for LVS: 1. Simulation-> LVS netlist: top level is a .subckt 2. Simulation -> Use 'spiceprefix' attribute. the first one encapsulates the top level into a .subckt, as this is usually what i have seen in CDL and/or netlists used for LVS comparison. The second one strips off the spiceprefix character as some LVS tools expect bare devices even if in spice models they are descrbed as subcircuits.
y
@Stefan Schippers great, I was already using the LVS netlist option but didn't notice the spiceprefix option. That should do the trick. Thanks