soc/cores/spi_mmap: add read only slot count register
This commit is contained in:
parent
3477aeaca1
commit
2e67f6a1a3
|
@ -249,6 +249,9 @@ class SPICtrl(LiteXModule):
|
||||||
self._version = CSRStatus(size=32, description="""SPI Module Version.""",
|
self._version = CSRStatus(size=32, description="""SPI Module Version.""",
|
||||||
reset=int.from_bytes(str.encode(version), 'little'))
|
reset=int.from_bytes(str.encode(version), 'little'))
|
||||||
|
|
||||||
|
self.slot_count = CSRStatus(size=32, description="""SPI Module Slot Count.""",
|
||||||
|
reset=nslots)
|
||||||
|
|
||||||
# Create TX/RX Control/Status registers.
|
# Create TX/RX Control/Status registers.
|
||||||
self.tx_control = CSRStorage(fields=[
|
self.tx_control = CSRStorage(fields=[
|
||||||
CSRField("enable", size=1, offset=0, values=[
|
CSRField("enable", size=1, offset=0, values=[
|
||||||
|
|
Loading…
Reference in New Issue