Skip to content

Commit

Permalink
boomtile: DRY, add add_option_all_stages() function
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Apr 29, 2024
1 parent 6ce91ea commit 75541fe
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -838,32 +838,32 @@ build_openroad(
mock_stage='place'
)

def add_option_all_stages(dict_input, new_value):
result = {}
for key, value in dict_input.items():
result[key] = value + [new_value]
return result

build_openroad(
name = "BoomTile",
verilog_files=all_source_files,
macros=boom_tile_rams + boom_regfile_rams + boom_tile_small_srams + digital_top_srams,
sdc_constraints = ":constraints-boomtile.sdc",
io_constraints=":io-boomtile",
stage_args={
'synth': ['SYNTH_HIERARCHICAL=1',
'DUMMY=1'],
stage_args=add_option_all_stages({
'synth': ['SYNTH_HIERARCHICAL=1'],
'floorplan': [
'SKIP_REPORT_METRICS=1',
'CORE_UTILIZATION=20',
'MACRO_PLACE_HALO=20 20'
# Too slow for now...
,'RTLMP_FLOW=True'
'MACRO_PLACE_HALO=20 20',
'RTLMP_FLOW=True'
],
'cts': ['TNS_END_PERCENT=0',
'SKIP_REPORT_METRICS=1',
'SKIP_CTS_REPAIR_TIMING=1'],
'place': ['PLACE_DENSITY=0.27',
'PLACE_PINS_ARGS=-annealing',
'SKIP_REPORT_METRICS=1',
'GPL_ROUTABILITY_DRIVEN=0'],
'grt': ['SKIP_INCREMENTAL_REPAIR=1',
'SKIP_REPORT_METRICS=1',
'SKIP_ANTENNA_REPAIR=1'],
'route': ['SKIP_REPORT_METRICS=1']
}
'route': []
}, ['SKIP_REPORT_METRICS=1'])
)

0 comments on commit 75541fe

Please sign in to comment.