Skip to content

Commit

Permalink
dry: add add_option_all_stages() helper 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 8b2ad94 commit 61bb3ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ This module contains a definiton of build_openroad() macro used for declaring
targets for running physical design flow with OpenROAD-flow-scripts.
"""

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

def enumerate(iterable):
"""
Convert list of elements into list of tuples (index, element)
Expand Down

0 comments on commit 61bb3ce

Please sign in to comment.