I would like to use the quartus on chip memory for a custom design which doesnt use the Avalon bus..is there a memory controller in ip components that I can use or any ideas on how to design an external one
Do you mean RAM or ROM based implementation?
Yes a controller for on chip ram
I think in the IP catalog of Quartus Prime they have IPs:
For more complete information about compiler optimizations, see our Optimization Notice.