av_pat_genwork in two modes for video
Mode – 0 : When bits [2:0] value is 3’b000 in register 0x308, this IP just acts as a pass through to the incoming video.
Mode – 1: When bits [2:0] value is not 3’b000 in register 0x308, then this IP generates test patterns for video.
- When mode-1 is selected, make bit  of 0x0 as “0” initially and configure appropriate values in the configuration registers (like HRES, VRES, TEST PATTERN TYPES etc.) corresponding to the video that is intended to be generated by the test pattern generator.
- Then program “1” to bit  of 0x0 to start the generation of required video test pattern.