lowRISC / lowRISC/opentitan

[spi_device] Late CSb de-assertion for op-complete commands

Open
#15,517 7 comments 0 reactions 1 assignee View on GitHub

@a-will is already working on this.

Since Jan 12, 2024.

Component:RTL Earlgrey-PROD Candidate IP:spi_device Priority:P3
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

The current SPI_DEVICE HWIP has a few limitation of detecting the host system's misbehaviors:

  • If host de-asserts CSb prior to the full 8 bit opcode, HW IP silently drops
  • If host de-assrets CSb later than 8th beat, but the received opcode expects op-complete command (such as chip erase), it is expected to discard the command. The current version of SPI_DEVICE, if host terminates the command at 9th beat ~15th beat, the HW uploads the opcode but does not report any errors.

CC: @tjaychen @a-will @weicaiyang @jeoongp

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.