soc_core: Don't fail if name is the same.
Otherwise you can't override the UART with another UART, you get an error like; ``` File "/home/tansell/github/timvideos/HDMI2USB-litex-firmware/third_party/litex/litex/soc/integration/soc_core.py", line 176, in __init__ interrupt, mod_name, interrupt_rmap[interrupt])) AssertionError: Interrupt vector conflict for IRQ 2, user defined uart conflicts with SoC inbuilt uart ```
This commit is contained in:
parent
bebaef1e25
commit
3d40ad0a82
|
@ -171,7 +171,7 @@ class SoCCore(Module):
|
||||||
|
|
||||||
# Add the base SoC's interrupt map
|
# Add the base SoC's interrupt map
|
||||||
for mod_name, interrupt in self.soc_interrupt_map.items():
|
for mod_name, interrupt in self.soc_interrupt_map.items():
|
||||||
assert interrupt not in interrupt_rmap, (
|
assert interrupt not in interrupt_rmap or mod_name == interrupt_rmap[interrupt], (
|
||||||
"Interrupt vector conflict for IRQ %s, user defined %s conflicts with SoC inbuilt %s" % (
|
"Interrupt vector conflict for IRQ %s, user defined %s conflicts with SoC inbuilt %s" % (
|
||||||
interrupt, mod_name, interrupt_rmap[interrupt]))
|
interrupt, mod_name, interrupt_rmap[interrupt]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue