Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[topgen] No inplace edits, it's not indepodent for multiple passes #26301

Merged
merged 1 commit into from
Feb 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions util/topgen/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,11 +1046,12 @@ def amend_interrupt(top: OrderedDict,
for irqs in top['incoming_interrupt'].values():
for irq in irqs:
# Qualify name with module name
irq["name"] = f"{irq['module_name']}_{irq['name']}"
irq["desc"] = f"{irq['module_name']} {irq['name']} incoming interrupt"
irq["incoming"] = True
irq["width"] = 1
interrupts.append(irq)
qual_irq = deepcopy(irq)
qual_irq["name"] = f"{irq['module_name']}_{irq['name']}"
qual_irq["desc"] = f"{irq['module_name']} {irq['name']} incoming interrupt"
qual_irq["incoming"] = True
qual_irq["width"] = 1
interrupts.append(qual_irq)

top["interrupt"] = interrupts

Expand Down
Loading