Skip to content

Commit d0795d2

Browse files
committed
py/tt/placer: Try to mix-up rows to help density fill on IHP
Signed-off-by: Sylvain Munaut <[email protected]>
1 parent 2e4b462 commit d0795d2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

py/tt/placer.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ def __init__(self, cfg, mod_file, verbose=False):
8282
# Current place mode
8383
self.analog_fill = False
8484

85+
# Y candidtates
86+
self.yc = []
87+
for y_mod in range(8):
88+
for y in range(y_mod, self.cfg.tt.grid.y, 8):
89+
self.yc.append(y)
90+
8591
# Extract analog muxes positions
8692
self.mux_analog = set()
8793
if hasattr(self.cfg.tt, 'analog'):
@@ -245,7 +251,7 @@ def _site_suitable(self, mod, pos_x, pos_y):
245251

246252
def _find_xy_for_module(self, mod):
247253
# Scan the whole grid in order and check if suitable
248-
for y in range(self.cfg.tt.grid.y):
254+
for y in self.yc:
249255
for x in range(self.cfg.tt.grid.x):
250256
if self._site_suitable(mod, x, y):
251257
return x, y

0 commit comments

Comments
 (0)