soc_core: ctrl: document registers

This adds a small amount of documentation to the three registers present
inside the `CTRL` module.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-01-02 15:37:45 +08:00
parent a251d71211
commit 2d75aee7e0
1 changed files with 9 additions and 3 deletions

View File

@ -41,9 +41,15 @@ __all__ = [
class SoCController(Module, AutoCSR): class SoCController(Module, AutoCSR):
def __init__(self): def __init__(self):
self._reset = CSR() self._reset = CSRStorage(1, description="""
self._scratch = CSRStorage(32, reset=0x12345678) Write a ``1`` to this register to trigger a system reset.""")
self._bus_errors = CSRStatus(32) self._scratch = CSRStorage(32, reset=0x12345678, description="""
This register is not used by LiteX, and is available
for use as scratch space. For example, you can use
this register to ensure the Wishbone bus is working.""")
self._bus_errors = CSRStatus(32, description="""
A running total of the number of bus errors, such
as Wishbone timeouts.""")
# # # # # #