Entity: bimpy

Diagram

BW wire i_clk wire i_ce wire [(LUTB-1):0] i_a wire [(BW-1):0] i_b [(BW+LUTB-1):0] o_r

Description

//////////////////////////////////////////////////////////////////////////////

Filename: ../../ifft64/bimpy.v

Project: A General Purpose Pipelined FFT Implementation

Purpose: A simple 2-bit multiply based upon the fact that LUT's allow 6-bits of input. In other words, I could build a 3-bit multiply from 6 LUTs (5 actually, since the first could have two outputs). This would allow multiplication of three bit digits, save only for the fact that you would need two bits of carry. The bimpy approach throttles back a bit and does a 2x2 bit multiply in a LUT, guaranteeing that it will never carry more than one bit. While this multiply is hardware independent (and can still run under Verilator therefore), it is really motivated by trying to optimize for a specific piece of hardware (Xilinx-7 series …) that has at least 4-input LUT's with carry chains.

Creator: Dan Gisselquist, Ph.D. Gisselquist Technology, LLC

//////////////////////////////////////////////////////////////////////////////

Copyright (C) 2015-2019, Gisselquist Technology, LLC

This file is part of the general purpose pipelined FFT project.

The pipelined FFT project is free software (firmware): you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The pipelined FFT project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along 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 http://www.gnu.org/licenses/ for a copy.

License: LGPL, v3, as defined and found on www.gnu.org, http://www.gnu.org/licenses/lgpl.html

//////////////////////////////////////////////////////////////////////////////

`default_nettype none

Generics

Generic name Type Value Description
BW 18 Number of bits in i_b

Ports

Port name Direction Type Description
i_clk input wire
i_ce input wire
i_a input wire [(LUTB-1):0]
i_b input wire [(BW-1):0]
o_r output [(BW+LUTB-1):0]

Signals

Name Type Description
w_r wire [(BW+LUTB-2):0]
c wire [(BW+LUTB-3):1]
f_past_valid reg

Constants

Name Type Value Description
LUTB 2 Number of bits in i_a for our LUT multiply

Processes

Type: always

Type: always

Type: always