Hardware or software based fifo? If you want the FIFO to be HW based (i.e. you write to one location and read from the other) then I recommend the fifo lpm (lpm_fifo I think is the name of it). You should be able to tell it to make it out of LEs or memory (and it'll handle the control logic for you). So you can just take that and put a little bit of glue logic on the front side of the FIFO to make it an Avalon slave (use component editor to import it into SOPC builder). If you go to the IP section of the forum I think someone posted a FIFO component (I haven't looked at it but I'm guessing that's how it is designed).
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
but I didn't configure the "onchip_memory " to "one read and one port" because of not any choice appearing[/b]
--- Quote End ---
You get a true dual port RAM using this memory (two input, two output both ports capable of reading and writing). You could make a FIFO out of that too but it's overkill for a FIFO.