Altera_Forum
Honored Contributor
13 years agoFIFO holding one item in it
Gentlemen;
I have used the Megafunction wizard to create a 8x64 FIFO buffer on my DE0-NANO board. It is to buffer signals received on GPIO0[0] at 9600 baud and retransmit them on GPIO1[0]. I have written the routines in Verilog and all is working well with one exception. The first time I send a series of characters , a hex 00 is retransmitted followed by all the characters received except the final one. The next string I receive, the retransmitted string starts out with the final character in the previous string and again does not retransmit the final character in the current received string. I suspect that I may have a coding issue, but for the life of me I cannot figure it out. Is there some trick to using FIFO buffers that I may be missing? I have attached the 4 small Verilog files that form the system. I read a new character from the FIFO buffer if it is not empty and the transmitter is not busy. I display the usedw_sig on LEDs [5:0], the Busy signal from the transmitter to LED[6], and the empty_sig to LED[7]. These seem correct except the the FIFO empty signal is on before the final character is sent back out. I have been working on this for quite some time and my frustration level is getting quite high.:cry: Many thanks for any assistance that someone might choose to offer. Regards, Geof