It looks like you're new here. If you want to get involved, click one of these buttons!
In a DRC-LVS file, I need to define the height/bottom/top for several layers, I tried to define those parameters for each layers with a default of 1.um, but I probably missed a simple definition :
POLY  = polygons(66, 20)
# Define a new custom function that defines the height Z of the layer
class DRC::DRCLayer
  def z_height()
    z_height = 1.um
  end
end 
# Define a new custom function that defines the bottom Z of the layer
class DRC::DRCLayer
  def z_bot()
    z_bot = 1.um
  end
end 
# Define a new custom function that defines the top Z of the layer
class DRC::DRCLayer
  def z_top()
    z_top = 1.um
  end
end 
POLY.z_height = 250.nm
POLY.z_bot = 5.nm
POLY.z_top = POLY.z_bot + POLY.z_height
Can you help me to define those 3 layer parameters ?
Thanks, Regards,
Laurent
Comments
I've not fully digested what you want to do.
However, I hope the sample below is close to it.
Code
Output
Thank you Sekigawa for your very complete and very instructive method.
However, my goal is to extend the KLAYOUT DRC::DRCLayer class with 3 parameters, because I already used that class for other purpose.
Best regards,
Laurent
OK, then, how about this?
Code
Output
Thank you very much Sekigawa, it is exactly what I was looking for
 
I would have never found by myself the syntax of this macro : thank you for your help !
Regards,
Laurent