Repository navigation
Conversation
7ce73bf to
3c436ce
Compare
|
Marking as draft as |
0645f53 to
84ad284
Compare
|
All chip_sim DV smoke tests passing, except |
marnovandermaas
left a comment
There was a problem hiding this comment.
Nice work! Very important. I've left a few comments but nearly ready to go I believe.
| // Get capability to storage in t0. | ||
| "lly t0, storage\n\t" | ||
| // Get capability to AXI SRAM in t0. | ||
| "auipc t0, 0\n\t" |
There was a problem hiding this comment.
Since the PC is in DRAM, how does this have access to SRAM?
There was a problem hiding this comment.
Maybe instead of doing this we should add a function to the mocha.h HAL to get a capability to the SRAM like we have for DRAM:
void *mocha_system_dram(void);
There was a problem hiding this comment.
The following yaddrw instruction sets the capability address to sram_base, provided via %16. The intention of doing this in assembly is to keep the accesses as rapid as possible, ideally back-to-back. Moving to C may change that.
There was a problem hiding this comment.
Agreed on the accesses, those should stay in assembly, but for getting the capability to SRAM, we could use a C function right? I think this would be more robust than deriving it from PCC.
There was a problem hiding this comment.
After discussion with Marno, we decided to pass the SRAM base address to assembly via sram_base for now. Replacing these with calls to mocha_system_sram can be in a future PR.
84ad284 to
752d0bc
Compare
marnovandermaas
left a comment
There was a problem hiding this comment.
Some minor comments which would be good to resolve but otherwise I'm happy for this to go in.
Since the sw smoketests now run from DRAM, the storage area in assembly is located in DRAM, causing the AXI SRAM tests to test memory locations in DRAM. This fix makes sure the tests are done on SRAM locations. Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
646b209 to
cd15da3
Compare
Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
cd15da3 to
4c6a368
Compare
Adds logic to clear all capability tag bits when the AXI SRAM is reset.
Closes #808.