It looks like you're new here. If you want to get involved, click one of these buttons!
How to use the cell.bbox in a DRC file ?
nwell = input (1,0)
cellBulk = RBA::CellView::active.cell.bbox
pwell = cellBulk - nwell
But, the last command does not work, because I cannot mix a bbox with a polygon.
Here, I cannot use make_polygon : I need it for the extraction of NMOS in triple well.
Thank you,
Laurent
Comments
Hi Laurent,
the "extent" function will simply return the bounding box of the input layout:
(you just need to be careful not to define a layer with this name).
Best regards,
Matthias
Thank you Matthias.
I tried it, but it is not compatible with deep (hierarchical) extraction. I works for a simple cell without hierarchy, but find different nets at higher level. The solution I use so far is a boundary layer for all cells including a device, and no boundary for the cells that only include cells.
I need to add (tpwell - nwell) because the tpwell is surrounded by nwell and then excluded from the cellBulk.
Laurent
Hi Laurent,
That's right, unfortunately
Unfortunately, an hierarchical cell extension is difficult to do as you cannot easily tell what the cell's true boundary is and how it is to be distributed on parent and child cells. This might be a box - but that could be any shape shape too.
The solution I have found for this issue is this: you might be interested in the "bulk" as such, but usually you would just need it to connect something to. That is probably some bulk contact. So let's say, you have a pplus layer which acts as the bulk contact within bulk, but not within tpwell or nwell, you would define a "bulk_diode" layer like this:
Later you'd connect these markers to the "BULK" global net, i.e.
So instead of creating a layer for bulk, you create a net for it.
Would this solve your problem?
Best regards,
Matthias