Skip to content

fix(TXDAT, RXDAT, MMIOBridge): DataCheck uses odd parity, and support NC#329

Merged
linjuanZ merged 6 commits intomasterfrom
fix-DataCheck
Jan 15, 2025
Merged

fix(TXDAT, RXDAT, MMIOBridge): DataCheck uses odd parity, and support NC#329
linjuanZ merged 6 commits intomasterfrom
fix-DataCheck

Conversation

@Ma-YX
Copy link
Copy Markdown
Contributor

@Ma-YX Ma-YX commented Jan 13, 2025

This pr fixes bugs concerning DataCheck:

  • According to the CHI manual, DataCheck should use odd parity. Fixed the issue where even parity was incorrectly used in TXDAT and RXDAT: the parity bit should be obtained by XOR all bits of the data and then XOR the result with 1.
  • Should use VecInit instead of Cat to avoid reverse sequence.
  • In MMIOBridge, DataCheck operations, which are the same as those in TXDAT & RXDAT, are added for NC.

@Ma-YX Ma-YX marked this pull request as draft January 13, 2025 10:40
@Ma-YX Ma-YX marked this pull request as ready for review January 14, 2025 06:10
@Ma-YX Ma-YX changed the title fix(TXDAT, RXDAT, MMIOBridge): DataCheck uses odd parity in little endian, and support NC fix(TXDAT, RXDAT, MMIOBridge): DataCheck uses odd parity, and support NC Jan 14, 2025
@linjuanZ linjuanZ merged commit eeaef66 into master Jan 15, 2025
@linjuanZ linjuanZ deleted the fix-DataCheck branch January 15, 2025 08:27
cyril0124 pushed a commit to cyril0124/CoupledL2 that referenced this pull request Jan 21, 2025
… NC (OpenXiangShan#329)

This pr fixes bugs concerning `DataCheck`:

* According to the CHI manual, `DataCheck` should use odd parity. Fixed
  the issue where even parity was incorrectly used in `TXDAT` and
  `RXDAT`: the parity bit should be obtained by XOR all bits of the data
  and then XOR the result with 1.
* Should use `VecInit` instead of `Cat` to avoid reverse sequence.
* In `MMIOBridge`, `DataCheck` operations, which are the same as those
  in `TXDAT` & `RXDAT`, are added for `NC`.
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.

2 participants