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 <sean@xobs.io>
# 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.
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 = []