Forum Discussion
Altera_Forum
Honored Contributor
12 years agoCustom FIFO read in Nios IDE
I created a custom fifo in sopc builder and i am trying to read data from fifo. However, i got no idea about how to manipulate it .Is it right if i make a pointer which points at the base address of ...
Altera_Forum
Honored Contributor
12 years agoA slightly separate issue.
Give your fifo a 32bit interface. Since the fifo itself is 16bits wide set the high bits to zero on reads. As defined you'll find that the actual span is 4 bytes and you'll see two read cycles for every access (the second one will have a different address). Since the nios cpu always asserts all 4 byte enables for reads, both reads will have both byte enables asserted. If you do a 16bit write, one of the writes has no asserted byte enables. I'm not sure the order of the accesses is defined either.