mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bus: list signals
This commit is contained in:
parent
3c7161cc34
commit
77b3c8e3bb
1 changed files with 5 additions and 0 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue