bus: list signals

This commit is contained in:
Sebastien Bourdeauducq 2012-01-15 15:48:51 +01:00
parent 3c7161cc34
commit 77b3c8e3bb

View file

@ -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)]