Permalink
Browse files

bus: list signals

  • Loading branch information...
1 parent 3c7161c commit 77b3c8e3bbea68eba4c56f1df5b622ecab45e29c @sbourdeauducq sbourdeauducq committed Jan 15, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 migen/bus/simple.py
View
@@ -20,3 +20,8 @@ def __init__(self, desc, slave, name):
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)]

0 comments on commit 77b3c8e

Please sign in to comment.