Forum Discussion
Altera_Forum
Honored Contributor
14 years agoOk that's interesting. I haven't read the documentation about the Avalon ST interface thoroughly. There are probably better ways to implement the data transfer than what I intend to do now but most importantly it has to be running pretty soon.
What I want to do is transfer some measurement data and status registers. The Nios II configures my component with which measurement data it wants and what status registers. I chose to put the selected data into a FIFO in the correct order so that the Nios II simply has to read the data (the Nios II knows from the configuration how much data it has to read until the FIFO is empty). Another possibility I was thinking of was to put each measurement and register data at a memory address which the Nios II could directly access. This would have had the advantage that the Nios II would have known which data it was going to read. In the current implementation the processor has to look at the selected configuration to know how much data it has to read and what the meaning of each word is. I'm open to other suggestions on how to best transfer a data stream of variable length to the Nios II.