From: Ilia Sergachev Date: Sun, 2 Jun 2019 18:48:08 +0000 (+0200) Subject: fix interrupt_name X-Git-Tag: 24jan2021_ls180~1188^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40cbe3a95219b914f6c6bba0f905068ea758e646;p=litex.git fix interrupt_name --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index cbd1fb54..949bd043 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -361,7 +361,7 @@ class SoCCore(Module): # check that interrupt_id is in range if interrupt_id is not None and interrupt_id >= 32: raise ValueError("{} Interrupt ID out of range ({}, max=31)".format( - interrupt_namename, interrupt_id)) + interrupt_name, interrupt_id)) # interrupt_id not provided: allocate interrupt to the first available id if interrupt_id is None: @@ -369,7 +369,7 @@ class SoCCore(Module): if n not in self.soc_interrupt_map.values(): self.soc_interrupt_map.update({interrupt_name: n}) return - raise ValueError("No more space to allocate {} interrupt".format(name)) + raise ValueError("No more space to allocate {} interrupt".format(interrupt_name)) # interrupt_id provided: check that interrupt_id is not already used and add interrupt else: for _name, _id in self.soc_interrupt_map.items():