Entity: DspAddSub

Diagram

time TPD_G sl RST_POLARITY_G string USE_DSP_G positive range 1 to 48 WIDTH_G natural range 0 to 1 PIPE_STAGES_G sl clk sl rst sl ibValid slv(WIDTH_G-1 downto 0) ain slv(WIDTH_G-1 downto 0) bin sl add sl obReady sl ibReady sl obValid slv(WIDTH_G-1 downto 0) pOut

Description


Company : SLAC National Accelerator Laboratory

Description: Generalized DSP inferred DSP inferred add/sub

Equation: p = a +/- b

This file is part of 'SLAC Firmware Standard Library'. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of 'SLAC Firmware Standard Library', including this file, may be copied, modified, propagated, or distributed except according to

the terms contained in the LICENSE.txt file.

Generics

Generic name Type Value Description
TPD_G time 1 ns
RST_POLARITY_G sl '1' '1' for active high rst, '0' for active low
USE_DSP_G string "yes"
WIDTH_G positive range 1 to 48 32
PIPE_STAGES_G natural range 0 to 1 0

Ports

Port name Direction Type Description
clk in sl
rst in sl
ibValid in sl Inbound Interface
ibReady out sl
ain in slv(WIDTH_G-1 downto 0)
bin in slv(WIDTH_G-1 downto 0)
add in sl '1' = add, '0' = subtract
obValid out sl Outbound Interface
obReady in sl
pOut out slv(WIDTH_G-1 downto 0)

Signals

Name Type Description
r RegType
rin RegType
tReady sl
p slv(WIDTH_G-1 downto 0)

Constants

Name Type Value Description
REG_INIT_C RegType ( ibReady => '0',
tValid => '0',
p => (others => '0'))

Types

Name Type Description
RegType

Processes

Instantiations