From: Sebastien Bourdeauducq Date: Sun, 15 Jan 2012 14:48:51 +0000 (+0100) Subject: bus: list signals X-Git-Tag: 24jan2021_ls180~2099^2~1079 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77b3c8e3bbea68eba4c56f1df5b622ecab45e29c;p=litex.git bus: list signals --- diff --git a/migen/bus/simple.py b/migen/bus/simple.py index 07214679..e7dcc52b 100644 --- a/migen/bus/simple.py +++ b/migen/bus/simple.py @@ -20,3 +20,8 @@ class Simple(): busname += "_" + name signame = get_sig_name(signal, slave) setattr(self, signame, Signal(BV(signal[2]), busname + "_" + signame)) + + def signals(self): + return [self.__dict__[k] + for k in self.__dict__ + if isinstance(self.__dict__[k], Signal)]