mirror of https://github.com/VLSIDA/OpenRAM.git
Add error with zero length labels on GDS write.
This commit is contained in:
parent
2243761500
commit
d3f4810d1b
|
|
@ -422,7 +422,8 @@ class VlsiLayout:
|
||||||
self.structures[self.rootStructureName].texts.append(textToAdd)
|
self.structures[self.rootStructureName].texts.append(textToAdd)
|
||||||
|
|
||||||
def padText(self, text):
|
def padText(self, text):
|
||||||
if(len(text)%2 == 1):
|
debug.check(len(text) > 0, "Cannot have zero length text string.")
|
||||||
|
if(len(text) % 2 == 1):
|
||||||
return text + '\x00'
|
return text + '\x00'
|
||||||
else:
|
else:
|
||||||
return text
|
return text
|
||||||
|
|
@ -696,7 +697,6 @@ class VlsiLayout:
|
||||||
|
|
||||||
return max_pins
|
return max_pins
|
||||||
|
|
||||||
|
|
||||||
def getAllPinShapes(self, pin_name):
|
def getAllPinShapes(self, pin_name):
|
||||||
"""
|
"""
|
||||||
Search for a pin label and return ALL the enclosing rectangles on the same layer
|
Search for a pin label and return ALL the enclosing rectangles on the same layer
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue