From: Florent Kermarrec Date: Thu, 2 Apr 2015 10:13:22 +0000 (+0200) Subject: migen/bank/description: remove support of _r prefix in CSRs X-Git-Tag: 24jan2021_ls180~2099^2~133^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d67f24ddc70099affa0fbc3558f8efcb6988142f;p=litex.git migen/bank/description: remove support of _r prefix in CSRs --- diff --git a/migen/bank/description.py b/migen/bank/description.py index fd506fe2..e44cc56b 100644 --- a/migen/bank/description.py +++ b/migen/bank/description.py @@ -8,8 +8,6 @@ class _CSRBase(HUID): self.name = get_obj_var_name(name) if self.name is None: raise ValueError("Cannot extract CSR name from code, need to specify.") - if len(self.name) > 2 and self.name[:2] == "r_": - self.name = self.name[2:] self.size = size class CSR(_CSRBase):