Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Mar 13, 2024
1 parent 87177b1 commit 753cbdd
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions coreblocks/peripherals/wishbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ class WishboneMuxer(Component):
Parameters
----------
master_wb: WishboneInterface
Master inteface.
slaves: list of WishboneInterface
List of connected slaves' Wishbone interfaces.
wb_params: WishboneParameters
Parameters for bus generation.
num_slaves: int
Number of slave devices to multiplex.
ssel_tga: Signal
Signal that selects the slave to connect. Signal width is the number of slaves and each bit coresponds
to a slave. This signal is a Wishbone TGA (address tag), so it needs to be valid every time Wishbone STB
Expand All @@ -321,6 +321,13 @@ class WishboneMuxer(Component):
different `ssel_tga` value, all pending request have to be finished (and `stall` cleared) and
there have to be one cycle delay from previouse request (to deassert the STB signal). Holding new
requests should be implemented in block that controlls `ssel_tga` signal, before the Wishbone Master.
Attributes
----------
master_wb: WishboneInterface
Master inteface.
slaves: list of WishboneInterface
List of connected slaves' Wishbone interfaces.
"""

master_wb: WishboneInterface
Expand Down Expand Up @@ -383,6 +390,13 @@ class WishboneArbiter(Component):
Parameters
----------
wb_params: WishboneParameters
Parameters for bus generation.
num_slaves: int
Number of master devices.
Attributes
----------
slave_wb: WishboneInterface
Slave inteface.
masters: list of WishboneInterface
Expand Down

0 comments on commit 753cbdd

Please sign in to comment.