m3 min area rounding fix

This commit is contained in:
Joey Kunzler 2020-04-17 12:36:48 -07:00
parent fbc6dfdaac
commit 7920b0cef9
1 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,7 @@ import os
from globals import OPTS
from vector import vector
from pin_layout import pin_layout
from utils import round_to_grid
class layout():
@ -1213,7 +1214,8 @@ class layout():
else:
# Hack for min area
if OPTS.tech_name == "s8":
height = width = sqrt(drc["minarea_m3"])
width = round_to_grid(sqrt(drc["minarea_m3"]))
height = round_to_grid(drc["minarea_m3"]/width)
else:
width = via.width
height = via.height