mirror of https://github.com/VLSIDA/OpenRAM.git
Uncommented offset_all_coordinates.
This commit is contained in:
parent
febc053587
commit
8c33749223
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue