HyperRAM icon indicating copy to clipboard operation
HyperRAM copied to clipboard

32 bit wide DATA

Open AnttiLukats opened this issue 1 year ago • 2 comments

Any plans to support 32 bit wide avalon data bus? It would make the use much easier!

AnttiLukats avatar Mar 03 '23 09:03 AnttiLukats

Interesting proposal. Thank you for writing.

I suppose one could add a generic to configure the width of the Avalon data bus.

However, I generally prefer to Keep Things Simple (TM). In this particular case, I already have existing designs that need a wider data bus. To solve this I have made use of this module: https://github.com/MJoergen/Avalon/blob/main/avm_decrease.vhd.

So the idea is that you insert this module between your 32-bit client and the 16-bit HyperRAM controller.

This makes for a modular approach, where each module does just one thing. And it is essentially plug-and-play, like playing with Lego bricks :-)

In that repo you may also find a simple read cache: https://github.com/MJoergen/Avalon/blob/main/avm_cache.vhd.

Let me know what you think about this approach.

MJoergen avatar Mar 03 '23 09:03 MJoergen

Thanks for providing this ERRATA wrapper!

AnttiLukats avatar Mar 24 '23 15:03 AnttiLukats

The proposed method of using avm_decrease.vhd to change the data width to 32 bit works, tested on CR00107 board. But when used with AMD "AXI AMM Bridge" IP core it was necessary to shift the incoming avalon bus address bits down by two bits. After that it worked.

AnttiLukats avatar Jun 21 '24 12:06 AnttiLukats