<somlo>
_florent_: but obviously Rocket issues addresses starting at 0x8000_0000, and I would guess LiteDRAM expects addresses to start at 0
<somlo>
wondering if there's an easy way to tell LiteDRAM to expect the offset.
<somlo>
right now it works, because we have less than 0x8000_0000 bytes of RAM, so the MSB is discarded :)
<somlo>
but if we ever had more than 2Gig, it'd be a problem
<somlo>
here's a slightly more streamlined version (add memory region only, no "dangling" wishbone slave port): https://pastebin.com/5v8QPSGU
ambro718 has joined #litex
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 265 seconds]
<_florent_>
somlo: thanks, i'll look at that tomorrow
freemint has quit [Ping timeout: 245 seconds]
freemint has joined #litex
<somlo>
_florent_: thanks! it's not commit-ready or anything, just looking for the most elegant way to introduce an offset into a connection between two interfaces
<somlo>
I think for wishbone it's done by some combo of mem_decoder() and the Decoder class in interconnect/wishbone.py, still trying to mentally track the logic flow and where the translation actually happens when main_mem is a wb slave in the "classic" setup :)
ambro718 has quit [Quit: Konversation terminated!]