⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fft_block.v

📁 无线通信FPGA设计-FPGA源码
💻 V
字号:
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    15:32:11 08/29/2007 
// Design Name: 
// Module Name:    fft_block 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module fft_block(clk, reset, start, 
                 x_i, x_q, y_i, y_q, y_index);
input clk; 
input start;
input reset;
input [15:0] x_i;
input [15:0] x_q;
output [15:0] y_i;output [15:0] y_q;
output [4:0] y_index;

wire scale_we, cfft;wire [5:0] scale;
wire [4:0] x_index;
assign scale_we = 1;
assign scale = 6'b101010;
assign cfft = 1;
assign x_index = (!start) ? 0 : x_index + 1; 

fft_w16_p32 fft_w16_p32(  .ce(reset), //模块启动信号,高有效
  //fft/iffft配置端口的控制信号,高电平时才允许配置
  .fwd_inv_we(start), 
  .rfd(rfd), //数据有效信号
  //start为FFT开始信号,高有效。
  //开始FFT
  .start(start), 
   // fft/iffft配置端口的控制信号,1时作为FFT,0时作为IFFT
  .fwd_inv(cfft),
  // 缩放控制信号
  .scale_sch_we(scale_we), 
  .clk(clk),
  // 缩放控制信号
  .scale_sch(scale), 
  .xn_re(x_i), 
  .xk_im(y_q), 
  .xn_index(x_index), 
  .xk_re(y_i), 
  .xn_im(x_q), 
  .xk_index(y_index));

endmodule

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -