magical-eda / MAGICAL

Machine Generated Analog IC Layout
BSD 3-Clause "New" or "Revised" License
212 stars 50 forks source link

Labels in floorplan #57

Open martin-stastny opened 1 year ago

martin-stastny commented 1 year ago

Suggesting to change line 220 in https://github.com/magical-eda/MAGICAL/blob/master/flow/python/Placer.py from

text = gdspy.Text(cktNode.name,50,((boundary.xLo+boundary.xHi)/2+x_offset,(boundary.yLo+boundary.yHi)/2+y_offset),layer=100)

to

text = gdspy.Label(cktNode.name,((boundary.xLo+boundary.xHi)/2+x_offset,(boundary.yLo+boundary.yHi)/2+y_offset), 'o')

This way, it creates a floorplan with readable labels in the GDS instead of labels created by multiple rectangles in layer 100. I think other users might also find it more helpful that way.