?? fft_block.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 + -