From 8c337492234fb55edcc0c8fb4916a82bf2c6ef31 Mon Sep 17 00:00:00 2001 From: jsowash Date: Wed, 4 Sep 2019 16:41:27 -0700 Subject: [PATCH] Uncommented offset_all_coordinates. --- compiler/base/lef.py | 3 --- compiler/sram/sram_base.py | 10 ++++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/compiler/base/lef.py b/compiler/base/lef.py index e0c79f38..af539742 100644 --- a/compiler/base/lef.py +++ b/compiler/base/lef.py @@ -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))) diff --git a/compiler/sram/sram_base.py b/compiler/sram/sram_base.py index d3636ede..2a4983b6 100644 --- a/compiler/sram/sram_base.py +++ b/compiler/sram/sram_base.py @@ -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