• 大小: 6.9MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-04
  • 语言: 其他
  • 标签: fpga  

资源简介

基于DDS的三相正弦波发生器 相位360度可调

资源截图

代码片段和文件信息

% 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-2008 Altera Corporation All Rights Reserved 
%                                                                                                  
%   Automatically Generated: FFT MegaCore Function 8.1 Build 163 November 2008                                                                                                   
%
function [y exp_out] = fft_model(xNINVERSE) 
addpath ‘c:/altera/81/ip/altera/fft/lib//ip_toolbench//../‘
% Parameterization Space   
THROUGHPUT=4;
ARCH=0;
DATA_PREC=18;
TWIDDLE_PREC=18;
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));                          

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4582  2009-08-19 10:20  beyond\accrom.mif

     文件       5896  2009-08-22 17:29  beyond\accrom8.mif

     文件       1793  2009-08-22 19:55  beyond\adder32b.bsf

     文件        612  2009-08-23 12:32  beyond\adder32b.vhd

     文件        612  2009-08-22 22:35  beyond\adder32b.vhd.bak

     文件       7449  2009-08-23 16:12  beyond\beyond.asm.rpt

     文件      27844  2009-08-23 16:11  beyond\beyond.bdf

     文件         26  2009-08-23 16:27  beyond\beyond.done

     文件        239  2009-08-23 18:16  beyond\beyond.dpf

     文件     178072  2009-08-23 16:12  beyond\beyond.fit.rpt

     文件        513  2009-08-23 16:12  beyond\beyond.fit.smsg

     文件        602  2009-08-23 16:12  beyond\beyond.fit.summary

     文件       9874  2009-08-23 16:12  beyond\beyond.flow.rpt

     文件      13066  2009-08-23 16:12  beyond\beyond.jdi

     文件     103080  2009-08-23 16:12  beyond\beyond.map.rpt

     文件        463  2009-08-23 16:12  beyond\beyond.map.summary

     文件      20315  2009-08-23 16:12  beyond\beyond.pin

     文件     131258  2009-08-23 16:12  beyond\beyond.pof

     文件        908  2009-08-22 15:11  beyond\beyond.qpf

     文件       5822  2009-09-01 15:33  beyond\beyond.qsf

     文件        841  2009-09-01 15:33  beyond\beyond.qws

     文件   41228122  2009-08-23 16:27  beyond\beyond.sim.rpt

     文件     151066  2009-08-23 16:12  beyond\beyond.sof

     文件     324370  2009-08-23 16:12  beyond\beyond.tan.rpt

     文件       3456  2009-08-23 16:12  beyond\beyond.tan.summary

     文件      17740  2009-08-23 16:26  beyond\beyond.vwf

     文件       2114  2009-08-23 09:11  beyond\byfpq.bsf

     文件        379  2009-08-23 09:11  beyond\byfpq.vhd

     文件        425  2009-08-23 09:06  beyond\byfpq.vhd.bak

     文件       2850  2009-08-22 20:05  beyond\db\altsyncram_9491.tdf

............此处省略364个文件信息

评论

共有 条评论