• 大小: 11.01MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: 其他
  • 标签: FPGA  

资源简介

FPGA进行FFT的verilog代码工程,可直接综合下载至FPGA的芯片中

资源截图

代码片段和文件信息

% function [y exp_out] = fft_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 9.0 Build 132 February 2009                                                                                                   
%
function [y exp_out] = fft_model(xNINVERSE) 
addpath ‘c:/altera/90/ip/altera/fft/lib//ip_toolbench//../‘
% Parameterization Space   
THROUGHPUT=1;
ARCH=2;
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-08-09 22:03  fft\
     文件       64121  2013-09-02 15:41  fft\Block1.bdf
     目录           0  2014-08-09 22:03  fft\db\
     文件        1872  2013-08-30 11:13  fft\db\add_sub_4dc.tdf
     文件        2299  2013-08-30 11:13  fft\db\add_sub_6dc.tdf
     文件        2456  2013-08-30 11:13  fft\db\add_sub_7dc.tdf
     文件        2613  2013-08-30 11:13  fft\db\add_sub_8dc.tdf
     文件        2770  2013-08-30 11:13  fft\db\add_sub_9dc.tdf
     文件        2927  2013-08-30 11:13  fft\db\add_sub_adc.tdf
     文件        3084  2013-08-30 11:13  fft\db\add_sub_bdc.tdf
     文件        3749  2013-08-30 11:13  fft\db\add_sub_cbj.tdf
     文件        4878  2013-08-30 11:13  fft\db\add_sub_d6h.tdf
     文件        4775  2013-08-30 11:13  fft\db\add_sub_ibj.tdf
     文件        3243  2013-08-30 11:13  fft\db\add_sub_jec.tdf
     文件        3418  2013-08-30 11:13  fft\db\add_sub_kec.tdf
     文件       13603  2013-08-31 16:18  fft\db\altsyncram_0to3.tdf
     文件        9741  2013-08-30 11:10  fft\db\altsyncram_5a31.tdf
     文件       23303  2013-08-30 11:13  fft\db\altsyncram_6mc1.tdf
     文件       12826  2013-08-30 11:13  fft\db\altsyncram_dsi1.tdf
     文件       13898  2013-08-30 11:13  fft\db\altsyncram_fsi1.tdf
     文件       15372  2013-08-30 11:13  fft\db\altsyncram_ht62.tdf
     文件       22530  2013-08-30 11:13  fft\db\altsyncram_kml3.tdf
     文件        5867  2013-08-30 11:13  fft\db\a_dpfifo_lc81.tdf
     文件        1718  2013-08-30 11:13  fft\db\cmpr_cg8.tdf
     文件        1590  2013-08-31 16:18  fft\db\cmpr_j4c.tdf
     文件        1912  2013-08-31 16:18  fft\db\cmpr_n4c.tdf
     文件        3153  2013-08-30 11:13  fft\db\cntr_6c7.tdf
     文件        4248  2013-08-31 16:18  fft\db\cntr_c4i.tdf
     文件        5130  2013-08-31 16:18  fft\db\cntr_iti.tdf
     文件        2908  2013-08-30 11:13  fft\db\cntr_pbb.tdf
     文件        3138  2013-08-30 11:13  fft\db\cntr_qbb.tdf
............此处省略844个文件信息

评论

共有 条评论