Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- I am also having the same problem. I can see the test pattern but I cant get the frame reader to work. Did you manage to solve this? --- Quote End --- Ahh, it was very long time ago, but anyway..... The problem was in the DDR memory access. FR reads line-by-line. It almost doesn’t matter how many lines it have to read but in the case of the reads within the line (pixels) FR is very sensitive to the “number of read through the master port”. The master port width of the Frame reader should be set to 128 bit if the ddr local interface is 128 bit. The calculation of the Frame Words (address 5) - use this formula: if the interface is 128 bit and single color pattern is 24 bit " (int) float(Width*height)/5". It divide by 5 is because the 128 bit memory interface each time can read out 5 single color pattern( 24 bits). I have the following working : IOWR(FRAME_READER_BASE,0x8,1600); // size x IOWR(FRAME_READER_BASE,0x9,100); // size y IOWR(FRAME_READER_BASE,0x3,0x0); // page 0 only used IOWR(FRAME_READER_BASE,0x4,frame_reader_in_ddr2_bot); // starting address of frame IOWR(FRAME_READER_BASE,0x5,32000); // number of reads through master port = width*hi/5 IOWR(FRAME_READER_BASE,0x6,160000); // number of pixels Regards, uilka_b