-
Notifications
You must be signed in to change notification settings - Fork 50
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
Discrepancy between memory sizes within CORE-V-MCU User Manual #271
Comments
Copying Greg's email response here:
MCU user manual has been updated, see #273. Will close this issue when that PR is merged. |
Interestingly, this is what I have in the Verilator model testbench. It was reporting the memory is good. I'll just rebuild and verify this is still the case. size_t mb = args->maxBlock ();
testsuite->testMem ("boot rom", 0x1a000000, 0x40000, mb, true);
testsuite->testMem ("memory bank 0", 0x1c000000, 0x8000, mb, false);
testsuite->testMem ("memory bank 1", 0x1c008000, 0x8000, mb, false);
testsuite->testMem ("memory bank interleaved", 0x1c010000, 0x80000,
mb, false); Second argument is start address, third argument is end address, fifth argument is |
@MikeOpenHWGroup @gmartin102 I think what this means is I agree with Greg's layout, except I have it all at offset 0x1c000000, which is consistent with Mike. Of course, it may be that top bits are just being lopped off, so my offset is entirely irrelevant... |
I can confirm the Verilator model reports good memory as follows:
|
This is different from what @gmartin102 reports: |
@MikeOpenHWGroup Good point - perhaps I dropped a zero. I can rebuild the model tomorrow and try a larger range. I didn't do the inverse test of "what memory is not there". |
@MikeOpenHWGroup I note that memory up to 0x800000 would be 8MB of memory is that a mistake in @gmartin102 's figures above? |
@MikeOpenHWGroup @gmartin102 I suspect the
|
Agreed, for the FPGA implementation, memory tops out at 0x1c08ffff. I'm still looking into the ASIC and simulation models to see if they agree. This will be useful information for the User Manual. In the meantime, I'll close this issue (but will probably ask @jeremybennett and @gmartin102 to review my User Manual updates when I'm ready to merge them in). |
This issue is either related to, or affects the outcome of #265 and #45.
The Block Diagram of the MCU in the User Manual indicates that the on-chip
Interleaved RAM
is comprized of four banks of 192Kbytes each (for a total of 768Kbytes). However, the memory map indicates that the address range is 0x1c01_0000 to 0x1c08_ffff which is 0x8_0000 or 512Kbytes. A quick look at the RTL for both simulation and FPGA models agrees with the memory map.So either:
In either case, the User Manual should be updated.
@gmartin102 do you know how large the ASIC SRAMs are?
The text was updated successfully, but these errors were encountered: