diff --git a/floogen/model/link.py b/floogen/model/link.py index af4377ec..eb7dfa9f 100644 --- a/floogen/model/link.py +++ b/floogen/model/link.py @@ -45,7 +45,8 @@ def render_enum_decl(cls): for _, mapping in cls.channel_mapping.items(): for ch_type, axi_chs in mapping.items(): for axi_ch in axi_chs: - string += f"{snake_to_camel(f"{ch_type}_{axi_ch}")} = {i},\n" + name = f"{ch_type}_{axi_ch}" + string += f"{snake_to_camel(name)} = {i},\n" i += 1 string += f"NumAxiChannels = {i}\n}} axi_ch_e;\n" return string