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

C-based memory model for RTL simulation #30

Open
paulmnt opened this issue Apr 2, 2020 · 0 comments
Open

C-based memory model for RTL simulation #30

paulmnt opened this issue Apr 2, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@paulmnt
Copy link
Member

paulmnt commented Apr 2, 2020

Bare metal applications with large memory footprints cannot be easily simulated.
Increasing the size of ahbram_sim beyond a few MB slows down the RTL simulator.
Furthermore, when RISC-V is selected, accelerators operate on a memory region with high base address. This region is not represented in the current memory model.
Simulations still work in most cases, because addresses wrap around, as long the result of wrap around does not conflict with the location of the program, or its data.

Proposed solution
Any access to the DRAM model in ahbram_sim should not access an RTL array. Instead, operations should be redirected to a C-based model. Allocated memory regions should be represented as a hash table for quick access to the entire address space, with little memory footprint for the host.

@paulmnt paulmnt added bug Something isn't working enhancement New feature or request labels Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant