cores/icap: add CSR descriptions.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 11 Mar 2020 10:04:42 +0000 (11:04 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 11 Mar 2020 10:04:42 +0000 (11:04 +0100)
litex/soc/cores/icap.py

index feab751b95a6ce8babde19bf1c3aef01fb04c275..3add30122c84b2156bb80a9f594fba8084bc5cc5 100644 (file)
@@ -18,10 +18,10 @@ class ICAP(Module, AutoCSR):
     reloaded from SPI Flash by writing 0x00000000 at address @0x4.
     """
     def __init__(self, simulation=False):
-        self.addr = CSRStorage(5)
-        self.data = CSRStorage(32)
-        self.send = CSR()
-        self.done = CSRStatus(reset=1)
+        self.addr = CSRStorage(5,  description="ICAP Write Address.")
+        self.data = CSRStorage(32, description="ICAP Write Data.")
+        self.send = CSRStorage(description="ICAP Control.\n\n Write ``1`` send a write command to the ICAP.")
+        self.done = CSRStatus(reset=1, description="ICAP Status.\n\n Write command done when read as ``1``.")
 
         # # #