Forum Discussion
Altera_Forum
Honored Contributor
12 years agoIn my design I have connected the "h2f_lw_axi_master" on the HPS to an "Avalon-MM bridge" component in QSYS. I then exported the slave side of the bridge to make the Avalon MM bridge available in my FPGA design.
The Avalon-MM interface is very easy to use the signals that are exported to the slave side are: (outputs) Write, Read, Address, WriteData (inputs) ReadData, ReadDataValid, WaitRequest. There are also ByteEnable and BurstCount signals that you may want to use for your application. Basically, on a write transaction the master sets "WriteData" and "Address" when "Write" is high, your slave then does whatever you need with that data. On a read transaction the master sets "Read" and "Address" the slave is expected to provide "ReadData" for the corresponding read address and set "ReadDataValid". If the slave cannot process a transaction it sets "WaitRequest". I think you can cause the bus to "hang" if you fail to respond to a readrequest but your FPGA code shouldn't allow it to do that. Full details here http://www.altera.com/literature/manual/mnl_avalon_spec.pdf