Incorrect Frame Buffer Stride Validation in VVP Frame Buffer
Hello,
We believe we have discovered an issue with the VVP Frame Buffer component GUI validation for checking invalid values for Inter-buffer Stride in Quartus Pro 23.2.
The documentation says the TCL validates the values of Inter-buffer Stride and Inter-line Stride:
But the calculation of the maximum frame size in the TCL (intel_vvp_vfb_hw.tcl) doesn't take into account that the Inter-line Stride can introduce unused space. (This is in addition to the unused space resulting from pixel packing, which is correctly accounted for.)
The attached screenshots show an invalid set of settings that does not error.
The Inter-line Stride of 16kB multiplied by the maximum field height of 1080 lines gives a minimum Inter-buffer Stride of 16.875MB.
The actual Inter-buffer Stride is 16MB, so the buffer is overflowed by 896kB = 56 lines. However, no error is displayed.
We believe the solution would be to change line 307 in
intelFPGA_pro\23.2\ip\altera\mtm\cores\vvp\frame_buffer\intel_vvp_vfb\intel_vvp_vfb_hw.tcl
From:
set max_bytes_per_frame [expr $max_bytes_per_line * $max_height]
To:
set max_bytes_per_frame [expr $mem_line_stride * $max_height]
Thanks,
David
David, thanks for spotting this bug, I understand it will be fixed in 23.4. Your solution looks correct.