mtimes_001.m
来自「浮点fir设计工具」· M 代码 · 共 61 行
M
61 行
% AccelDSP 9.1.00 build 868 Production, compiled Feb 16 2007
%
% THIS IS UNPUBLISHED, LICENSED SOFTWARE THAT IS THE CONFIDENTIAL
% AND PROPRIETARY PROPERTY OF XILINX OR ITS LICENSORS
%
% Copyright(c) Xilinx, Inc., 2000-2007, All Rights Reserved.
% Reproduction or reuse, in any form, without the explicit written
% consent of Xilinx, Inc., is strictly prohibited.
%
% User: WangQian
% Machine: A2D3DF917F70473 (i1586, Windows XP Service Pack 2, 5.01.2600)
% Date: Mon May 12 10:57:06 2008
%
function outputC = mtimes_001 ( inputA, inputB )
global ac_fixed_wrap_floor_12_8;
global ac_fixed_wrap_floor_24_20;
global ac_fixed_wrap_floor_26_20;
global ac_fixed_wrap_floor_29_20;
global ac_fixed_wrap_floor_2_0;
global ac_ufixed_wrap_floor_12_12;
global ac_ufixed_wrap_floor_5_0;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AccelDSP 9.1.00 build 868 Production, compiled Feb 16 2007
%
% THIS IS UNPUBLISHED, LICENSED SOFTWARE THAT IS THE CONFIDENTIAL
% AND PROPRIETARY PROPERTY OF XILINX OR ITS LICENSORS
%
% Copyright(c) Xilinx, Inc., 2000-2007, All Rights Reserved.
% Reproduction or reuse, in any form, without the explicit written
% consent of Xilinx, Inc., is strictly prohibited.
%
% User: WangQian
% Machine: A2D3DF917F70473 (i1586, Windows XP Service Pack 2, 5.01.2600)
% Date: Mon May 12 10:56:57 2008
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AccelWare Function: Mtimes
% AccelDSP Version: 9.1.00 build 868 Production
% AccelWare Version: 9.1.00 build 868 Production
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% colsa: Number of columns in the A input.
% value used "16"
% colsb: Number of columns in the B input.
% value used "1"
% implementation: Select Architectural Implementation (currently only one implementation).
% value used "default"
% rowsa: Number of rows in the A input.
% value used "1"
% rowsb: Number of rows in the B input.
% value used "16"
% speedarea: Allows for various combinations of resource-sharing and pipelining. It is a starting point and can be changed with directives.
% value used "resource shared / non-pipelined"
% type: double, galoisfield or complex.
% value used "double"
accum = quantize( ac_fixed_wrap_floor_29_20, 0 );
for accumindex = quantize( ac_ufixed_wrap_floor_5_0, 1:16 )
prod1 = quantize( ac_fixed_wrap_floor_24_20, inputA(1, accumindex) * inputB(accumindex, 1) );
accum = quantize( ac_fixed_wrap_floor_29_20, prod1 + accum );
end
outputC = quantize( ac_fixed_wrap_floor_26_20, accum );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?