Line 1... |
Line 1... |
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
// Filename: ifft_tb.v
|
// Filename: ifft_tb.v
|
//
|
//
|
// Project: A Doubletime Pipelined FFT
|
// Project: A General Purpose Pipelined FFT Implementation
|
//
|
//
|
// Purpose: This file is used to test whether an FFT followed by an
|
// Purpose: This file is used to test whether an FFT followed by an
|
// immediate IFFT produces the input again. It is a test
|
// immediate IFFT produces the input again. It is a test
|
// bench for the composition of the two programs, and specifically
|
// bench for the composition of the two programs, and specifically
|
// for the IFFT. As designed and built, this test bench would
|
// for the IFFT. As designed and built, this test bench would
|
Line 15... |
Line 15... |
// ifft_tb.cpp.
|
// ifft_tb.cpp.
|
//
|
//
|
// Creator: Dan Gisselquist, Ph.D.
|
// Creator: Dan Gisselquist, Ph.D.
|
// Gisselquist Technology, LLC
|
// Gisselquist Technology, LLC
|
//
|
//
|
///////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
// Copyright (C) 2015, Gisselquist Technology, LLC
|
// Copyright (C) 2015, Gisselquist Technology, LLC
|
//
|
//
|
// This program is free software (firmware): you can redistribute it and/or
|
// This program is free software (firmware): you can redistribute it and/or
|
// modify it under the terms of the GNU General Public License as published
|
// modify it under the terms of the GNU General Public License as published
|
Line 30... |
Line 30... |
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for more details.
|
// for more details.
|
//
|
//
|
// You should have received a copy of the GNU General Public License along
|
// You should have received a copy of the GNU General Public License along
|
// with this program. (It's in the $(ROOT)/doc directory, run make with no
|
// with this program. (It's in the $(ROOT)/doc directory. Run make with no
|
// target there if the PDF file isn't present.) If not, see
|
// target there if the PDF file isn't present.) If not, see
|
// <http://www.gnu.org/licenses/> for a copy.
|
// <http://www.gnu.org/licenses/> for a copy.
|
//
|
//
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
// http://www.gnu.org/licenses/gpl.html
|
// http://www.gnu.org/licenses/gpl.html
|
//
|
//
|
//
|
//
|
///////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
module ifft_tb(i_clk, i_rst, i_ce, i_left, i_right, o_left, o_right, o_sync);
|
module ifft_tb(i_clk, i_rst, i_ce, i_left, i_right, o_left, o_right, o_sync);
|
parameter IWIDTH=16, MIDWIDTH=22, OWIDTH=28;
|
parameter IWIDTH=16, MIDWIDTH=22, OWIDTH=28;
|
input i_clk, i_rst, i_ce;
|
input i_clk, i_rst, i_ce;
|
input [(2*IWIDTH-1):0] i_left, i_right;
|
input [(2*IWIDTH-1):0] i_left, i_right;
|
output wire [(2*OWIDTH-1):0] o_left, o_right;
|
output wire [(2*OWIDTH-1):0] o_left, o_right;
|