Skip to content

Conversation

@rivos-eblot
Copy link

Create a TCP server that supports the QEMU SPI device protocol.

Converts QEMU-compliant SPI device protocol into a simplified version of Verilator SPI DPI, using the Verilator SPI PTY communication channel.

Designed to work with the reworked/simplified Verilator SPI DPI protocol implemented in lowRISC/opentitan#28803

Configuring the timeout is required when dealing with another emulation platform
such as Verilator which is much slower than QEMU

Signed-off-by: Emmanuel Blot <[email protected]>
SFDP address selector is only 3-byte long.

Signed-off-by: Emmanuel Blot <[email protected]>
Pick command opcode 0xE9 which seems to be never used in most SPI device command sets.

Signed-off-by: Emmanuel Blot <[email protected]>
Move it to a dedicated class

Signed-off-by: Emmanuel Blot <[email protected]>
Create a TCP server that supports the QEMU SPI device protocol.
Converts QEMU-compliant SPI device protocol into a simplified version of Verilator SPI DPI,
using the Verilator SPI PTY communication channel.

Signed-off-by: Emmanuel Blot <[email protected]>
@rivos-eblot
Copy link
Author

note: Running unit tests with Verilator led to better understand the behavior of the SPI device, see also lowRISC/opentitan#28806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant