Skip to content

Commit

Permalink
WIP Reverted Mario changes as otherwise it results in a register wrap…
Browse files Browse the repository at this point in the history
… around while writing the register.
  • Loading branch information
Raphael Roth committed Dec 5, 2024
1 parent f937627 commit 2b31696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/mario/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2b31696

Please sign in to comment.