Forum Discussion
Altera_Forum
Honored Contributor
7 years agoFirst of all I'll make sure sdram access is cached.
Try to read bytes from sdram and extract the bit afterwards with something like this:
for(test = 0; test < 307200; test+= 8) {
pixel8 = get8PixelLevels(test);
for (bit = 0; bit<8; bit++) {
test2 = pixel8 & 1;
pixel8 >>= 1;
}
} If this way you experience a great improvement in speed, then the problem is with sdram access.