Forum Discussion

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

Avalon-MM slave burst mode C example

I've created an Avalon-MM slave using burst mode in SOPC but I don't know how to initiate a burst write in "C". Without burst mode it is just a memory mapped device using simple pointers but how do you send a block of data for burst mode? Using DMA? Using memcpy? Or some other function provided in the BSP?

Thanks,

2 Replies

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

    maybe I am wrong, but I think that a burst transfer would be an "hardaware" prblem, not istantiate in software mode.

    Anyway, if you would to start a burst and use "C", i would trigger it with an interrupt from my custom (slave) block to the Nios..
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    writing some data in a cache line and forcing a flush should write using bursts, if you enabled the burst in the Nios II configuration window in SOPC builder.

    Using a burst-able DMA will also work.