OK, I assume that you are writing VHDL. Actually the best course of action is to read the user manual of the software you are using which is most likely the Alera Quartus II. Get it from the Altera website itself so you get the latest one and not any other website.
I will get straight to the point. You want to access the internal RAM, ok. The internal RAM is made up of "hard memory block" i.e actual section of silicon that are only used as memory resource in a design. When you open the Altera Quartus and create project, you get the IP catalog on the right, yes?
Now search in this IP catalog goto Library->Basic Functions->On Chip Memory. Now select the RAM and select its parameters i.e how much data it stores e.t.c. You will also have option to include or exclude certain control signals. Once that is done and you have created an IP block, then you can just access it and use it in the design by providing it with address and control signals.