IHP-GmbH / IHP-Open-PDK

130nm BiCMOS Open Source PDK, dedicated for Analog, Mixed Signal and RF Design
Apache License 2.0
295 stars 39 forks source link

nmos_code.py question #82

Open eskiyerli opened 3 weeks ago

eskiyerli commented 3 weeks ago

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.