Skip to content
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

Make APB3CCToggle sensitive to PSEL #990

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

distributed
Copy link

@distributed distributed commented Dec 7, 2022

Context, Motivation & Description

Apb3CCToggle does not consider the PSEL signal. The internal state machine is activated by bus traffic for other slaves. Under the right timing conditions this can lead to the input side of the CDC replying to transactions too early, giving wrong read data.

The fix is to make Apb3CCToggle look at the PSEL signal before performing work.

Impact on code generation

None, except for slightly changed component logic.

Checklist

  • Unit tests were added
  • API changes are or will be documented:
    • using Scaladoc comments: /** */?

@distributed distributed changed the title Apb3 cc toggle psel sensitive Make APB3CCToggle sensitive to PSEL Dec 7, 2022
@Dolu1990
Copy link
Member

Dolu1990 commented Dec 7, 2022

Version.sc and Version.scala changes need to be reverted ^^

Previously, Apb3CCToggle was reacting to outside transactions. When a
subsequent transaction through the CDC happened at the wrong time, the
CDC would be seen answering with data from a misinterpreted previous
outside transaction.
@distributed
Copy link
Author

I.e. rebase to dev like it is now?

@Dolu1990
Copy link
Member

Dolu1990 commented Dec 7, 2022

Yes ^^

Thanks :D

@Dolu1990 Dolu1990 merged commit 85e83a7 into SpinalHDL:dev Dec 7, 2022
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.

None yet

2 participants