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

资源简介

DDS的原理及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 11.1 Build 259 November 2011                                                                                                   
%
function [y exp_out] = fft_model(xNINVERSE) 
addpath(strcat(getenv(‘QUARTUS_ROOTDIR‘)‘/../ip/altera/fft/lib/‘));
% Parameterization Space   
THROUGHPUT=4;
ARCH=0;
DATA_PREC=10;
TWIDDLE_PREC=10;
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  2015-05-25 21:34  dds\
     文件           0  2014-12-15 20:40  dds\12.dat
     文件        3853  2014-12-15 20:46  dds\Hex1.hex
     文件        4365  2013-05-18 19:25  dds\Mif1.hex
     文件        1206  2013-05-09 21:34  dds\Mif1.mif
     文件        3853  2013-05-20 20:34  dds\Mif2.hex
     文件        3853  2013-05-20 20:35  dds\Mif3.hex
     文件        3853  2013-05-20 20:52  dds\Mif5.hex
     文件        3853  2013-05-21 16:17  dds\Mif6.hex
     文件        3853  2013-05-21 17:16  dds\Mif7.hex
     文件        3853  2013-05-21 17:20  dds\Mif8.hex
     文件        3853  2013-05-21 17:30  dds\Mif9.hex
     文件         289  2014-12-15 20:24  dds\PLLJ_PLLSPE_INFO.txt
     文件        5073  2014-12-15 20:24  dds\c5_pin_model_dump.txt
     目录           0  2015-05-25 21:34  dds\db\
     文件         201  2014-12-15 20:24  dds\db\.cmp.kpt
     文件        1431  2013-05-25 09:51  dds\db\add_sub_05h.tdf
     文件        1538  2013-05-25 09:51  dds\db\add_sub_0gh.tdf
     文件        1538  2013-05-25 09:51  dds\db\add_sub_1gh.tdf
     文件        1431  2013-05-25 09:51  dds\db\add_sub_25h.tdf
     文件        1431  2013-05-25 09:51  dds\db\add_sub_35h.tdf
     文件        1431  2013-05-25 09:50  dds\db\add_sub_45h.tdf
     文件        1431  2013-05-25 09:50  dds\db\add_sub_55h.tdf
     文件        1538  2013-05-24 23:37  dds\db\add_sub_5oh.tdf
     文件        1538  2013-05-24 23:37  dds\db\add_sub_6oh.tdf
     文件        1538  2013-05-24 23:37  dds\db\add_sub_9oh.tdf
     文件        1538  2013-05-24 23:37  dds\db\add_sub_aoh.tdf
     文件        1431  2013-05-24 23:37  dds\db\add_sub_bdh.tdf
     文件        1431  2013-05-24 23:37  dds\db\add_sub_cdh.tdf
     文件        1538  2013-05-24 23:37  dds\db\add_sub_coh.tdf
     文件        1538  2013-05-24 23:37  dds\db\add_sub_doh.tdf
............此处省略336个文件信息

评论

共有 条评论