| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| from collections import OrderedDict |
| clks_attr = cfg['clocks'] |
| grps = clks_attr['groups'] |
| num_hints = len(hint_clks) |
| % for hint, v in hint_clks.items(): |
| ${v['name'].capitalize()} = ${loop.index}${"," if not loop.last else ""} |
| parameter clk_dft_t CLK_DFT_DEFAULT = '{ |
| # Merge Clock Dicts together |
| all_clocks = OrderedDict() |
| all_clocks.update(ft_clks) |
| all_clocks.update(hint_clks) |
| all_clocks.update(rg_clks) |
| all_clocks.update(sw_clks) |
| % for intf, eps in export_clks.items(): |
| % for ep, clks in eps.items(): |
| logic clk_${intf}_${ep}_${clk}; |
| logic [${num_hints}-1:0] idle; |
| parameter clk_hint_status_t CLK_HINT_STATUS_DEFAULT = '{ |
| idle: {${num_hints}{1'b1}} |