Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
781 Views

MicroC/OS-II FIFO interface

Hello, 

 

I am new to Nios & MicroC/OS-II. 

 

My project consists of HDL that writes to a FIFO. In the same project, I have Nios and the TSE MAC in SOPC Builder. The software consists of NicheStack on MicroC/OS-II. I want to be able to read from the FIFO (from my HDL) and send it over a TCP connection. I can create an OSTask that can send data on a TCP connection. 

 

Any pointers on how to access my HDL FIFO in MicroC/OS-II? 

 

Thanks in advance!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
49 Views

I'd suggest You using Avalon-ST FIFO, which write side would be connected to the data input pins exported from SOPC and the read data port would be connected to Avalon-ST interconnect. Then connect FIFO read side to SGDMA, which will move FIFO data to memory. Reading from memory is a matter of pointers in Nios then.

Reply