From: Sebastien Bourdeauducq Date: Mon, 25 Feb 2013 22:14:15 +0000 (+0100) Subject: bank/description: memprefix X-Git-Tag: 24jan2021_ls180~2099^2~682 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2cbc70190a7157f477a6b8b32a38c5603fb1df8;p=litex.git bank/description: memprefix --- 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