Skip to content

Commit c83d098

Browse files
authored
Merge pull request #1323 from Pinata-Consulting/update-ok-single-clock-warning
makefile: print clock name and peiod for single clock warning in update_ok
2 parents d9cb46d + 0888df5 commit c83d098

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

flow/util/genRuleFile.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,11 @@
237237
'!=': operator.ne,
238238
}
239239

240-
period_list = list()
241-
for entry in metrics['constraints__clocks__details']:
242-
period_list.append(float(sub(r'^.*: ', '', entry)))
240+
period_list = metrics['constraints__clocks__details']
243241

242+
period = float(sub(r'^.*: ', '', period_list[0]))
244243
if len(period_list) != 1:
245-
print('[WARNING] Multiple clocks not supported. Will use first clock.')
246-
period = period_list[0]
244+
print(f'[WARNING] Multiple clocks not supported. Will use first clock: {period_list[0]}.')
247245

248246
for field, option in rules_dict.items():
249247
if field not in metrics.keys():

0 commit comments

Comments
 (0)