bank/description: regprefix

This commit is contained in:
Sebastien Bourdeauducq 2012-10-15 21:21:59 +02:00
parent 7a1a781f49
commit 31cdb02eff
1 changed files with 5 additions and 0 deletions

View File

@ -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