mirror of https://github.com/VLSIDA/OpenRAM.git
Odd bug that instances were not properly rotated.
This commit is contained in:
parent
7e2bef624e
commit
dc73e8cb60
|
|
@ -147,8 +147,12 @@ class instance(geometry):
|
||||||
self.width = 0
|
self.width = 0
|
||||||
self.height = 0
|
self.height = 0
|
||||||
else:
|
else:
|
||||||
self.width = round_to_grid(mod.width)
|
if mirror in ["R90","R270"] or rotate in [90,270]:
|
||||||
self.height = round_to_grid(mod.height)
|
self.width = round_to_grid(mod.height)
|
||||||
|
self.height = round_to_grid(mod.width)
|
||||||
|
else:
|
||||||
|
self.width = round_to_grid(mod.width)
|
||||||
|
self.height = round_to_grid(mod.height)
|
||||||
self.compute_boundary(offset,mirror,rotate)
|
self.compute_boundary(offset,mirror,rotate)
|
||||||
|
|
||||||
debug.info(4, "creating instance: " + self.name)
|
debug.info(4, "creating instance: " + self.name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue