@Jorge Marin This is ngspice syntax regardless of the technology. It should be something like this:
@<target_dev>.<device_full_path_in_netlist>[<device_parameter>]
Here an example subcircuit:
xinv in out inv
.subckt inv in out gnd vdd
mn out in gnd gnd NMOS
mp out in vdd vdd PMOS
.ends
To reference nmos device,
@m.xinv.mn[id]
Now,
how to deal with GF180MCU or any other technology that wraps the model with subcircuit?
You need to check the model card to see how the internal device is named or if there are deeper subcircuit inside.
As prof.
@Boris Murmann mentioned in GF180MCU, the device named internally
m0
but keep in mind that the
x1
depends on your subcircuit naming.