- •Contents
- •1. Video and Image Processing Suite Overview
- •Release Information
- •Device Family Support
- •Latency
- •In-System Performance and Resource Guidance
- •Stall Behavior and Error Recovery
- •2. Interfaces
- •Video Formats
- •Avalon-ST Video Protocol
- •Video Data Packets
- •Static Parameters of Video Data Packets
- •Control Data Packets
- •Ancillary Data Packets
- •User-Defined and Altera-Reserved Packets
- •Packet Propagation
- •Transmission of Avalon-ST Video Over Avalon-ST Interfaces
- •Packet Transfer Examples
- •Avalon-MM Slave Interfaces
- •Specification of the Type of Avalon-MM Slave Interfaces
- •Avalon-MM Master Interfaces
- •Specification of the Type of Avalon-MM Master Interfaces
- •Buffering of Non-Image Data Packets in Memory
- •3. Getting Started
- •IP Catalog and Parameter Editor
- •Specifying IP Core Parameters and Options
- •Installing and Licensing IP Cores
- •OpenCore Plus IP Evaluation
- •4. Clocked Video Interface IP Cores
- •Control Port
- •Clocked Video Input Format Detection
- •Interrupts
- •Clocked Video Output Video Modes
- •Interrupts
- •Generator Lock
- •Underflow and Overflow
- •Timing Constraints
- •Handling Ancillary Packets
- •Modules for Clocked Video Input II IP Core
- •Clocked Video Interface Parameter Settings
- •Clocked Video Interface Signals
- •Clocked Video Interface Control Registers
- •5. 2D FIR Filter IP Core
- •Calculation Precision
- •Coefficient Precision
- •Result to Output Data Type Conversion
- •2D FIR IP Core Parameter Settings
- •2D FIR Filter Signals
- •2D FIR Filter Control Registers
- •6. Video Mixing IP Cores
- •Alpha Blending
- •Video Mixing Parameter Settings
- •Video Mixing Signals
- •Video Mixing Control Registers
- •7. Chroma Resampler IP Core
- •Horizontal Resampling (4:2:2)
- •Vertical Resampling (4:2:0)
- •Chroma Resampler Parameter Settings
- •Chroma Resampler Signals
- •8. Video Clipping IP Cores
- •Video Clipping Parameter Settings
- •Video Clipping Signals
- •Video Clipping Control Registers
- •9. Color Plane Sequencer IP Core
- •Combining Color Patterns
- •Rearranging Color Patterns
- •Splitting and Duplicating
- •Subsampled Data
- •Color Plane Sequencer Parameter Settings
- •Color Plane Sequencer Signals
- •10. Color Space Conversion IP Cores
- •Input and Output Data Types
- •Color Space Conversion
- •Result of Output Data Type Conversion
- •Color Space Conversion Parameter Settings
- •Color Space Conversion Signals
- •Color Space Conversion Control Registers
- •11. Control Synchronizer IP Core
- •Using the Control Synchronizer IP Core
- •Control Synchronizer Parameter Settings
- •Control Synchronizer Signals
- •Control Synchronizer Control Registers
- •12. Deinterlacing IP Cores
- •Deinterlacing Methods
- •Bob with Scanline Duplication
- •Bob with Scanline Interpolation
- •Weave
- •Motion-Adaptive
- •Sobel-Based HQ Mode
- •Pass-Through Mode for Progressive Frames
- •Frame Buffering
- •Frame Rate Conversion
- •Bandwidth Requirement Calculations for 10-bit YCbCr Video
- •Behavior When Unexpected Fields are Received
- •Handling of Avalon-ST Video Control Packets
- •Deinterlacing Parameter Settings
- •Deinterlacing Signals
- •Deinterlacing Control Registers
- •Design Guidelines for Broadcast Deinterlacer IP Core
- •13. Frame Reader IP Core
- •Single-Cycle Color Patterns
- •Frame Reader Output Pattern and Memory Organization
- •Frame Reader Parameter Settings
- •Frame Reader Signals
- •Frame Reader Control Registers
- •14. Frame Buffer IP Cores
- •Double Buffering
- •Triple Buffering
- •Locked Frame Rate Conversion
- •Handling of Avalon-ST Video Control Packets
- •Color Format
- •Frame Buffer Parameter Settings
- •Frame Buffer Signals
- •Frame Buffer Control Registers
- •15. Gamma Corrector IP Core
- •Gamma Corrector Parameter Settings
- •Gamma Corrector Signals
- •Gamma Corrector Control Registers
- •16. Interlacer IP Core
- •Interlacer Parameter Settings
- •Interlacer Signals
- •Interlacer Control Registers
- •17. Scaler II IP Core
- •Nearest Neighbor Algorithm
- •Bilinear Algorithm
- •Bilinear Algorithmic Description
- •Polyphase and Bicubic Algorithm
- •Double-Buffering
- •Polyphase Algorithmic Description
- •Choosing and Loading Coefficients
- •Edge-Adaptive Scaling Algorithm
- •Scaler II Parameter Settings
- •Scaler II Signals
- •Scaler II Control Registers
- •18. Video Switching IP Cores
- •Mixer Layer Switching
- •Video Switching Parameter Settings
- •Video Switching Signals
- •Video Switching Control Registers
- •19. Test Pattern Generator IP Cores
- •Test Pattern
- •Generation of Avalon-ST Video Control Packets and Run-Time Control
- •Test Pattern Generator Parameter Settings
- •Test Pattern Generator Signals
- •Test Pattern Generator Control Registers
- •20. Trace System IP Core
- •Trace System Parameter Settings
- •Trace System Signals
- •Operating the Trace System from System Console
- •Loading the Project and Connecting to the Hardware
- •Trace Within System Console
- •TCL Shell Commands
- •21. Avalon-ST Video Monitor IP Core
- •Packet Visualization
- •Monitor Settings
- •Avalon-ST Video Monitor Parameter Settings
- •Avalon-ST Video Monitor Signals
- •Avalon-ST Video Monitor Control Registers
- •Avalon-ST Video Class Library
- •Running the Tests
- •Video File Reader Test
- •Example Test Environment
- •Video Field Life Cycle
- •Constrained Random Test
- •Complete Class Reference
- •c_av_st_video_control
- •c_av_st_video_data
- •c_av_st_video_file_io
- •c_av_st_video_item
- •c_av_st_video_source_sink_base
- •c_av_st_video_sink_bfm_’SINK
- •c_av_st_video_source_bfm_’SOURCE
- •c_av_st_video_user_packet
- •c_pixel
- •Raw Video Data Format
- •Cadence Detection and Reverse Pulldown in the Deinterlacer II IP Core
- •Document Revision History
- •How to Contact Altera
8-6 |
Video Clipping Control Registers |
UG-VIPSUITE |
|
2015.01.23 |
|||
|
|
Signal |
|
Directio |
|
Description |
|
|
n |
|
|
|
|
|
|
|
control_byteenable |
|
Input |
|
control slave port Avalon-MM byteenable bus. This |
|
|
|
|
bus enables specific byte lane or lanes during transfers. |
|
|
|
|
Each bit in byteenable corresponds to a byte in |
|
|
|
|
writedata and readdata. |
|
|
|
|
During writes, byteenable specifies which bytes are |
|
|
|
|
being written to; other bytes are ignored by the slave. |
|
|
|
|
Slaves that simply return readdata with no side effects |
|
|
|
|
are free to ignore byteenable during reads. |
|
|
|
|
|
control_read |
|
Output |
|
control slave port Avalon-MM read signal. When you |
|
|
|
|
assert this signal, the control port sends new data at |
|
|
|
|
readdata. |
|
|
|
|
|
control_readdata |
|
Output |
|
control slave port Avalon-MM control_data bus. The |
|
|
|
|
IP core uses these output lines for read transfers. |
control_readdatavalid |
|
Output |
|
control slave port Avalon-MM readdata bus. When |
|
|
|
|
you assert this signal, the control port sends new data at |
|
|
|
|
control_readdata. |
|
|
|
|
|
control_waitrequest |
|
Output |
|
control slave port Avalon-MM waitrequest signal. |
|
|
|
|
|
control_write |
|
Input |
|
control slave port Avalon-MM write signal. When you |
|
|
|
|
assert this signal, the control port accepts new data from |
|
|
|
|
the writedata bus. |
|
|
|
|
|
control_writedata |
|
Input |
|
control slave port Avalon-MM writedata bus. The IP |
|
|
|
|
core uses these input lines for write transfers. |
|
|
|
|
|
Video Clipping Control Registers
Table 8-6: Clipper Control Register Map
The control data is read once at the start of each frame and is buffered inside the IP core, so the registers can be safely updated during the processing of a frame.
Note: All Clipper registers are write-only except at address 1.
|
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 IP core to stop the next time |
|
|
|
|
|
|
|
control information is read. |
|
|
|
|
|
|
|
||
|
1 |
|
|
Status |
|
Bit 0 of this register is the Status bit, all other bits are unused. |
|
|
|
|
|
|
|
The Clipper IP core sets this address to 0 between frames. It is |
|
|
|
|
|
|
|
set to 1 while the IP core is processing data and cannot be |
|
|
|
|
|
|
|
stopped. |
|
|
|
|
|
|
|
|
|
Altera Corporation |
|
|
|
|
Video Clipping IP Cores |
||
|
|
|
|
|
|
Send Feedback |
UG-VIPSUITE |
|
|
|
Video Clipping Control Registers |
8-7 |
|
2015.01.23 |
|
|
|
|||
|
|
|
|
|
||
|
|
|
|
|
|
|
|
Address |
|
Register |
|
Description |
|
|
|
|
|
|
|
|
2 |
|
Left Offset |
|
The left offset, in pixels, of the clipping window/rectangle. |
|
|
|
|
|
|
|
Note: The left and right offset values must be less than or |
|
|
|
|
|
|
equal to the input image width. |
|
|
|
|
|
|
|
|
|
3 |
|
Right Offset or |
|
In clipping window mode, the right offset of the window. In |
|
|
|
|
Width |
|
clipping rectangle mode, the width of the rectangle. |
|
|
|
|
|
|
Note: The left and right offset values must be less than or |
|
|
|
|
|
|
equal to the input image width. |
|
|
|
|
|
|
|
|
4 |
|
Top Offset |
|
The top offset, in pixels, of the clipping window/rectangle. |
|
|
|
|
|
|
|
Note: The top and bottom offset values must be less than |
|
|
|
|
|
|
or equal to the input image height. |
|
|
|
|
|
|
||
|
5 |
|
Bottom Offset or |
|
In clipping window mode, the bottom offset of the window. In |
|
|
|
|
Height |
|
clipping rectangle mode, the height of the rectangle. |
|
|
|
|
|
|
Note: The top and bottom offset values must be less than |
|
|
|
|
|
|
or equal to the input image height. |
|
|
|
|
|
|
|
|
|
Table 8-7: Clipper II Control Register Map |
|
|
|
The control data is read once at the start of each frame and is buffered inside the IP core, so the registers can be safely updated during the processing of a frame.
Note: The run-time control register map for the Clipper II IP core is altered and does not match the register map of the Clipper IP core.
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 IP core to stop the next time |
|
|
|
|
control information is read. |
|
|
|
|
|
1 |
|
Status |
|
Bit 0 of this register is the Status bit, all other bits are unused. |
|
|
|
|
The Clipper IP core sets this address to 0 between frames. It is |
|
|
|
|
set to 1 while the IP core is processing data and cannot be |
|
|
|
|
stopped. |
2 |
|
Interrupt |
|
This bit is not used because the IP core does not generate any |
|
|
|
|
interrupts. |
|
|
|
|
|
3 |
|
Left Offset |
|
The left offset, in pixels, of the clipping window/rectangle. |
|
|
|
|
Note: The left and right offset values must be less than or |
|
|
|
|
equal to the input image width. |
|
|
|
|
|
Video Clipping IP Cores |
Altera Corporation |
|
|
Send Feedback
8-8 |
Video Clipping Control Registers |
|
UG-VIPSUITE |
|||||
2015.01.23 |
||||||||
|
|
|
|
|
||||
|
|
|
|
|
|
|
||
|
|
Address |
|
Register |
|
Description |
|
|
|
|
|
|
|
|
|
|
|
4 |
|
|
Right Offset or |
|
In clipping window mode, the right offset of the window. In |
|||
|
|
|
|
Width |
|
clipping rectangle mode, the width of the rectangle. |
||
|
|
|
|
|
|
Note: The left and right offset values must be less than or |
||
|
|
|
|
|
|
equal to the input image width. |
||
|
|
|
|
|
|
|||
|
5 |
|
|
Top Offset |
|
The top offset, in pixels, of the clipping window/rectangle. |
|
|
|
|
|
|
|
|
Note: The top and bottom offset values must be less than |
|
|
|
|
|
|
|
|
or equal to the input image height. |
|
|
|
|
|
|
|
|
|
|
|
6 |
|
|
Bottom Offset or |
|
In clipping window mode, the bottom offset of the window. In |
|||
|
|
|
|
Height |
|
clipping rectangle mode, the height of the rectangle. |
||
|
|
|
|
|
|
Note: The top and bottom offset values must be less than |
||
|
|
|
|
|
|
or equal to the input image height. |
||
|
|
|
|
|
|
|
|
Altera Corporation |
Video Clipping IP Cores |
|
|
Send Feedback