Altera_Forum
Honored Contributor
16 years agoMemory usage
Hello!
I am developing a video controller for a graphic, black&white LCD with 320x240 pixels with a minimum of two video memory pages. I was hoping I can use the internal memory bits available in EP2C8 device. When I calculate needed memory I get 320x240=76800 so I need 76800x2=153600 bits of memory with 1 bit per pixes and two pages. In the Cyclone II Device Handbook I see EP2C8 jas total of 165888 RAM bits available, which is more than I need... However, when I instantiate the ALTSYNCRAM component with 153600 bits of RAM requested it does not fit in the device. To see how far I am from my goal I created a test project with only this component on the top design level and switched to a bigger chip to allow Quartus to compile/fit. The result of compilation shows the component is using 38 M4K blocks, but only 36 blocks are available in EP2C8 device. 36 blocks, 4608 bits each is more bits than I need - why I am unable to fit my video memory in the EP2C8 device? What am I doing wrong? Can it be related to the mixing normal and parity bits? Are parity bits not available normally like any other bits? Thanks for any input, Pszemol