User guide
Table Of Contents
- Contents
- 1. About This MegaCore Function Suite
- Release Information
- Device Family Support
- Features
- Design Example
- Performance and Resource Utilization
- 2D FIR Filter
- 2D Median Filter
- Alpha Blending Mixer
- Avalon-ST Video Monitor
- Chroma Resampler
- Clipper
- Clocked Video Input
- Clocked Video Output
- Color Plane Sequencer
- Color Space Converter
- Control Synchronizer
- Deinterlacer
- Deinterlacer II
- Frame Buffer
- Gamma Corrector
- Interlacer
- Scaler
- Scaler II
- Switch
- Test Pattern Generator
- Trace System
- 2. Getting Started with Altera IP Cores
- 3. Interfaces
- Interface Types
- Avalon-ST Video Protocol
- Avalon-MM Slave Interfaces
- Avalon-MM Master Interfaces
- Buffering of Non-Image Data Packets in Memory
- 4. 2D FIR Filter MegaCore Function
- 5. 2D Median Filter MegaCore Function
- 6. Alpha Blending MegaCore Function
- 7. Avalon-ST Video Monitor MegaCore Function
- 8. Chroma Resampler MegaCore Function
- 9. Clipper MegaCore Function
- 10. Clocked Video Input MegaCore Function
- 11. Clocked Video Output MegaCore Function
- 12. Color Plane Sequencer MegaCore Function
- 13. Color Space Converter MegaCore Function
- 14. Control Synchronizer MegaCore Function
- 15. Deinterlacer MegaCore Function
- Core Overview
- Functional Description
- Parameter Settings
- Signals
- Control Register Maps
- 16. Deinterlacer II MegaCore Function
- 17. Frame Reader MegaCore Function
- 18. Frame Buffer MegaCore Function
- 19. Gamma Corrector MegaCore Function
- 20. Interlacer MegaCore Function
- 21. Scaler MegaCore Function
- 22. Scaler II MegaCore Function
- 23. Switch MegaCore Function
- 24. Test Pattern Generator MegaCore Function
- 25. Trace System MegaCore Function
- A. Avalon-ST Video Verification IP Suite
- B. Choosing the Correct Deinterlacer
- Additional Information

24–4 Chapter 24: Test Pattern Generator MegaCore Function
Parameter Settings
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Stall Behavior and Error Recovery
All modes of the Test Pattern Generator stall for a few cycles after a field, after a
control packet, and between lines. When producing a line of image data, the Test
Pattern Generator outputs one sample on every clock cycle, but it can be stalled
without consequences if other functions down the data path are not ready and exert
backpressure.
1 For more information about the stall behavior and error recovery, refer to “Stall
Behavior and Error Recovery” on page 1–3.
Latency
The Test Pattern Generator MegaCore function does not have latency issue because
the MegaCore function is only an Avalon-ST Video source.
Parameter Settings
Table 24–3 lists the Test Pattern Generator MegaCore function parameters.
Color Pattern
For RGB sequential data: For RGB parallel data:
For 4:4:4 sequential data: For 4:2:2 sequential data:
For 4:2:0 sequential data: For 4:2:2 parallel data:
For 4:4:4 parallel data: For 4:2:0 parallel data:
Notes to Table 24–2:
(1) 4:2:2 and 4:2:0 subsampling are not available for the RGB color space.
(2) Vertical subsampling and interlacing cannot be used when the height of the output is not even. The GUI does not allow such a parameterization
and the behavior of the MegaCore function is undefined if the height is subsequently set to an odd value through the run-time control.
(3) Vertical subsampling and interlacing are incompatible with each other and cannot be selected simultaneously in the GUI.
Table 24–2. Test Pattern Generator Avalon-ST Video Protocol Parameters (Part 2 of 2)
Parameter Value
RGB
B
G
R
CrCb Y
CrCb YY
Cb
Cr
Y Y
Cb Cr
YY
Y
Cb
Cr
CrCb
Y
Y
Table 24–3. Test Pattern Generator Parameter Settings (Part 1 of 2)
Parameter Value Description
Run-time control
of image size
On or Off
Turn on to enable run-time control of the image size. When on, the output
size parameters control the maximum values.
Maximum image
width
32–2600,
Default = 640
Choose the required output width in pixels.
Maximum image
height
32–2600,
Default = 480
Choose the required output height in pixels. This value must be the height
of the full progressive frame when outputting interlaced data.