In magic, how do we connect the body of the transi...
# magic
m
In magic, how do we connect the body of the transistor to the source? I need to avoid the body effect.
t
If you are using the generated cells, then enable the guard ring and connect to that. If you are drawing devices manually, the type
nsd
("nsubstratediffusion") is tap diffusion to nwell, and
psd
("psubstratepdiffusion") is tap diffusion to substrate, with corresponding contact types
nsc
and
psc
.
m
IMG_20240608_234408.jpg
IMG_20240608_234439.jpg
IMG_20240608_234500.jpg
As you can see, there are 3 nets found in the layout but 4 in the schematic. Why is that?
@Tim Edwards i want to connect the body to the source and not to ground or power
t
This appears to be the Sky130 process? Your only choice then is to isolate the body by placing the transistor inside a pwell region inside a deep nwell structure. Then the substrate surrounding the nFET will not be shorted to the global substrate ground.
m
Will try that thanks
@Tim Edwards how do i isolate the body of a pmos then please?
t
body of pmos is the nwell it sits in already so you just need to not put two transistors in the same nwell and you're good.
m
@tnt i tried your thing and it seems to work
IMG_20240609_170522.jpg
IMG_20240609_170546.jpg
IMG_20240609_170608.jpg
Can anyone explain why it is not necessary to have a deep n well for PMOS isolation but a deep n well is needed for NMOS isolation?
l
relatedly, is there some linting/drc setting i can enable to get a warning when i do this by accident?
t
@Luke Harold Miles: @Mitch Bailey’s precheck test for soft connections does that.
l
Oh so it was actually helping me out this whole time then. I thought it just hated me personally. I guess he put those checks in there for a reason after all
m
@Mohammad Tahmid Hassan pmos bulk is nwell. you can physically separate nwell without using deep nwell. That’s why you don’t need deep nwell for pmos isolation - just use a different nwell.