From: Sebastien Bourdeauducq Date: Mon, 15 Oct 2012 19:21:59 +0000 (+0200) Subject: bank/description: regprefix X-Git-Tag: 24jan2021_ls180~2099^2~819 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31cdb02eff9b55086219560ea385841a1aff5464;p=litex.git bank/description: regprefix --- diff --git a/migen/bank/description.py b/migen/bank/description.py index a83d87d6..a7f43925 100644 --- a/migen/bank/description.py +++ b/migen/bank/description.py @@ -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