Forum Discussion

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

HPS: h2f_lw_axi_master and h2f_axi_master

Hi, on the DE1 SoC FPGA board I'm writing from HPS/Linux to /dev/mem to the FPGA, on the FPGA I increment the value and put it back to be read from HPS/Linux. First I had everything running over h2f_lw_axi_master (HPS site in Qsys), see picture:

http://www.alteraforum.com/forum/attachment.php?attachmentid=9605&stc=1

This worked. Since I also have some control commands, I now want to use h2f_axi_master for the data operation as it was, but have the control commands over the h2f_lw_axi_master interface at the HPS. I connected it that way (as I think) under QSYS, see picture:

http://www.alteraforum.com/forum/attachment.php?attachmentid=9606&stc=1

This currently does not work. In SignalTap I can see, the control command "start" still arrives - it still has the same connection via the lw bridge, but everything over the "full" h2f bridge never arrives at the FPGA. I set both bridges to 32bit, never changed that.

Q: What am I doing wrong here? Which setting in the HPS configs I still need to activate? Is "/dev/mem" on the linux site even the correct interface for both or shouldn't I have 2 devices, e.g. /dev/mem and /dev/mem1 or the like?! Does it make sense even for AVALONMM to use h2f_axi_master or is it better to be used only for AVALON ST?

11 Replies

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

    Hi, I tried hard to find the base address but nothing!! I don't know if i made a good configuration in Qsys.

    Could you please give me your project sources. It could be a good help for me (Qsys configuration, and c project for mmap) because it's the same thing that i want to do( send some data to the fpga and read back by the hps).

    PS: i configure the FPGA in AS mode not with linux

    Thank you a lot