• 大小: 30.34MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-03
  • 语言: 其他
  • 标签: FFT  ALTERA  

资源简介

分给的再高都不过分 决定能用,SingalTAP自己看波形 DE2板子可以用,AD采样用的一个很随意的并行AD,EP2CQ208的芯片要自己改下SingaltapII的存储深度,如果这个自己都编译不过,理解不了的话,就放弃FFT吧

资源截图

代码片段和文件信息

% function [y exp_out] = fft_core_model(xNINVERSE)         
%                                                                                           
%   calculates the complex block-floating point FFT/IFFT of length N of a                  
%   complex input vector x                                                                   
%                                                                                            
%   Inputs:   x          : Input complex vector of length B*N where B is                     
%                          the number of blocks over which the length-N FFT is to          
%                          be applied. If the length of the vector is not                    
%                          an integral multiple of N zeros are                               
%                          appended to the input sequence appropriately.                     
%             N          : Transform Length                                                  
%             INVERSE    : FFT direction                                                     
%                          0 => FFT                                                          
%                          1 => IFFT                                                          
%                                                                                          
%   Outputs   y          : The transform-domain complex vector output                        
%             exp_out    : Block exponent value                                               
%                                                                                            
%   2001-2009 Altera Corporation All Rights Reserved 
%                                                                                                  
%   Automatically Generated: FFT MegaCore Function 11.1 Build 173 November 2011                                                                                                   
%
function [y exp_out] = fft_core_model(xNINVERSE) 
addpath(strcat(getenv(‘QUARTUS_ROOTDIR‘)‘/../ip/altera/fft/lib/‘));
% Parameterization Space   
THROUGHPUT=4;
ARCH=0;
DATA_PREC=8;
TWIDDLE_PREC=8;
input_vector_length = length(x);                                                              
number_of_blocks = ceil(input_vector_length/N);                                               
% Zero-stuff last block if necessary                                                          
x = [x zeros(1number_of_blocks * N - input_vector_length)];                                 
y=[];                                                                                         
exp_out=[];                                                                                   
for i=1:number_of_blocks                                                                      
    rin = real(x((i-1)*N + 1: i*N));                                                          
    iin = imag(x((i-1)*N + 1: i*N));        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-05-05 18:28  FFT_IFFT_Protype_2__Expand_4__ABS\
     文件        1604  2014-02-26 23:26  FFT_IFFT_Protype_2__Expand_4__ABS\ADC_CLK_GEN.bsf
     文件         282  2014-02-26 23:39  FFT_IFFT_Protype_2__Expand_4__ABS\ADC_CLK_out.v
     文件         280  2014-02-26 23:26  FFT_IFFT_Protype_2__Expand_4__ABS\ADC_CLK_out.v.bak
     文件        4856  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT.bsf
     文件        5334  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT.html
     文件       21915  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT.qip
     文件        9778  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT.v
     文件      625340  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT.vo
     文件        3596  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_1n1024cos.hex
     文件        3596  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_1n1024sin.hex
     文件        3596  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_2n1024cos.hex
     文件        3596  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_2n1024sin.hex
     文件        3596  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_3n1024cos.hex
     文件        3596  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_3n1024sin.hex
     文件        2341  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_bb.v
     文件       14872  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_imag_input.txt
     文件        3426  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_model.m
     文件        3062  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_nativelink.tcl
     文件       14865  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_real_input.txt
     文件        1906  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_tb.m
     文件       10114  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_tb.v
     文件       12567  2014-03-02 15:30  FFT_IFFT_Protype_2__Expand_4__ABS\IFFT_tb.vhd
     文件        3228  2014-02-27 08:53  FFT_IFFT_Protype_2__Expand_4__ABS\PLL.bsf
     文件         422  2014-02-27 08:53  FFT_IFFT_Protype_2__Expand_4__ABS\PLL.ppf
     文件         350  2014-02-27 08:53  FFT_IFFT_Protype_2__Expand_4__ABS\PLL.qip
     文件       15896  2014-02-27 08:53  FFT_IFFT_Protype_2__Expand_4__ABS\PLL.v
     文件        1632  2014-02-27 11:47  FFT_IFFT_Protype_2__Expand_4__ABS\code_change.bsf
     文件         171  2014-03-07 13:01  FFT_IFFT_Protype_2__Expand_4__ABS\code_change.v
     文件         227  2014-02-27 09:46  FFT_IFFT_Protype_2__Expand_4__ABS\code_change.v.bak
     目录           0  2014-05-05 18:28  FFT_IFFT_Protype_2__Expand_4__ABS\db\
............此处省略1894个文件信息

评论

共有 条评论