Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Reset FIFO from NIOS

Altera_Forum
Honored Contributor II
1,178 Views

Hi!  

I have a sopc built system with a fifo, dma and the nios processor. With this I am transferring data from the fifo (that receives data from a custom made data generator) to sdram and further through ethernet. In software, I want to be able to run a system reset that resets the nios processor AND the fifo buffer. I have managed to reset the nios, but the fifo then contains "old" data after the reset. Is it possible in any way to empty the fifo buffer?  

 

Thanks in advance for any answers! :-)
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
474 Views

You could always read it until empty :-)

0 Kudos
Altera_Forum
Honored Contributor II
474 Views

Try building you own component using altera fifo megafunction inside it and triggering the reset by a particular reset access.

0 Kudos
Altera_Forum
Honored Contributor II
474 Views

Thank you guys! I'll give it a try.

0 Kudos
Reply