Uncommented offset_all_coordinates.

This commit is contained in:
jsowash 2019-09-04 16:41:27 -07:00
parent febc053587
commit 8c33749223
2 changed files with 4 additions and 9 deletions

View File

@ -55,9 +55,6 @@ class lef:
self.lef.write("{0}MACRO {1}\n".format(self.indent,self.name))
self.indent += " "
self.lef.write("{0}CLASS BLOCK ;\n".format(self.indent))
self.lef.write("{0}ORIGIN {1} {2} ;\n".format(self.indent,
round(self.origin_offset[0], self.round_grid),
round(self.origin_offset[1], self.round_grid)))
self.lef.write("{0}SIZE {1} BY {2} ;\n" .format(self.indent,
round(self.width,self.round_grid),
round(self.height,self.round_grid)))

View File

@ -36,7 +36,7 @@ class sram_base(design, verilog, lef):
self.bank_insts = []
if self.write_size:
self.num_wmasks =nt(self.word_size/self.write_size)
self.num_wmasks = int(self.word_size/self.write_size)
else:
self.num_wmasks = 0
@ -120,13 +120,11 @@ class sram_base(design, verilog, lef):
self.add_lvs_correspondence_points()
#self.offset_all_coordinates()
self.offset_all_coordinates()
highest_coord = self.find_highest_coords()
lowest_coord = self.find_lowest_coords()
self.width = highest_coord[0] - lowest_coord[0]
self.height = highest_coord[1] -lowest_coord[1]
self.origin_offset = vector(- lowest_coord[0], - lowest_coord[1])
self.width = highest_coord[0]
self.height = highest_coord[1]
start_time = datetime.now()
# We only enable final verification if we have routed the design