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

Hardcoded address width in bsg_cache_to_dram_ctrl #532

Open
dpetrisko opened this issue Dec 9, 2021 · 1 comment
Open

Hardcoded address width in bsg_cache_to_dram_ctrl #532

dpetrisko opened this issue Dec 9, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@dpetrisko
Copy link
Contributor

dpetrisko commented Dec 9, 2021

4: app_addr_o = dram_ctrl_addr_width_p'({tag_r, addr_r[29-$clog2(num_cache_p)-1:0]});

num_cache_p > 1 does not necessarily mean shorter address per cache, only if addresses are hashed by top bits

@dpetrisko dpetrisko added the bug Something isn't working label Dec 9, 2021
@dpetrisko
Copy link
Contributor Author

dpetrisko commented Dec 9, 2021

Additionally, the code will not compile for addr_width < 29 and num_cache_p == 1

dpetrisko pushed a commit that referenced this issue Jan 26, 2023
* memtest_fast

* memtest_fast

* no volatile

* shorten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant