mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bank/description: memprefix
This commit is contained in:
parent
a81781f589
commit
d2cbc70190
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,11 @@ def regprefix(prefix, registers):
|
|||
register.name = prefix + register.name
|
||||
return registers
|
||||
|
||||
def memprefix(prefix, memories):
|
||||
for memory in memories:
|
||||
memory.name_override = prefix + memory.name_override
|
||||
return memories
|
||||
|
||||
class RegisterRaw:
|
||||
def __init__(self, name, size=1):
|
||||
self.name = name
|
||||
|
|
Loading…
Reference in a new issue