Altera Cyclone IV memory block Verilog module
The Recommended HDL Coding Styles gives detail on how to instantiate various memory and other functions. It also mentions other useful documents. I assume you can also use a wizard to setup memory (megafunctions I think, though you probably know this already)