From 2b31696057582608deff6258f0e64bdff6736b8b Mon Sep 17 00:00:00 2001 From: Raphael Roth Date: Thu, 5 Dec 2024 10:39:23 +0100 Subject: [PATCH] WIP Reverted Mario changes as otherwise it results in a register wrap around while writing the register. --- util/mario/frontend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/mario/frontend.py b/util/mario/frontend.py index 702e6d05..c96f4eea 100644 --- a/util/mario/frontend.py +++ b/util/mario/frontend.py @@ -72,7 +72,7 @@ def render_reg_hjson(fe_ids: dict, tpl_file: str) -> str: # higher register depends on the bit-width: 32-bit-case just add alignment marks if fe_ids[fe_id][0] == '32': for i in range(0, 3 * int(fe_ids[fe_id][1])): - align_regs.append(f' {{ skipto: "{hex(8*i + 0xE0)}" }},\n') + align_regs.append(f' {{ skipto: "{hex(8*i + 0xD0)}" }},\n') # assemble regs regs = low_regs + align_regs @@ -107,7 +107,7 @@ def render_reg_hjson(fe_ids: dict, tpl_file: str) -> str: regs[1::2] = high_regs # render - regs = ' { skipto: "0xE0" },\n' + ''.join(regs)[:-2] + regs = ' { skipto: "0xD0" },\n' + ''.join(regs)[:-2] # unsupported bit width else: