![Xilinx LogiCORE IP User Manual Download Page 53](http://html2.mh-extra.com/html/xilinx/logicore-ip/logicore-ip_user-manual_3378198053.webp)
Video Scaler v4.0 User Guide
www.xilinx.com
53
UG805 March 1, 2011
Coefficient Preloading Using a .coe File
Within each “bin,” four further levels of granularity can be observed. In order of
decreasing size of granularity, these levels are:
•
Number of taps defined
•
Number of phases defined
•
Phase number (one line in file)
•
Tap number (one element of each line), newest (right-most or lowest) first
For example, the first set of coefficients, defined for two taps and
two phases
, is given as:
// bin # 1; num_taps = 2; num_phases = 2
1018, 15366,
8192, 8192
The second set of coefficients, defined for two taps and
three phases,
is given immediately
afterwards as:
/* bin # 1; num_taps = 2; num_phases = 3 */
1018, 15366,
5852, 10532,
10532, 5852,
And so forth.
Format for .coe Files
The guidelines for creating a .coe file are as follows:
•
Coefficients may be specified in either 16-bit binary form or signed decimal form.
•
First line of a 16-bit binary file must be
memory_initialization_radix=2;
•
First line of a signed decimal file must be
memory_initialization_radix=10;
•
Second line of all .coe files must be
memory_initialization_vector=
•
All coefficient entries must end with a comma (",") except the final entry which must
end with a semicolon ";".
•
Final entry must have a carriage return at the end after the semicolon.
•
All coefficient sets must be listed consecutively, starting with set 0.
•
All sets in the file must be of equal size in terms of the number of coefficient entries.
•
Number of coefficient entries in all sets depends upon:
•
Max_coef_sets
•
Max_phases
•
Max_taps (=max(num_h_taps, num_v_taps))
•
User setting for "Separate Y/C coefficients"
•
User setting for “Chroma_format”
Summary of Contents for LogiCORE IP
Page 1: ...LogiCORE IP Video Scaler v4 0 User Guide UG805 March 1 2011...
Page 6: ...Video Scaler v4 0 User Guide www xilinx com UG805 March 1 2011...
Page 14: ...14 www xilinx com Video Scaler v4 0 User Guide UG805 March 1 2011 Preface About This Guide...
Page 18: ...18 www xilinx com Video Scaler v4 0 User Guide UG805 March 1 2011 Chapter 1 Introduction...
Page 20: ...20 www xilinx com Video Scaler v4 0 User Guide UG805 March 1 2011 Chapter 2 Overview...
Page 70: ...70 www xilinx com Video Scaler v4 0 User Guide UG805 March 1 2011 Chapter 9 Performance...
Page 74: ...74 www xilinx com Video Scaler v4 0 User Guide UG805 March 1 2011 Appendix A Use Cases...
Page 92: ...92 www xilinx com Video Scaler v4 0 User Guide UG805 March 1 2011 Appendix B Programmer Guide...