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 22: Scaler II MegaCore Function 22–3
Functional Description
January 2013 User Guide
■ In polyphase mode with N
v
vertical taps, N
v
– 1 lines of input are read into line
buffers before any output is ready. As with bilinear mode, there is a scaling ratio
dependent time at the end of a frame where no reads are required as the buffers
are drained.
Enabling run-time control of resolutions affects stalling between frames:
■ With no run-time control, there are about 10 cycles of delay before the behavior
described in the previous list begins, and about 20 cycles of further stalling
between each output line.
■ Enabling run-time control of resolutions adds about 25 cycles of delay between
frames.
Error Recovery
On receiving an early
endofpacket
signal, the Scaler stalls its input but continues
writing data until it has sent an entire frame. If it does not receive an
endofpacket
signal at the end of a frame, the Scaler discards data until the end-of-packet is found.
On receiving an early
endofpacket
signal at the end of an input line, the Scaler II stalls
its input but continues writing data until it has sent on further output line. On
receiving an early
endofpacket
signal part way through an input line, the Scaler II
stalls its input for as long as it would take for the open input line to complete,
completing any output line that may accompany that input line. It then continues to
stall the input, and writes one further output line. If it does not receive an
endofpacket
signal at the end of a frame, the Scaler II discards data until the
end-of-packet is found.
1 For more information about the stall behavior and error recovery, refer to “Stall
Behavior and Error Recovery” on page 1–3.
Latency
Table 22–1 lists the approximate latency from the video data input to the video data
output for typical usage modes of the Scaler II MegaCore function. You can use this
table to predict the approximate latency between the input and the output of your
video processing pipeline.
The latency is described using one or more of the following measures:
■ the number of progressive frames
■ the number of interlaced fields
■ the number of lines when less than a field of latency
■ a small number of cycles O (cycles)