soc-hub-fi / headsail-vp

Headsail — Virtual Platform
0 stars 2 forks source link

SDRAM Memory Address on HPC VP #33

Closed andstepan closed 2 months ago

andstepan commented 4 months ago

In documentation it is stated that "External Addresses" are mapped at address 0x1_0000_0000. In the VP's hpc.repl file, they are mapped at 0x1000_0000. Can we see what's going on?

hegza commented 4 months ago

Meeting outcomes

Memory map investigation

Implementation on Renode (hardware view)

Impl in link script (software view)

// hpc-sdram.ld
MEMORY {
  SDRAM : ORIGIN = 0x1_0000_0000, LENGTH = 0x7000_0000 
}
// sysctrl-sdram.ld
MEMORY {
  SDRAM : ORIGIN = 0x1000_0000, LENGTH = 0x6000_0000 
}
hegza commented 4 months ago

We confirmed in the meeting today that the above is correct.

hegza commented 4 months ago

Correction: SysCtrl does not need the 0x1_0000_0000 external access bit to read from HPC configurations. (fixed in original message)

hegza commented 2 months ago

Closing non-actionable issue in favor of a wiki page: https://github.com/soc-hub-fi/headsail-vp/wiki/Headsail-memory-maps