From 77b3c8e3bbea68eba4c56f1df5b622ecab45e29c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 15 Jan 2012 15:48:51 +0100 Subject: [PATCH] bus: list signals --- migen/bus/simple.py | 5 +++++ 1 file changed, 5 insertions(+) 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)] -- 2.30.2