Forum Discussion
Read data contents on ROM
Hi guys.
I am having problem with my project. I have used lpm_rom for my design. My lpm_rom contents data of my image. And now I dont know how to read the data on ROM. Kindly help me. Thanks9 Replies
- Altera_Forum
Honored Contributor
Try check on Quartus II help, Quartus II Help v15.0 > lpm_rom Megafunction, to see if it is helpful?
- Altera_Forum
Honored Contributor
What exactly are you having a problem with? a rom is just a memory - you provide an address and you get a value out.
- Altera_Forum
Honored Contributor
Dear Tricky.
I want to display contents in my lpm rom to VGA monitor. I have read some information on internet. They said I need to " to read the ROM include two counters, index_column and index_row". And now I dont know how to make two counters, index_column and index_row". Thanks for your help. - Altera_Forum
Honored Contributor
Counters are in just about every basic VHDL tutorial.
And to display it on a monitor, you'll need a controller for all the VGA timings (again, lots of counters) - Altera_Forum
Honored Contributor
Do you mean VGA controller? I already have tried to display very basic tutorial display blue color on VGA monitor. I already successfully did it. But now, I'm confuse about display content in lpm rom on VGA monitor. I already did the .mif file for my image. Which part should I edit for my design? Do you have any tutorial similar with my problem?
- Altera_Forum
Honored Contributor
I don't know if a tutorial. It you already wrote a vga controller, then all you need to do is present the days from the rom at the correct time. So just use a row and column counter as the address.
- Altera_Forum
Honored Contributor
Sorry Tricky.
What do you means by " present the days from the rom at the correct time"? - Altera_Forum
Honored Contributor
Sorry, present the data from the rom at the correct time
- Altera_Forum
Honored Contributor
I dont really know what you want. You synchrose your code with the VGA controller, so that you always know what pixel is being played out on the screen. then you can fetch the correct pixel from the rom.