Skip to content

Commit 0888df5

Browse files
committed
makefile: print clock name and peiod for single clock warning in update_ok
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent d14bf69 commit 0888df5

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)