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

22–8 Chapter 22: Scaler II MegaCore Function
Control Register Maps
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Control Register Maps
Table 22–4 describes the Scaler II MegaCore function control register map. The
run-time control register map for the Scaler II MegaCore function is altered and does
not match the register map of the Scaler MegaCore function.
1 The N
taps
is the number of horizontal or vertical filter taps, whichever is larger.
The Scaler II reads the control data once at the start of each frame and buffers the data
inside the MegaCore function. The registers may be safely updated during the
processing of a frame, unless the frame is a coefficient bank.
The coefficient bank that is being read by the Scaler II must not be written to unless
the core is in a stopped state. To change the contents of the coefficient bank while the
Scaler II is in a running state, you must use multiple coefficient banks to allow an
inactive bank to be changed without affecting the frame currently being processed.
The Scaler II allows for dynamic bus sizing on the slave interface. The slave interface
includes a 4-bit byte enable signal, and the width of the data on the slave interface is
32 bits.
f For more information about dynamic bus sizing, refer to the “Avalon-MM Slave
Addressing” section in Avalon Interface Specifications.
dout_startofpacket
Out
dout
port Avalon-ST
startofpacket
signal. This signal marks the start of
an Avalon-ST packet.
dout_valid
Out
dout
port Avalon-ST
valid
signal. This signal is asserted when the
MegaCore function outputs data.
Note to Table 22–3:
(1) These ports are not present if you turn off Enable run-time control of input/output frame size and select Bilinear for Scaling algorithm in the
parameter editor.
Table 22–3. Scaler II Signals (Part 2 of 2)
Signal Direction Description
Table 22–4. Scaler II Control Register Map (Part 1 of 2)
Address Register Description
0
Control
Bit 0 of this register is the
Go
bit, all other bits are unused. Setting this bit
to 0, causes the Scaler II to stop the next time that control information is
read.
Bit 1 enables the edge adaptive coefficient selection (set to 1 to enable
this feature). Bit 2 enables edge adaptive sharpening (set to 1 to enable
this feature).
1
Status
Bit 0 of this register is the
Status
bit, all other bits are unused. When this
bit is set to 09, the Scaler II sets this address to 0 between frames. It is
set to 1 while the MegaCore function is processing data and cannot be
stopped.
2
Interrupt
This bit is not used because the Scaler II does not generate any
interrupts.
3
Output Width
The width of the output frames in pixels.