Question: what is the difference between fifo and memory?
Answer: FIFO does not have address input, it takes care of that on its own. It has counters(gray usually) for address generation. memory has the address input.