Forum Discussion
Altera_Forum
Honored Contributor
15 years agoframe reader configuration and initialization
I use the frame reader in my design with the following settings:
Bits per pixel per color plane: 8 Number of color planes in parallel: 3 Number of color planes in sequence: 1 Maximum Image width: 1920 Maximum Image height: 1080 Master port width: 64 Read master FIFO depth: 1024 Read master FIFO burst target: 64 Use separate clock for the Avalon MM master interface: unchecked Kindly confirm if the following calculations for number the words and the Single Cycle Color Patterns are true or not 1- // Words IOWR(FRAMEREADER_BASE, 5, 259200); // (1920*1080*8*3)/48= 1036800 2- // Single Cycle Color Patterns IOWR(FRAMEREADER_BASE, 6, 2073600); // 1920*1080=2073600 number of pixels in the frame multiplied by the number of single cycles required to represent one pixel Your reply will be highly appreciated2 Replies
- Altera_Forum
Honored Contributor
Why did you divide by 48?
- Altera_Forum
Honored Contributor
The frame reader will only transfer whole "single cycle color patterns" (pixels). With a 64-bit master port width and 24-bit pixels, the Frame Reader will only be transferring 48 bits (not 64 bits) of picture data at a time.