OK my dear colleague timof!!
Thank you very much for your reply.
Let's see what we can do debugging this.
This is my vertical npn bjt device.
Yellow color is SN (shallow n layer)
Red color is SP (shallow p layer)
Thick yellow line is NW (the n-well)
Blue is M1 (metal 1)
Checkered White is CT (contact opening)
So, NW defines the collector diffusion area, then SP defines the base area and the SN (the one inside the SP) is the emitter area.
Notice that the SN path between the two SP areas is the collector contact.
And the outermost SP is just a guard ring.
Ok, with that in mind, let's go to my device definition.
DEVICE Q(NP) base NW(C) base(B) emitt_pin(E)
base = SP INTERACT SN
emitt_pin = SN INTERACT SP
CONNECT M1 emitt_pin BY CT
CONNECT M1 base BY CT
I have read the chapter on device definition in the manual, but I still have a lot of questions.
For instance, the layer base is the seed of the device definition, I don't understand why but that's ok.
I don't know if I need to define the entire area of my base diffusion layer or do I need to make a boolean operation to remove the emitter area, such as:
base = (SP INTERACT SN) NOT emitt_pin ??
Another question is: Is my collector(C) pin the entire collector diffusion region (i.e. NW layer) or just the contact?
If the later case is right, my collector pin definition should be:
coll_pin = (SN NOT INTERACT SP) AND NW
However, this does not work since outputs an error: "Nothing in layout".
I am reallly fucked up with this.
Would you be so kind to give a help?
Thank you very much.