From: Ilia Sergachev Date: Sun, 2 Jun 2019 18:56:02 +0000 (+0200) Subject: fix csr_name in add_csr() X-Git-Tag: 24jan2021_ls180~1188^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db890736ea8d58435698c4c1af27c6c7236a48e3;p=litex.git fix csr_name in add_csr() --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 949bd043..86b0100a 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -397,7 +397,7 @@ class SoCCore(Module): if n not in self.soc_csr_map.values(): self.soc_csr_map.update({csr_name: n}) return - raise ValueError("No more space to allocate {} csr".format(name)) + raise ValueError("No more space to allocate {} csr".format(csr_name)) # csr_id provided: check that csr_id is not already used and add csr else: for _name, _id in self.soc_csr_map.items():