Skip to content

Commit 0dd371b

Browse files
committed
test: MockArray flat and hierarchical flow
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 72c585d commit 0dd371b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test/orfs/mock-array/BUILD

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ filegroup(
103103
visibility = [":__subpackages__"],
104104
)
105105

106-
orfs_flow(
106+
VARIANTS = [
107+
"base",
108+
"flat",
109+
]
110+
111+
[orfs_flow(
107112
name = "MockArray",
108113
arguments = {
109114
"PLACE_PINS_ARGS": "-annealing",
@@ -135,16 +140,17 @@ orfs_flow(
135140
"IO_PLACER_V": "M5 M7",
136141
"IO_PLACER_H": "M4 M6",
137142
"DETAILED_ROUTE_END_ITERATION": "6",
138-
"OPENROAD_HIERARCHICAL": "1",
143+
"OPENROAD_HIERARCHICAL": "1" if variant == "base" else "0",
139144
},
140145
macros = ["Element_generate_abstract"],
141146
sources = {
142147
"RULES_JSON": [":rules-base.json"],
143148
"SDC_FILE": [":mock-array-constraints"],
144149
"IO_CONSTRAINTS": [":mock-array-io"],
145150
},
151+
variant = variant,
146152
verilog_files = [":verilog"],
147-
)
153+
) for variant in VARIANTS]
148154

149155
filegroup(
150156
name = "mock-array-element-io",

test/orfs/mock-array/rules-base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"synth__design__instance__area__stdcell": {
3-
"value": 14185.31,
3+
"value": 14384.92,
44
"compare": "<="
55
},
66
"constraints__clocks__count": {

0 commit comments

Comments
 (0)