Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWhen I build masters at a high level I do this:
1) Always build in a FIFO to ensure high performance 2) Always de-couple the command logic (addressing, read/write, etc...) from the data logic (writedata, readdata, readdatavalid).... this is easy if you do# 1 3) Exclude bursting if possible since that just adds additional complexity to the control logic. Based on your description it might make more sense to put a streaming frontend on altft_matrix_mult and just stream the data in and out of it. Internally your component would address the memory locations of the altft_matrix_mult to stuff the matrix memories with the input content. If the "B" matrix is constant then maybe you can prepopulate it by attaching a slave port to it and have Nios II write the contents in the first time. If you want to get the data back out you could use a DMA to pull the contents out and write it to memory. Have a look at this DMA, it may give you some ideas of what to do: http://www.altera.com/support/examples/nios2/exm-modular-scatter-gather-dma.html?gsa_pos=1&wt.oss_r=1&wt.oss=sgdma