migen/bank/description: remove support of _r prefix in CSRs

This commit is contained in:
Florent Kermarrec 2015-04-02 12:13:22 +02:00
parent e5ddd1263c
commit d67f24ddc7
1 changed files with 0 additions and 2 deletions

View File

@ -8,8 +8,6 @@ class _CSRBase(HUID):
self.name = get_obj_var_name(name) self.name = get_obj_var_name(name)
if self.name is None: if self.name is None:
raise ValueError("Cannot extract CSR name from code, need to specify.") 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 self.size = size
class CSR(_CSRBase): class CSR(_CSRBase):