mirror of https://github.com/VLSIDA/OpenRAM.git
m3 min area rounding fix
This commit is contained in:
parent
fbc6dfdaac
commit
7920b0cef9
|
|
@ -17,6 +17,7 @@ import os
|
||||||
from globals import OPTS
|
from globals import OPTS
|
||||||
from vector import vector
|
from vector import vector
|
||||||
from pin_layout import pin_layout
|
from pin_layout import pin_layout
|
||||||
|
from utils import round_to_grid
|
||||||
|
|
||||||
|
|
||||||
class layout():
|
class layout():
|
||||||
|
|
@ -1213,7 +1214,8 @@ class layout():
|
||||||
else:
|
else:
|
||||||
# Hack for min area
|
# Hack for min area
|
||||||
if OPTS.tech_name == "s8":
|
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:
|
else:
|
||||||
width = via.width
|
width = via.width
|
||||||
height = via.height
|
height = via.height
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue