Hi realtek
Answer for 1 is:
Use MegaWizard Plug-In Manager from Quartus software to generate ROM. Only what you need are parameters of ROM memory. This is the simplest way to use parametrized LPM's without errors and problems. At the end of configuration, Quartus will generate code ready to instantiate.
Answer fo 2 is:
It depends on which simulator are you using. In Quartus it is very simple: You must "draw" waveforms as a tesbench and use Simulation Tool to perform simulation. Also ActiveHDL and ModelSim are very very good documented about this. Which simulator are you using ?
Best reg and good luck