⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cos_constants_package.v

📁 JPEG_D IP Core Verilog crypted source
💻 V
字号:
//---------------------------------------------------------------------------// Project  : JPEG-D - Baseline JPEG Decoder//// File     : cos_constants_package.v//// Purpose  : Package with all constants and functions used by the IP core for cosine coefficients//// Created by ALMA Technologies S.A.// Copyright (c) 2001-2007 Alma Technologies S.A.////---------------------------------------------------------------------------// Design Engineer        : S. Theoharis, G. Anagnostopoulos// Quality Engineer       : N. Zervas// Creation Date          : 16 December 2002// Last Modification Date : 21 November 2003// File history           ://      16 December 2002 (1.00)//      21 November 2003 (2.00) : Update file header to adhere company's template//---------------------------------------------------------------------------// Please review the terms of the license agreement before using this file.// If you are not an authorized user, please destroy this source code file// and notify Alma Technologies or CAST, Inc. immediately that you// inadvertently received an unauthorized copy.//---------------------------------------------------------------------------//---------------------------------------------------------------//                Constants and type declarations              --//---------------------------------------------------------------`define N_COEF_BITS 10 // Number of bits for cos coefficients`define N_COEF_BITS_10// Coefficients for 8x8 block DCT. User can produce them using gen_cos.exe program.// 10 bit`ifdef N_COEF_BITS_10   `define COS_MATRIX7 'b0000110001   `define COS_MATRIX6 'b0001100001   `define COS_MATRIX5 'b0010001110   `define COS_MATRIX4 'b0010110101   `define COS_MATRIX3 'b0011010100   `define COS_MATRIX2 'b0011101100   `define COS_MATRIX1 'b0011111011   `define COS_MATRIX0 'b0010110101`endif// 12 bit`ifdef N_COEF_BITS_12   `define COS_MATRIX7 'b000011000111   `define COS_MATRIX6 'b000110000111   `define COS_MATRIX5 'b001000111000   `define COS_MATRIX4 'b001011010100   `define COS_MATRIX3 'b001101010011   `define COS_MATRIX2 'b001110110010   `define COS_MATRIX1 'b001111101100   `define COS_MATRIX0 'b001011010100`endif// 14 bit`ifdef N_COEF_BITS_12 4   `define COS_MATRIX7 'b00001100011111   `define COS_MATRIX6 'b00011000011111   `define COS_MATRIX5 'b00100011100011   `define COS_MATRIX4 'b00101101010000   `define COS_MATRIX3 'b00110101001101   `define COS_MATRIX2 'b00111011001000   `define COS_MATRIX1 'b00111110110001   `define COS_MATRIX0 'b00101101010000`endifparameter [31:0] MATRIX_8X8_BLOCK0 = 'h76543210;parameter [31:0] MATRIX_8X8_BLOCK1 = 'hDA9CF630;parameter [31:0] MATRIX_8X8_BLOCK2 = 'h327C9E50;parameter [31:0] MATRIX_8X8_BLOCK3 = 'h9E34DA70;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -