soc-hub-fi / headsail-vp

Headsail — Virtual Platform
0 stars 2 forks source link

Feat/external bit #41

Closed vilukissa68 closed 3 months ago

vilukissa68 commented 3 months ago

Adds external bit addressing for HPC in VP and BSP. This solution modifies read and write methods in BSP so that all HPC operation addresses are preceded with 0x1_0000_0000 to ensure similar functionality as described in issue https://github.com/soc-hub-fi/headsail-vp/issues/33. New addresses in drivers should be defined from the Sysctrl point of view, which then gets automatically addressed with the external bit on HPC. These changes required the DLA driver to utilize BSP read/write operation, which was not the case before.

Previously VP was described in common.repl, hpc.repl and sysctrl.repl, due to new dependencies imposed by the shadowed sdram these files have been concatenated into one headsail.repl file, which now encompasses the whole VP. HPC memory regions are now preceded by 0x1_0000_0000.

vilukissa68 commented 3 months ago

I reverted all changes related to DLA. The VP memory should now have almost 1-to-1 correspondence to ASIC except PLIC being larger. Larger DLA examples fail due to them not fitting into the bootram, this issue will be fixed in the future when a suitable solution is found.