You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to use SoCBusHandler.add_peripheral, which seems to be a more pleasant name to access the same interface as SoCBusHandler.add_slave, chokes in the following way:
Traceback (most recent call last):
File "/storage/home/joshua/work/xxx/gateware/./bridge.py", line 234, in <module>
main()
File "/storage/home/joshua/work/xxx/gateware/./bridge.py", line 224, in main
build_with_platform(platform,
File "/storage/home/joshua/work/xxx/gateware/./bridge.py", line 206, in build_with_platform
soc = BaseSoC(**{'platform': platform, **soc_args})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/home/joshua/work/xxx/gateware/./bridge.py", line 203, in __init__
self.bus.add_peripheral(name = "csirx0", peripheral = self.csirx0.bus, region = self.bus.alloc_region("csirx0", 64 * 4, cached = False))
File "/storage/home/joshua/work/xxx/litex/litex/litex/soc/integration/soc.py", line 530, in add_peripheral
self.add_slave(self, name=name, slave=peripheral, region=region)
TypeError: SoCBusHandler.add_slave() got multiple values for argument 'name'
It seems that the first self there is unnecessary.
(I would submit this as a PR instead of an Issue but my tree is a total mess right now :) )
The text was updated successfully, but these errors were encountered:
Attempting to use
SoCBusHandler.add_peripheral
, which seems to be a more pleasant name to access the same interface asSoCBusHandler.add_slave
, chokes in the following way:It seems that the first
self
there is unnecessary.(I would submit this as a PR instead of an Issue but my tree is a total mess right now :) )
The text was updated successfully, but these errors were encountered: