Skip to content

Commit 4fe3d70

Browse files
committed
mock-array: calculate x/y placement pitch for elements
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 74dbef2 commit 4fe3d70

File tree

1 file changed

+8
-6
lines changed
  • test/orfs/mock-array

1 file changed

+8
-6
lines changed

test/orfs/mock-array/BUILD

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,17 @@ ce_x = 20
5757

5858
ce_y = 20
5959

60-
pitch_x = 20
61-
62-
pitch_y = 22
63-
6460
# Element size is set to multiple of placement grid above
6561
ce_width = ce_x * placement_grid_x
6662

6763
ce_height = ce_y * placement_grid_y
6864

65+
# Routing by abutment horizontally
66+
pitch_x = ce_width
67+
68+
# Some routing space vertically for clock routing
69+
pitch_y = ce_height + (placement_grid_y * 3)
70+
6971
# top level core offset
7072
margin_x = placement_grid_x
7173

@@ -83,11 +85,11 @@ array_spacing_y = margin_y * 2
8385

8486
# top level core and die size
8587
core_width = (
86-
2 * margin_x + ((placement_grid_x * pitch_x) * (cols - 1)) + ce_width
88+
pitch_x * (cols - 1) + ce_width
8789
)
8890

8991
core_height = (
90-
2 * margin_y + ((placement_grid_y * pitch_y) * (rows - 1)) + ce_height
92+
pitch_y * (rows - 1) + ce_height
9193
)
9294

9395
die_width = core_width + (array_spacing_x * 2)

0 commit comments

Comments
 (0)