Detailed explanation and code can be found here: http://simplefpga.blogspot.co.uk/2012/12/fifofirst-in-first-out-buffer-in-verilog.html This video was uploaded from an Android phone.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.