migen/bank/description: remove support of _r prefix in CSRs
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 2 Apr 2015 10:13:22 +0000 (12:13 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 2 Apr 2015 10:13:22 +0000 (12:13 +0200)
migen/bank/description.py

index fd506fe2172d72f44cea57b46b22b12f6f2a75cd..e44cc56bfa3a6b312e64cf8ae64f10b0234dd776 100644 (file)
@@ -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):