PCIE Byte Count

ENTITY PCIE_BYTE_COUNT IS

This component calculates the correct number of bytes contained in the payload of the incoming PCIe transaction. The size is calculated using DW_COUNT, FIRST_BE and LAST_BE signals provided by each transaction.

Generics

Generic

Type

Default

Description

OUTPUT_REG

boolean

False

Optional output register

Ports

Port

Type

Mode

Description

CLK

std_logic

in

RESET

std_logic

in

IN_DW_COUNT

std_logic_vector(11-1 downto 0)

in

DWord count from TLP header

IN_FIRST_BE

std_logic_vector(4-1 downto 0)

in

First Byte Enable from TLP header

IN_LAST_BE

std_logic_vector(4-1 downto 0)

in

Last Byte Enable from TLP header

OUT_FIRST_IB

std_logic_vector(2-1 downto 0)

out

First Invalid Bytes of TLP

OUT_LAST_IB

std_logic_vector(2-1 downto 0)

out

Last Invalid Bytes of TLP

OUT_BYTE_COUNT

std_logic_vector(13-1 downto 0)

out

Byte Count of TLP