diff --git a/migen/bus/simple.py b/migen/bus/simple.py index 07214679c..e7dcc52be 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)]