Forum Discussion
Altera_Forum
Honored Contributor
11 years agoFor test and debug (and program load) consider using the PCIe (slave) to Avalon bridge so that a host program can directly read/write any Avalon slaves (that are connected to the bridge). Watching a 'hexdump' that updates once a second (or so) can be very informative.
For a Linux host I think one of the standard dev entries gives you appropriate access, but a driver that uses pread/pwrite is also reasonably trvial to write - you can do copy_to/from_user() directly from the mapped PCIe addresses. Note that host access will be slow (far slower than you imagine 'slow' would be).