ifft_block.v

来自「书籍“无线通信fpga设计”里的源代码实例」· Verilog 代码 · 共 64 行

V
64
字号
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    16:22:09 09/02/2007 
// Design Name: 
// Module Name:    ifft_block 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module ifft_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 = 0;assign x_index = (!start) ? 0 : x_index + 1; fft_w16_p32 fft_w16_p32(  .ce(reset), //模块启动信号,高有效  //fft/iffft配置端口的控制信号,高电平时才允许配置  .fwd_inv_we(start),   .rfd(rfd), //数据有效信号  //startFFT开始信号,高有效。  //开始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 + =
减小字号Ctrl + -
显示快捷键?