Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi
i also would like to know how this works. In my project i want to send some control parameters to the Nios processor via the rs232 interface. Nios should then store them in some kind of a shared memory location where my custom vhdl logic reads from. I read that i could use a DMA or SGDMA Controller but this seems a bit of an overkill since i just want to sent parameters. I know the address range of my DDR3 RAM and how to write to a specific address. But i have a understanding problem with the reading part. I need an avalon slave device which i hook up to the avalon interconnect. Could i simply use a FIFO in write/read slave modus? If i connect the NIOS instruction and data master with the slave-in port and export the slave-out port to connect it up my logic. With C i then write directly to the Fifo buffer and the vhdl logic reads from the buffer directly.(?) Since only master-slave connections are allowed my logic to act as a master and initiate the read operations. and the vhdl module needs a lot of control functionalities like readdata, read address ? Or is it easier to use a onchip memory ram device with dual port access. I could write a specific parameter to a specific mem address and through this exact mapping its simple in VHDL to extract the parameters. But i still have the uncertainty with the slave port to the vhdl module and in general how to set up this shared memory location. The more i read about this topic the more i get confused and it would be great if you guys could help me Thanks in advance Tim