Radical Computer Technologies
DSP / entity

raddsp_xilinx_dsp48_mul

Documentation version: 0.2.1 / Subpackage: dsp_transform / Source package: raddsp

DSP48-backed signed multiplier wrapper for Xilinx FPGA targets. Standardizes valid/last pipelining around vendor DSP blocks so higher-level RadDSP cores can share one multiplication interface.

Use Cases

Block Diagram

raddsp_xilinx_dsp48_mul radhdl entity clk rst valid_i subtract_i last_i a_i b_i valid_o subtract_o last_o p_o
VHDL Include And Instantiation Template

File Header

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

library radhdl;
-- Direct entity instantiation below does not require importing the entity name.
use radhdl.dsp.all;
-- Narrower alternative: use radhdl.dsp_transform.all;

Component Declaration

component raddsp_xilinx_dsp48_mul is
  generic (
    DEVICE_FAMILY : string := "7series";
    A_WIDTH : positive := 16;
    B_WIDTH : positive := 18
  );
  port (
    clk : in std_logic;
    rst : in std_logic;
    valid_i : in std_logic;
    subtract_i : in std_logic;
    last_i : in std_logic;
    a_i : in signed(A_WIDTH - 1 downto 0);
    b_i : in signed(B_WIDTH - 1 downto 0);
    valid_o : out std_logic;
    subtract_o : out std_logic;
    last_o : out std_logic;
    p_o : out signed(47 downto 0)
  );
end component;

Direct Entity Instantiation

u_raddsp_xilinx_dsp48_mul : entity radhdl.raddsp_xilinx_dsp48_mul
  generic map (
    DEVICE_FAMILY => "7series",
    A_WIDTH       => 16,
    B_WIDTH       => 18
  )
  port map (
    clk        => <clk_signal>,
    rst        => <rst_signal>,
    valid_i    => <valid_i_signal>,
    subtract_i => <subtract_i_signal>,
    last_i     => <last_i_signal>,
    a_i        => <a_i_signal>,
    b_i        => <b_i_signal>,
    valid_o    => <valid_o_signal>,
    subtract_o => <subtract_o_signal>,
    last_o     => <last_o_signal>,
    p_o        => <p_o_signal>
  );

Generics

NameTypeDefaultDescription
DEVICE_FAMILYstring"7series"Identifies the target FPGA family so wrappers can choose the correct primitive or conservative portable behavior.
A_WIDTHpositive16Sets the bit width for A WIDTH values carried by this module.
B_WIDTHpositive18Sets the bit width for B WIDTH values carried by this module.

Ports

NameDirectionTypeDescription
clkinstd_logicClock for the associated synchronous logic and handshake domain.
rstinstd_logicActive-high synchronous reset for this clock domain.
valid_iinstd_logicInput valid qualifier for this operation or sideband channel.
subtract_iinstd_logicInput subtract i signal for this module.
last_iinstd_logicInput last i signal for this module.
a_iinsigned(A_WIDTH - 1 downto 0)Input a i signal for this module.
b_iinsigned(B_WIDTH - 1 downto 0)Input b i signal for this module.
valid_ooutstd_logicOutput valid qualifier aligned with the produced result.
subtract_ooutstd_logicOutput subtract o signal generated by this module.
last_ooutstd_logicOutput last o signal generated by this module.
p_ooutsigned(47 downto 0)Output p o signal generated by this module.

Testbenches

No directly associated testbench was found.

Sources