From af82abb8072256029705c7c64818eb6c3348a4dd Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Fri, 16 Oct 2020 14:32:06 -0500 Subject: [PATCH] Allow SoCCore instances to set maximum interrupt number --- litex/soc/integration/soc_core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 95d268720..d96fb5347 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -7,6 +7,7 @@ # This file is Copyright (c) 2019 Gabriel L. Somlo # This file is Copyright (c) 2019 Ilia Sergachev # This file is Copyright (c) 2018 Jean-François Nguyen +# This file is Copyright (c) 2020 Raptor Engineering, LLC # This file is Copyright (c) 2015 Robert Jordens # This file is Copyright (c) 2018 Sean Cross # This file is Copyright (c) 2018 Stafford Horne @@ -84,6 +85,8 @@ class SoCCore(LiteXSoC): csr_address_width = 14, csr_paging = 0x800, csr_ordering = "big", + # Interrupt parameters + irq_n_irqs = 32, # Identifier parameters ident = "", ident_version = False, @@ -114,7 +117,7 @@ class SoCCore(LiteXSoC): csr_ordering = csr_ordering, csr_reserved_csrs = self.csr_map, - irq_n_irqs = 32, + irq_n_irqs = irq_n_irqs, irq_reserved_irqs = {}, )