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

Chapter 10: Clocked Video Input MegaCore Function 10–7
Functional Description
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
A Clocked Video Output MegaCore function can take in the locked PLL clock and the
SOF signal and align the output video to these signals. This produces an output video
frame that is synchronized to the incoming video frame. For more information, refer
to “Clocked Video Output MegaCore Function” on page 11–1.
Overflow
Moving between the domain of clocked video and the flow controlled world of
Avalon-ST Video can cause problems if the flow controlled world does not accept data
at a rate fast enough to satisfy the demands of the incoming clocked video.
The Clocked Video Input MegaCore function contains a FIFO that, when set to a large
enough value, can accommodate any bursts in the flow data, as long as the input rate
of the upstream Avalon-ST Video components is equal to or higher than that of the
incoming clocked video.
If this is not the case, the FIFO overflows. If overflow occurs, the MegaCore function
outputs an early endofpacket signal to complete the current frame. It then waits for
the next start of frame (or field) before re-synchronizing to the incoming clocked
video and beginning to output data again.
The overflow is recorded in bit [9] of the
Status
register. This bit is sticky, and if an
overflow occurs, stays at 1 until the bit is cleared by writing a 0 to it.
In addition to the overflow bit, the current level of the FIFO can be read from the
Used
Words
register.
Timing Constraints
To constrain the Clocked Video Output MegaCore function correctly, add the
following file to your Quartus II project:
<install_dir>\ip\clocked_video_input\lib\alt_vip_cvi.sdc
When you apply the SDC file, you may see some warning messages in a format as
follows:
■ Warning: At least one of the filters had some problems and could not be matched.
■ Warning: * could not be matched with a keeper.
These warnings are expected, because in certain configurations the Quartus II
software optimizes unused registers and they no longer remain in your design.
Active Format Description Extractor
The AFD Extractor is an example of how to write a core to handle ancillary packets. It
is available in the following directory:
<install_dir>\ip\clocked_video_output\lib\afd_example
When the output of the Clocked Video Input MegaCore function is connected to the
input of the AFD Extractor, the AFD Extractor removes any ancillary data packets
from the stream and checks the DID and secondary DID (SDID) of the ancillary
packets contained within each ancillary data packet. If the packet is an AFD packet
(DID = 0x41, SDID = 0x5), the extractor places the contents of the ancillary packet into
the AFD Extractor register map.