IHP-Open-PDK
IHP-Open-PDK copied to clipboard
nmos_code.py question
Can you explain to me what does this piece of pycell code is doing? As far as I see, it is just redrawing the same box (rectangle) at the same location as many times as there are gate fingers:
for i in range(int(ng)) :
# draw the poly line
xpoly_beg = xcont_end+gatpoly_cont_dist
ypoly_beg = ydiff_beg-gatpoly_Activ_over
xpoly_end = xpoly_beg+l
ypoly_end = ydiff_end+gatpoly_Activ_over
dbCreateRect(self, poly_layer, Box(xpoly_beg, ypoly_beg+diffoffset, xpoly_end, ypoly_end+diffoffset))
I am trying to port this pycell code to Revolution EDA, and I am a bit perplexed.