From 31cdb02eff9b55086219560ea385841a1aff5464 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 15 Oct 2012 21:21:59 +0200 Subject: [PATCH] bank/description: regprefix --- migen/bank/description.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2