Stop coherent ctrl port write overwriting the most significant word with unused cache.#933
Open
NobleBrutus wants to merge 1 commit into
Open
Stop coherent ctrl port write overwriting the most significant word with unused cache.#933NobleBrutus wants to merge 1 commit into
NobleBrutus wants to merge 1 commit into
Conversation
…e cache. Fix makes behaviour consistent with lines 154-156.
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request |
Author
|
Mu understanding is that for simple bug fixes the CLA is not required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Details
Fix bug in fpga/usrp3/lib/rfnoc/utils/ctrlport_reg_rw.v which overwrites the most significant word with zeros from the cache. Fix makes behaviour consistent with lines 154-156.
Description
Line 156:
reg_val[32*(NUM_BYTES/4-1)+b*8 +: 8] <= s_ctrlport_req_data[8*b +: 8];sets the bits for the word
NUM_BYTES/4-1But line 160 counts up to less than
NUM_BYTES/4which of course includesNUM_BYTES/4-1.This causes the most significant word to be set to zero (as the cache value is never set) instead of the intended value from line 156.
Which devices/areas does this affect?
Coherent register writes.
Testing Done
Did coherent writes on a custom RFNoC Block on an N320.
Checklist
MPM compat, noc_shell, specific RFNoC block, ...)