I am working on a piece of hardware design verification, which includes CPU(ARC), Design( containing AHB), and SRAM connecting to the AHB bus. I want to know if CPU can do burst write on the SRAM via AHB bus. If yes, how to implement it.
Here are some details of my work:
connection CPU -> AHB -> SRAM
C code
//piece of C code to write 4 DWs into the SRAM
wr(add0, DW0)
wr(add0+4, DW0)
wr(add0+8, DW0)
wr(add0+12, DW0)
The above C code do only single write to the SRAM via AHB.
In order to do burst write, what should I consider about?
Should I refer to the ARC manual for a burst function? Or add some FLAGS to compiler to optimize it to a burst operation? Essentially I want to know how does CPU implement the burst write.