Skip to content

Commit

Permalink
doc: fix regression with new irq manager
Browse files Browse the repository at this point in the history
Previously, we were accessing the `soc.soc_interrupt_map` property in
order to be able to enumerate the interrupts.  This has been subsumed
into a more general `irq` object that manages the interrupts.

Use `soc.irq.locs` instead of `soc.soc_interrupt_map` as the authority
on interrupts for both doc and export.

This fixes #385.

Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs committed Feb 13, 2020
1 parent 1620f9c commit baa29f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion litex/soc/doc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def generate_docs(soc, base_dir, project_name="LiteX SoC Project",

# Gather all interrupts so we can easily map IRQ numbers to CSR sections
interrupts = {}
for csr, irq in sorted(soc.soc_interrupt_map.items()):
for csr, irq in sorted(soc.irq.locs.items()):
interrupts[csr] = irq

# Convert each CSR region into a DocumentedCSRRegion.
Expand Down
2 changes: 1 addition & 1 deletion litex/soc/integration/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def print_svd_register(csr, csr_address, description, length, svd):
svd.append(' </register>')

interrupts = {}
for csr, irq in sorted(soc.soc_interrupt_map.items()):
for csr, irq in sorted(soc.irq.locs.items()):
interrupts[csr] = irq

documented_regions = []
Expand Down

0 comments on commit baa29f1

Please sign in to comment.