Skip to content

library/spi_engine: fix inverted interconnect for intel projects #1873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LBFFilho
Copy link
Contributor

@LBFFilho LBFFilho commented Aug 7, 2025

On intel projects, the s0,s1 connections were inverted before this commit. s1 is intended for the FIFO mode commands and data, and s0 is intended for the Offload mode ones. This inversion meant that when Offload was enabled, the FIFO commands were sent, and vice-versa.

Until recently, before #1502, this was relatively benign, and caused only a priority inversion between both the streams. After #1502, however, it makes the offload enable signal behave wrongly, since it's used for selecting between the s0, s1 interfaces.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)
  • Documentation

PR Checklist

  • I have followed the code style guidelines
  • I have performed a self-review of changes
  • I have compiled all hdl projects and libraries affected by this PR
  • I have tested in hardware affected projects, at least on relevant boards
  • I have commented my code, at least hard-to-understand parts
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe files, Copyright etc)
  • I have not introduced new Warnings/Critical Warnings on compilation
  • I have added new hdl testbenches or updated existing ones

On intel projects, the s0,s1 connections were inverted before this commit. s1 is
intended for the FIFO mode commands and data, and s0 is intended for the Offload
mode ones. This inversion meant that when Offload was enabled, the FIFO commands
were sent, and vice-versa.

Until recently, before #1502, this was relatively benign, and caused only a
priority inversion between both the streams. After #1502, however, it makes
the offload enable signal behave wrongly, since it's used for selecting between
the s0, s1 interfaces.

Signed-off-by: Laez Barbosa <[email protected]>
@LBFFilho LBFFilho added the bug label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant