bank/description: regprefix
This commit is contained in:
parent
7a1a781f49
commit
31cdb02eff
|
@ -1,5 +1,10 @@
|
|||
from migen.fhdl.structure import *
|
||||
|
||||
def regprefix(prefix, registers):
|
||||
for register in registers:
|
||||
register.name = prefix + register.name
|
||||
return registers
|
||||
|
||||
class RegisterRaw:
|
||||
def __init__(self, name, size=1):
|
||||
self.name = name
|
||||
|
|
Loading…
Reference in New Issue