How to have LDD devices extracted as MOSFETs instead of user-defined, X, devices.
Calibre is treating the LDD as a user-defined (X call) device and therefore netlisting the pins in the order they occur in the DEVICE LDD statement.
Example DEVICE statement: DEVICE LDD(me) LDDGATE POLY (G) ACT (S) LDACT (D) PWELL (B)
Example Spice output: xMN0 gateNet sourceNet drainNet bulkNet me w=2e-06 l=2e-06
This issue only applies to Calibre xRC.
The LDD device may be netlisted as a MOS, m, device by adding the "NETLIST ELEMENT m" to the DEVICE LDD statements. The pins are then swapped into the standard Spice MOS order of D G S B.
Example DEVICE statement: DEVICE LDD(me) LDDGATE POLY (G) ACT (S) LDACT (D) PWELL (B) NETLIST ELEMENT m
Example Spice output: mMN0 drainNet gateNet sourceNet bulkNet me W=2e-06 L=2e-06