Skip to content

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

Merged
copybara-service[bot] merged 3 commits into
google:mainfrom
antmicro:47201-dpram-mask-bugfix
Aug 21, 2023
Merged

bugfix: examples/ram: 1R1W - fix missing mask expansion#1078
copybara-service[bot] merged 3 commits into
google:mainfrom
antmicro:47201-dpram-mask-bugfix

Conversation

@rdob-ant

Copy link
Copy Markdown
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

proppy commented Jul 26, 2023

Copy link
Copy Markdown
Member

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

Can we add a test that capture this?

@rdob-ant

Copy link
Copy Markdown
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).

Signed-off-by: Roman Dobrodii <rdobrodii@antmicro.com>
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 <rdobrodii@antmicro.com>
Simplify & clean up code checking for initialization.

Signed-off-by: Roman Dobrodii <rdobrodii@antmicro.com>
@rdob-ant rdob-ant force-pushed the 47201-dpram-mask-bugfix branch from 95f32cc to fe36cc3 Compare August 9, 2023 14:57
@rdob-ant

rdob-ant commented Aug 9, 2023

Copy link
Copy Markdown
Contributor Author

@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
@tmichalak tmichalak deleted the 47201-dpram-mask-bugfix branch April 29, 2025 08:42
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