Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

FPGA Hard Memory Controller

I have been attempting to build a project that utilises the FPGA hard memory controller on the Cyclone V SoC using the SocKit development board.

A sample project is available on RocketBoards which uses the FPGA memory with a soft memory controller: http://www.rocketboards.org/foswiki/projects/sockitvideoipvipreferencedesign

In my project I have set up the soft memory controller in the same way and have successfully been able to access the FPGA memory via the HPS to write to FPGA memory locations (by opening "/dev/mem" and mapping the memory locations 0xC000 0000 to 0xFC00 0000). However, when I attempt to instantiate it as a hard memory controller and attempt the same HPS accesses, the HPS "hangs" (the terminal freezes and will not respond until a hard reset is asserted).

I have used the afi_clk as the clock signal for the avalon interface to the HPS component and connected the avl_0 port to h2f_axi_master on the HPS. The cmd, rd and write FIFO's are also clocked by afi_clk. I have also tried numerous configurations of other clocking schemes and settings on the memory controller, all having the same effect that the HPS freezes when I attempt to access the memory.

Has anyone successfully used the FPGA hard memory controller on the Cyclone V?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    what version are you using? there was a patch to fix a FIFO between the HPS and fabric. the patch may be included in 13.0sp1

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    See your other post that I replied to, I suspect the bridge isn't setup properly and causing accesses to block.