From d2cbc70190a7157f477a6b8b32a38c5603fb1df8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 25 Feb 2013 23:14:15 +0100 Subject: [PATCH] bank/description: memprefix --- migen/bank/description.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migen/bank/description.py b/migen/bank/description.py index 44759b81..610c6a76 100644 --- a/migen/bank/description.py +++ b/migen/bank/description.py @@ -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 -- 2.30.2