Hello all, What's the equivalent of the "@m.xm1.ms...
# gf180mcu
j
Hello all, What's the equivalent of the "@m.xm1.msky130_fd_pr__nfet_01v8[id]" kind of syntax we use in sky130 in the gf180 context?
a
Same
It's ngspice
c
The syntax and grammar are the same. If you ever wonder how to access the subckt of those transistors, I think they are all named m0 if I'm not mistaken.
s
Use .
option savecurrents
and use
save all
in your .
control
block. By looking into the raw file you will get the used syntax.
a
@Jorge Marin This is ngspice syntax regardless of the technology. It should be something like this:
Copy code
@<target_dev>.<device_full_path_in_netlist>[<device_parameter>]
Here an example subcircuit:
Copy code
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,
Copy code
@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.