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

bugfix: examples/ram: 1R1W - fix missing mask expansion #1078

Merged
merged 3 commits into from
Aug 21, 2023

Conversation

rdob-ant
Copy link
Contributor

Current code does not perform mask width expansion when processing read requests. As a result, configurations with NUM_PARTITIONS != DATA_WIDTH fail to compile.

@proppy
Copy link
Member

proppy commented Jul 26, 2023

As a result, configurations with NUM_PARTITIONS != DATA_WIDTH fail to compile.

Can we add a test that capture this?

@rdob-ant
Copy link
Contributor Author

Added two things:

  1. A simple test for masked writes and reads.
  2. Bugfix for the initialization check in case of partial masked reads (that bug manifested itself when running the test. It did not in DBE code because we never do partial reads).

Initialization check did not work properly with masked reads when more
partitions have been initialized than the read actually requested.
Added test for masked reads and writes when NUM_PART != DATA_WIDTH.

Signed-off-by: Roman Dobrodii <[email protected]>
Simplify & clean up code checking for initialization.

Signed-off-by: Roman Dobrodii <[email protected]>
@rdob-ant
Copy link
Contributor Author

rdob-ant commented Aug 9, 2023

@hongted Please take a look. I think I've addressed the comments you've left on ram.x in #1092

@copybara-service copybara-service bot merged commit d261ced into google:main Aug 21, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants