Parameterized Macro: AXI Memory Mapped (AXI Lite) FIFO
- MACRO_GROUP: XPM
- MACRO_SUBGROUP: XPM_FIFO
Introduction
This macro is used to instantiate AXI Memory Mapped (AXI Lite) FIFO.
AXI4 FIFO is derived from the XPM_FIFO_SYNC and XPM_FIFO_ASYNC. The AXI interface protocol uses a two-way valid and ready handshake mechanism. The information source uses the valid signal to show when valid data or control information is available on the channel. The information destination uses the ready signal to show when it can accept the data.
Timing Diagrams
In the timing diagram above, the information source generates the valid signal to indicate when the data is available. The destination generates the ready signal to indicate that it can accept the data, and transfer occurs only when both the valid and ready signals are High.
Because AXI4 FIFO is derived from XPM_FIFO_SYNC and XPM_FIFO_ASYNC, much of the behavior is common between them. The ready signal is generated based on availability of space in the FIFO and is held high to allow writes to the FIFO. The ready signal is pulled Low only when there is no space in the FIFO left to perform additional writes. The valid signal is generated based on availability of data in the FIFO and is held High to allow reads to be performed from the FIFO. The valid signal is pulled Low only when there is no data available to be read from the FIFO. The information signals are mapped to the din and dout bus of XPM_FIFO_SYNC and XPM_FIFO_ASYNC. The width of the AXI4-Full FIFO is determined by concatenating all of the information signals of the AXI interface. The information signals include all AXI signals except for the valid and ready handshake signals.
AXI4 FIFO operates only in First-Word Fall-Through mode. The First-Word Fall-Through (FWFT) feature provides the ability to look ahead to the next word available from the FIFO without issuing a read operation. When data is available in the FIFO, the first word falls through the FIFO and appears automatically on the output data bus.
Port Descriptions
Port | Direction | Width | Domain | Sense | Handling if Unused | Function |
---|---|---|---|---|---|---|
dbiterr_rdch | Output | 1 | m_aclk | LEVEL_HIGH | DoNotCare | Double Bit Error- Indicates that the ECC decoder detected a double-bit error and data in the FIFO core is corrupted. |
dbiterr_wdch | Output | 1 | m_aclk | LEVEL_HIGH | DoNotCare | Double Bit Error- Indicates that the ECC decoder detected a double-bit error and data in the FIFO core is corrupted. |
injectdbiterr_rdch | Input | 1 | s_aclk | LEVEL_HIGH | 0 | Double Bit Error Injection- Injects a double bit error if the ECC feature is used. |
injectdbiterr_wdch | Input | 1 | s_aclk | LEVEL_HIGH | 0 | Double Bit Error Injection- Injects a double bit error if the ECC feature is used. |
injectsbiterr_rdch | Input | 1 | s_aclk | LEVEL_HIGH | 0 | Single Bit Error Injection- Injects a single bit error if the ECC feature is used. |
injectsbiterr_wdch | Input | 1 | s_aclk | LEVEL_HIGH | 0 | Single Bit Error Injection- Injects a single bit error if the ECC feature is used. |
m_aclk | Input | 1 | NA | EDGE_RISING | Active | Master Interface Clock: All signals on master interface are sampled on the rising edge of this clock. |
m_axi_araddr | Output | AXI_ADDR_WIDTH | m_aclk | NA | Active | ARADDR: The read address bus gives the initial address of a read burst transaction. Only the start address of the burst is provided and the control signals that are issued alongside the address detail how the address is calculated for the remaining transfers in the burst. |
m_axi_arprot | Output | 1 | m_aclk | NA | Active | ARPROT: Indicates the normal, privileged, or secure protection level of the transaction and whether the transaction is a data access or an instruction access. |
m_axi_arready | Input | 1 | m_aclk | LEVEL_HIGH | Active | ARREADY: Indicates that the master can accept a transfer in the current cycle. |
m_axi_arvalid | Output | 1 | m_aclk | LEVEL_HIGH | Active | ARVALID: Indicates that the master is driving a valid transfer.
|
m_axi_awaddr | Output | AXI_ADDR_WIDTH | m_aclk | NA | Active | AWADDR: The write address bus gives the address of the first transfer in a write burst transaction. The associated control signals are used to determine the addresses of the remaining transfers in the burst. |
m_axi_awprot | Output | 1 | m_aclk | NA | Active | AWPROT: Indicates the normal, privileged, or secure protection level of the transaction and whether the transaction is a data access or an instruction access. |
m_axi_awready | Input | 1 | m_aclk | LEVEL_HIGH | Active | AWREADY: Indicates that the master can accept a transfer in the current cycle. |
m_axi_awvalid | Output | 1 | m_aclk | LEVEL_HIGH | Active | AWVALID: Indicates that the master is driving a valid transfer.
|
m_axi_bready | Output | 1 | m_aclk | LEVEL_HIGH | Active | BREADY: Indicates that the master can accept a transfer in the current cycle. |
m_axi_bresp | Input | 1 | m_aclk | NA | Active | BRESP: Write Response. Indicates the status of the write transaction. The allowable responses are OKAY, EXOKAY, SLVERR, and DECERR. |
m_axi_bvalid | Input | 1 | m_aclk | LEVEL_HIGH | Active | BVALID: Indicates that the master is driving a valid transfer.
|
m_axi_rdata | Input | AXI_DATA_WIDTH | m_aclk | NA | Active | RDATA: The primary payload that is used to provide the data that is passing across the interface. The width of the data payload is an integer number of bytes. |
m_axi_rready | Output | 1 | m_aclk | LEVEL_HIGH | Active | RREADY: Indicates that the master can accept a transfer in the current cycle. |
m_axi_rresp | Input | 1 | m_aclk | NA | Active | RRESP: Indicates the status of the read transfer. The allowable responses are OKAY, EXOKAY, SLVERR, and DECERR. |
m_axi_rvalid | Input | 1 | m_aclk | LEVEL_HIGH | Active | RVALID: Indicates that the master is driving a valid transfer.
|
m_axi_wdata | Output | AXI_DATA_WIDTH | m_aclk | NA | Active | WDATA: The primary payload that is used to provide the data that is passing across the interface. The width of the data payload is an integer number of bytes. |
m_axi_wready | Input | 1 | m_aclk | LEVEL_HIGH | Active | WREADY: Indicates that the master can accept a transfer in the current cycle. |
m_axi_wstrb | Output | AXI_DATA_WIDTH / 8 | m_aclk | NA | Active | WSTRB: The byte qualifier that indicates whether the content of the associated byte of TDATA is processed
as a data byte or a position byte. For a 64-bit DATA, bit 0 corresponds to the least significant byte on
DATA, and bit 0 corresponds to the least significant byte on DATA, and bit 7 corresponds to the most significant
byte. For example:
|
m_axi_wvalid | Output | 1 | m_aclk | LEVEL_HIGH | Active | WVALID: Indicates that the master is driving a valid transfer.
|
prog_empty_rdch | Output | 1 | m_aclk | LEVEL_HIGH | DoNotCare |
Programmable Empty- This signal is asserted when the number of words in the Read Data Channel FIFO is less than or equal to the programmable empty threshold value. It is de-asserted when the number of words in the Read Data Channel FIFO exceeds the programmable empty threshold value. |
prog_empty_wdch | Output | 1 | m_aclk | LEVEL_HIGH | DoNotCare |
Programmable Empty- This signal is asserted when the number of words in the Write Data Channel FIFO is less than or equal to the programmable empty threshold value. It is de-asserted when the number of words in the Write Data Channel FIFO exceeds the programmable empty threshold value. |
prog_full_rdch | Output | 1 | s_aclk | LEVEL_HIGH | DoNotCare |
Programmable Full: This signal is asserted when the number of words in the Read Data Channel FIFO is greater than or equal to the programmable full threshold value. It is de-asserted when the number of words in the Read Data Channel FIFO is less than the programmable full threshold value. |
prog_full_wdch | Output | 1 | s_aclk | LEVEL_HIGH | DoNotCare |
Programmable Full: This signal is asserted when the number of words in the Write Data Channel FIFO is greater than or equal to the programmable full threshold value. It is de-asserted when the number of words in the Write Data Channel FIFO is less than the programmable full threshold value. |
rd_data_count_rdch | Output | RD_DATA_COUNT_WIDTH_RDCH | m_aclk | NA | DoNotCare | Read Data Count- This bus indicates the number of words available for reading in the Read Data Channel FIFO. |
rd_data_count_wdch | Output | RD_DATA_COUNT_WIDTH_WDCH | m_aclk | NA | DoNotCare | Read Data Count- This bus indicates the number of words available for reading in the Write Data Channel FIFO. |
s_aclk | Input | 1 | NA | EDGE_RISING | Active | Slave Interface Clock: All signals on slave interface are sampled on the rising edge of this clock. |
s_aresetn | Input | 1 | NA | LEVEL_LOW | Active | Active low asynchronous reset. |
s_axi_araddr | Input | AXI_ADDR_WIDTH | s_aclk | NA | Active | ARADDR: The read address bus gives the initial address of a read burst transaction. Only the start address of the burst is provided and the control signals that are issued alongside the address detail how the address is calculated for the remaining transfers in the burst. |
s_axi_arprot | Input | 1 | s_aclk | NA | Active | ARPROT: Indicates the normal, privileged, or secure protection level of the transaction and whether the transaction is a data access or an instruction access. |
s_axi_arready | Output | 1 | s_aclk | LEVEL_HIGH | Active | ARREADY: Indicates that the slave can accept a transfer in the current cycle. |
s_axi_arvalid | Input | 1 | s_aclk | LEVEL_HIGH | Active | ARVALID: Indicates that the master is driving a valid transfer.
|
s_axi_awaddr | Input | AXI_ADDR_WIDTH | s_aclk | NA | Active | AWADDR: The write address bus gives the address of the first transfer in a write burst transaction. The associated control signals are used to determine the addresses of the remaining transfers in the burst. |
s_axi_awprot | Input | 1 | s_aclk | LEVEL_HIGH | Active | AWPROT: Indicates the normal, privileged, or secure protection level of the transaction and whether the transaction is a data access or an instruction access. |
s_axi_awready | Output | 1 | s_aclk | LEVEL_HIGH | Active | AWREADY: Indicates that the slave can accept a transfer in the current cycle. |
s_axi_awvalid | Input | 1 | s_aclk | LEVEL_HIGH | Active | AWVALID: Indicates that the master is driving a valid transfer.
|
s_axi_bready | Input | 1 | s_aclk | LEVEL_HIGH | Active | BREADY: Indicates that the slave can accept a transfer in the current cycle. |
s_axi_bresp | Output | 1 | s_aclk | NA | Active | BRESP: Write Response. Indicates the status of the write transaction. The allowable responses are OKAY, EXOKAY, SLVERR, and DECERR. |
s_axi_bvalid | Output | 1 | s_aclk | LEVEL_HIGH | Active | BVALID: Indicates that the master is driving a valid transfer.
|
s_axi_rdata | Output | AXI_DATA_WIDTH | s_aclk | NA | Active | RDATA: The primary payload that is used to provide the data that is passing across the interface. The width of the data payload is an integer number of bytes. |
s_axi_rready | Input | 1 | s_aclk | LEVEL_HIGH | Active | RREADY: Indicates that the slave can accept a transfer in the current cycle. |
s_axi_rresp | Output | 1 | s_aclk | NA | Active | RRESP: Indicates the status of the read transfer. The allowable responses are OKAY, EXOKAY, SLVERR, and DECERR. |
s_axi_rvalid | Output | 1 | s_aclk | LEVEL_HIGH | Active | RVALID: Indicates that the master is driving a valid transfer.
|
s_axi_wdata | Input | AXI_DATA_WIDTH | s_aclk | NA | Active | WDATA: The primary payload that is used to provide the data that is passing across the interface. The width of the data payload is an integer number of bytes. |
s_axi_wready | Output | 1 | s_aclk | LEVEL_HIGH | Active | WREADY: Indicates that the slave can accept a transfer in the current cycle. |
s_axi_wstrb | Input | AXI_DATA_WIDTH / 8 | s_aclk | NA | Active | WSTRB: The byte qualifier that indicates whether the content of the associated byte of TDATA is processed
as a data byte or a position byte. For a 64-bit DATA, bit 0 corresponds to the least significant byte on
DATA, and bit 0 corresponds to the least significant byte on DATA, and bit 7 corresponds to the most significant
byte. For example:
|
s_axi_wvalid | Input | 1 | s_aclk | LEVEL_HIGH | Active | WVALID: Indicates that the master is driving a valid transfer.
|
sbiterr_rdch | Output | 1 | m_aclk | LEVEL_HIGH | DoNotCare | Single Bit Error- Indicates that the ECC decoder detected and fixed a single-bit error. |
sbiterr_wdch | Output | 1 | m_aclk | LEVEL_HIGH | DoNotCare | Single Bit Error- Indicates that the ECC decoder detected and fixed a single-bit error. |
wr_data_count_rdch | Output | WR_DATA_COUNT_WIDTH_RDCH | s_aclk | NA | DoNotCare | Write Data Count: This bus indicates the number of words written into the Read Data Channel FIFO. |
wr_data_count_wdch | Output | WR_DATA_COUNT_WIDTH_WDCH | s_aclk | NA | DoNotCare | Write Data Count: This bus indicates the number of words written into the Write Data Channel FIFO. |
Design Entry Method
Instantiation | Yes |
Inference | No |
IP and IP Integrator Catalog | No |
Available Attributes
Attribute | Type | Allowed Values | Default | Description |
---|---|---|---|---|
AXI_ADDR_WIDTH | DECIMAL | 1 to 64 | 32 | Defines the width of the ADDR ports, s_axi_araddr, s_axi_awaddr, m_axi_araddr and m_axi_awaddr |
AXI_DATA_WIDTH | DECIMAL | 8 to 1024 | 32 | Defines the width of the DATA ports, s_axi_rdata, s_axi_wdata, m_axi_rdata and m_axi_wdata NOTE: The maximum FIFO size (width x depth) is limited to 150-Megabits. |
CASCADE_HEIGHT | DECIMAL | 0 to 64 | 0 |
0- No Cascade Height, Allow Vivado Synthesis to choose. 1 or more - Vivado Synthesis sets the specified value as Cascade Height. |
CDC_SYNC_STAGES | DECIMAL | 2 to 8 | 2 |
Specifies the number of synchronization stages on the CDC path. Applicable only if CLOCKING_MODE = "independent_clock" |
CLOCKING_MODE | STRING | "common_clock", "independent_clock" | "common_clock" | Designate whether AXI Memory Mapped FIFO is clocked with a common clock or with independent clocks-
|
ECC_MODE_RDCH | STRING | "no_ecc", "en_ecc" | "no_ecc" |
|
ECC_MODE_WDCH | STRING | "no_ecc", "en_ecc" | "no_ecc" |
|
EN_RESET_SYNCHRONIZER | DECIMAL | 0 to 1 | 1 |
0- Disable synchronizing stages in the reset path. 1- Enable synchronizing stages in the reset path. Based on CLOCKING_MODE number of synchronizing stages will differ |
FIFO_DEPTH_RACH | DECIMAL | 16 to 4194304 | 2048 | Defines the AXI Memory Mapped FIFO Write Depth, must be power of two NOTE: The maximum FIFO size (width x depth) is limited to 150-Megabits. |
FIFO_DEPTH_RDCH | DECIMAL | 16 to 4194304 | 2048 | Defines the AXI Memory Mapped FIFO Write Depth, must be power of two NOTE: The maximum FIFO size (width x depth) is limited to 150-Megabits. |
FIFO_DEPTH_WACH | DECIMAL | 16 to 4194304 | 2048 | Defines the AXI Memory Mapped FIFO Write Depth, must be power of two NOTE: The maximum FIFO size (width x depth) is limited to 150-Megabits. |
FIFO_DEPTH_WDCH | DECIMAL | 16 to 4194304 | 2048 | Defines the AXI Memory Mapped FIFO Write Depth, must be power of two NOTE: The maximum FIFO size (width x depth) is limited to 150-Megabits. |
FIFO_DEPTH_WRCH | DECIMAL | 16 to 4194304 | 2048 | Defines the AXI Memory Mapped FIFO Write Depth, must be power of two NOTE: The maximum FIFO size (width x depth) is limited to 150-Megabits. |
FIFO_MEMORY_TYPE_RACH | STRING | "auto", "block", "distributed", "ultra" | "auto" | Designate the fifo memory primitive (resource type) to use-
|
FIFO_MEMORY_TYPE_RDCH | STRING | "auto", "block", "distributed", "ultra" | "auto" | Designate the fifo memory primitive (resource type) to use-
|
FIFO_MEMORY_TYPE_WACH | STRING | "auto", "block", "distributed", "ultra" | "auto" | Designate the fifo memory primitive (resource type) to use-
|
FIFO_MEMORY_TYPE_WDCH | STRING | "auto", "block", "distributed", "ultra" | "auto" | Designate the fifo memory primitive (resource type) to use-
|
FIFO_MEMORY_TYPE_WRCH | STRING | "auto", "block", "distributed", "ultra" | "auto" | Designate the fifo memory primitive (resource type) to use-
|
PROG_EMPTY_THRESH_RDCH | DECIMAL | 5 to 4194301 | 10 |
Specifies the minimum number of read words in the FIFO at or below which prog_empty is asserted.
|
PROG_EMPTY_THRESH_WDCH | DECIMAL | 5 to 4194301 | 10 |
Specifies the minimum number of read words in the FIFO at or below which prog_empty is asserted.
|
PROG_FULL_THRESH_RDCH | DECIMAL | 5 to 4194301 | 10 |
Specifies the maximum number of write words in the FIFO at or above which prog_full is asserted.
|
PROG_FULL_THRESH_WDCH | DECIMAL | 5 to 4194301 | 10 |
Specifies the maximum number of write words in the FIFO at or above which prog_full is asserted.
|
RD_DATA_COUNT_WIDTH_RDCH | DECIMAL | 1 to 23 | 1 | Specifies the width of rd_data_count_rdch. To reflect the correct value, the width should be log2(FIFO_DEPTH)+1. |
RD_DATA_COUNT_WIDTH_WDCH | DECIMAL | 1 to 23 | 1 | Specifies the width of rd_data_count_wdch. To reflect the correct value, the width should be log2(FIFO_DEPTH)+1. |
SIM_ASSERT_CHK | DECIMAL | 0 to 1 | 0 |
0- Disable simulation message reporting. Messages related to potential misuse will not be reported. 1- Enable simulation message reporting. Messages related to potential misuse will be reported. |
USE_ADV_FEATURES_RDCH | STRING | String | "1000" |
Enables rd_data_count_rdch, prog_empty_rdch, wr_data_count_rdch, prog_full_rdch sideband signals.
|
USE_ADV_FEATURES_WDCH | STRING | String | "1000" |
Enables rd_data_count_wdch, prog_empty_wdch, wr_data_count_wdch, prog_full_wdch sideband signals.
|
WR_DATA_COUNT_WIDTH_RDCH | DECIMAL | 1 to 23 | 1 | Specifies the width of wr_data_count_rdch. To reflect the correct value, the width should be log2(FIFO_DEPTH)+1. |
WR_DATA_COUNT_WIDTH_WDCH | DECIMAL | 1 to 23 | 1 | Specifies the width of wr_data_count_wdch. To reflect the correct value, the width should be log2(FIFO_DEPTH)+1. |
VHDL Instantiation Template
Library xpm;
use xpm.vcomponents.all;
-- xpm_fifo_axil: AXI Memory Mapped (AXI Lite) FIFO
-- Xilinx Parameterized Macro, version 2024.1
xpm_fifo_axil_inst : xpm_fifo_axil
generic map (
AXI_ADDR_WIDTH => 32, -- DECIMAL
AXI_DATA_WIDTH => 32, -- DECIMAL
CASCADE_HEIGHT => 0, -- DECIMAL
CDC_SYNC_STAGES => 2, -- DECIMAL
CLOCKING_MODE => "common_clock", -- String
ECC_MODE_RDCH => "no_ecc", -- String
ECC_MODE_WDCH => "no_ecc", -- String
EN_RESET_SYNCHRONIZER => 1, -- DECIMAL; 0=disable synchronizer in the reset path, 1=enable
-- synchronizer in the reset path
EN_SIM_ASSERT_ERR => "warning", -- String
FIFO_DEPTH_RACH => 2048, -- DECIMAL
FIFO_DEPTH_RDCH => 2048, -- DECIMAL
FIFO_DEPTH_WACH => 2048, -- DECIMAL
FIFO_DEPTH_WDCH => 2048, -- DECIMAL
FIFO_DEPTH_WRCH => 2048, -- DECIMAL
FIFO_MEMORY_TYPE_RACH => "auto", -- String
FIFO_MEMORY_TYPE_RDCH => "auto", -- String
FIFO_MEMORY_TYPE_WACH => "auto", -- String
FIFO_MEMORY_TYPE_WDCH => "auto", -- String
FIFO_MEMORY_TYPE_WRCH => "auto", -- String
PROG_EMPTY_THRESH_RDCH => 10, -- DECIMAL
PROG_EMPTY_THRESH_WDCH => 10, -- DECIMAL
PROG_FULL_THRESH_RDCH => 10, -- DECIMAL
PROG_FULL_THRESH_WDCH => 10, -- DECIMAL
RD_DATA_COUNT_WIDTH_RDCH => 1, -- DECIMAL
RD_DATA_COUNT_WIDTH_WDCH => 1, -- DECIMAL
SIM_ASSERT_CHK => 0, -- DECIMAL; 0=disable simulation messages, 1=enable simulation messages
USE_ADV_FEATURES_RDCH => "1000", -- String
USE_ADV_FEATURES_WDCH => "1000", -- String
WR_DATA_COUNT_WIDTH_RDCH => 1, -- DECIMAL
WR_DATA_COUNT_WIDTH_WDCH => 1 -- DECIMAL
)
port map (
dbiterr_rdch => dbiterr_rdch, -- 1-bit output: Double Bit Error- Indicates that the ECC
-- decoder detected a double-bit error and data in the FIFO
-- core is corrupted.
dbiterr_wdch => dbiterr_wdch, -- 1-bit output: Double Bit Error- Indicates that the ECC
-- decoder detected a double-bit error and data in the FIFO
-- core is corrupted.
m_axi_araddr => m_axi_araddr, -- AXI_ADDR_WIDTH-bit output: ARADDR: The read address bus
-- gives the initial address of a read burst transaction. Only
-- the start address of the burst is provided and the control
-- signals that are issued alongside the address detail how the
-- address is calculated for the remaining transfers in the
-- burst.
m_axi_arprot => m_axi_arprot, -- 2-bit output: ARPROT: Indicates the normal, privileged, or
-- secure protection level of the transaction and whether the
-- transaction is a data access or an instruction access.
m_axi_arvalid => m_axi_arvalid, -- 1-bit output: ARVALID: Indicates that the master is driving
-- a valid transfer. A transfer takes place when both ARVALID
-- and ARREADY are asserted
m_axi_awaddr => m_axi_awaddr, -- AXI_ADDR_WIDTH-bit output: AWADDR: The write address bus
-- gives the address of the first transfer in a write burst
-- transaction. The associated control signals are used to
-- determine the addresses of the remaining transfers in the
-- burst.
m_axi_awprot => m_axi_awprot, -- 2-bit output: AWPROT: Indicates the normal, privileged, or
-- secure protection level of the transaction and whether the
-- transaction is a data access or an instruction access.
m_axi_awvalid => m_axi_awvalid, -- 1-bit output: AWVALID: Indicates that the master is driving
-- a valid transfer. A transfer takes place when both AWVALID
-- and AWREADY are asserted
m_axi_bready => m_axi_bready, -- 1-bit output: BREADY: Indicates that the master can accept a
-- transfer in the current cycle.
m_axi_rready => m_axi_rready, -- 1-bit output: RREADY: Indicates that the master can accept a
-- transfer in the current cycle.
m_axi_wdata => m_axi_wdata, -- AXI_DATA_WIDTH-bit output: WDATA: The primary payload that
-- is used to provide the data that is passing across the
-- interface. The width of the data payload is an integer
-- number of bytes.
m_axi_wstrb => m_axi_wstrb, -- AXI_DATA_WIDTH/8-bit output: WSTRB: The byte qualifier that
-- indicates whether the content of the associated byte of
-- TDATA is processed as a data byte or a position byte. For a
-- 64-bit DATA, bit 0 corresponds to the least significant byte
-- on DATA, and bit 0 corresponds to the least significant byte
-- on DATA, and bit 7 corresponds to the most significant byte.
-- For example: STROBE[0] = 1b, DATA[7:0] is valid STROBE[7] =
-- 0b, DATA[63:56] is not valid
m_axi_wvalid => m_axi_wvalid, -- 1-bit output: WVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both WVALID and
-- WREADY are asserted
prog_empty_rdch => prog_empty_rdch, -- 1-bit output: Programmable Empty- This signal is asserted
-- when the number of words in the Read Data Channel FIFO is
-- less than or equal to the programmable empty threshold
-- value. It is de-asserted when the number of words in the
-- Read Data Channel FIFO exceeds the programmable empty
-- threshold value.
prog_empty_wdch => prog_empty_wdch, -- 1-bit output: Programmable Empty- This signal is asserted
-- when the number of words in the Write Data Channel FIFO is
-- less than or equal to the programmable empty threshold
-- value. It is de-asserted when the number of words in the
-- Write Data Channel FIFO exceeds the programmable empty
-- threshold value.
prog_full_rdch => prog_full_rdch, -- 1-bit output: Programmable Full: This signal is asserted
-- when the number of words in the Read Data Channel FIFO is
-- greater than or equal to the programmable full threshold
-- value. It is de-asserted when the number of words in the
-- Read Data Channel FIFO is less than the programmable full
-- threshold value.
prog_full_wdch => prog_full_wdch, -- 1-bit output: Programmable Full: This signal is asserted
-- when the number of words in the Write Data Channel FIFO is
-- greater than or equal to the programmable full threshold
-- value. It is de-asserted when the number of words in the
-- Write Data Channel FIFO is less than the programmable full
-- threshold value.
rd_data_count_rdch => rd_data_count_rdch, -- RD_DATA_COUNT_WIDTH_RDCH-bit output: Read Data Count- This
-- bus indicates the number of words available for reading in
-- the Read Data Channel FIFO.
rd_data_count_wdch => rd_data_count_wdch, -- RD_DATA_COUNT_WIDTH_WDCH-bit output: Read Data Count- This
-- bus indicates the number of words available for reading in
-- the Write Data Channel FIFO.
s_axi_arready => s_axi_arready, -- 1-bit output: ARREADY: Indicates that the slave can accept a
-- transfer in the current cycle.
s_axi_awready => s_axi_awready, -- 1-bit output: AWREADY: Indicates that the slave can accept a
-- transfer in the current cycle.
s_axi_bresp => s_axi_bresp, -- 2-bit output: BRESP: Write Response. Indicates the status of
-- the write transaction. The allowable responses are OKAY,
-- EXOKAY, SLVERR, and DECERR.
s_axi_bvalid => s_axi_bvalid, -- 1-bit output: BVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both BVALID and
-- BREADY are asserted
s_axi_rdata => s_axi_rdata, -- AXI_DATA_WIDTH-bit output: RDATA: The primary payload that
-- is used to provide the data that is passing across the
-- interface. The width of the data payload is an integer
-- number of bytes.
s_axi_rresp => s_axi_rresp, -- 2-bit output: RRESP: Indicates the status of the read
-- transfer. The allowable responses are OKAY, EXOKAY, SLVERR,
-- and DECERR.
s_axi_rvalid => s_axi_rvalid, -- 1-bit output: RVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both RVALID and
-- RREADY are asserted
s_axi_wready => s_axi_wready, -- 1-bit output: WREADY: Indicates that the slave can accept a
-- transfer in the current cycle.
sbiterr_rdch => sbiterr_rdch, -- 1-bit output: Single Bit Error- Indicates that the ECC
-- decoder detected and fixed a single-bit error.
sbiterr_wdch => sbiterr_wdch, -- 1-bit output: Single Bit Error- Indicates that the ECC
-- decoder detected and fixed a single-bit error.
wr_data_count_rdch => wr_data_count_rdch, -- WR_DATA_COUNT_WIDTH_RDCH-bit output: Write Data Count: This
-- bus indicates the number of words written into the Read Data
-- Channel FIFO.
wr_data_count_wdch => wr_data_count_wdch, -- WR_DATA_COUNT_WIDTH_WDCH-bit output: Write Data Count: This
-- bus indicates the number of words written into the Write
-- Data Channel FIFO.
injectdbiterr_rdch => injectdbiterr_rdch, -- 1-bit input: Double Bit Error Injection- Injects a double
-- bit error if the ECC feature is used.
injectdbiterr_wdch => injectdbiterr_wdch, -- 1-bit input: Double Bit Error Injection- Injects a double
-- bit error if the ECC feature is used.
injectsbiterr_rdch => injectsbiterr_rdch, -- 1-bit input: Single Bit Error Injection- Injects a single
-- bit error if the ECC feature is used.
injectsbiterr_wdch => injectsbiterr_wdch, -- 1-bit input: Single Bit Error Injection- Injects a single
-- bit error if the ECC feature is used.
m_aclk => m_aclk, -- 1-bit input: Master Interface Clock: All signals on master
-- interface are sampled on the rising edge of this clock.
m_axi_arready => m_axi_arready, -- 1-bit input: ARREADY: Indicates that the master can accept a
-- transfer in the current cycle.
m_axi_awready => m_axi_awready, -- 1-bit input: AWREADY: Indicates that the master can accept a
-- transfer in the current cycle.
m_axi_bresp => m_axi_bresp, -- 2-bit input: BRESP: Write Response. Indicates the status of
-- the write transaction. The allowable responses are OKAY,
-- EXOKAY, SLVERR, and DECERR.
m_axi_bvalid => m_axi_bvalid, -- 1-bit input: BVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both BVALID and
-- BREADY are asserted
m_axi_rdata => m_axi_rdata, -- AXI_DATA_WIDTH-bit input: RDATA: The primary payload that is
-- used to provide the data that is passing across the
-- interface. The width of the data payload is an integer
-- number of bytes.
m_axi_rresp => m_axi_rresp, -- 2-bit input: RRESP: Indicates the status of the read
-- transfer. The allowable responses are OKAY, EXOKAY, SLVERR,
-- and DECERR.
m_axi_rvalid => m_axi_rvalid, -- 1-bit input: RVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both RVALID and
-- RREADY are asserted
m_axi_wready => m_axi_wready, -- 1-bit input: WREADY: Indicates that the master can accept a
-- transfer in the current cycle.
s_aclk => s_aclk, -- 1-bit input: Slave Interface Clock: All signals on slave
-- interface are sampled on the rising edge of this clock.
s_aresetn => s_aresetn, -- 1-bit input: Active low asynchronous reset.
s_axi_araddr => s_axi_araddr, -- AXI_ADDR_WIDTH-bit input: ARADDR: The read address bus gives
-- the initial address of a read burst transaction. Only the
-- start address of the burst is provided and the control
-- signals that are issued alongside the address detail how the
-- address is calculated for the remaining transfers in the
-- burst.
s_axi_arprot => s_axi_arprot, -- 2-bit input: ARPROT: Indicates the normal, privileged, or
-- secure protection level of the transaction and whether the
-- transaction is a data access or an instruction access.
s_axi_arvalid => s_axi_arvalid, -- 1-bit input: ARVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both ARVALID and
-- ARREADY are asserted
s_axi_awaddr => s_axi_awaddr, -- AXI_ADDR_WIDTH-bit input: AWADDR: The write address bus
-- gives the address of the first transfer in a write burst
-- transaction. The associated control signals are used to
-- determine the addresses of the remaining transfers in the
-- burst.
s_axi_awprot => s_axi_awprot, -- 2-bit input: AWPROT: Indicates the normal, privileged, or
-- secure protection level of the transaction and whether the
-- transaction is a data access or an instruction access.
s_axi_awvalid => s_axi_awvalid, -- 1-bit input: AWVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both AWVALID and
-- AWREADY are asserted
s_axi_bready => s_axi_bready, -- 1-bit input: BREADY: Indicates that the slave can accept a
-- transfer in the current cycle.
s_axi_rready => s_axi_rready, -- 1-bit input: RREADY: Indicates that the slave can accept a
-- transfer in the current cycle.
s_axi_wdata => s_axi_wdata, -- AXI_DATA_WIDTH-bit input: WDATA: The primary payload that is
-- used to provide the data that is passing across the
-- interface. The width of the data payload is an integer
-- number of bytes.
s_axi_wstrb => s_axi_wstrb, -- AXI_DATA_WIDTH/8-bit input: WSTRB: The byte qualifier that
-- indicates whether the content of the associated byte of
-- TDATA is processed as a data byte or a position byte. For a
-- 64-bit DATA, bit 0 corresponds to the least significant byte
-- on DATA, and bit 0 corresponds to the least significant byte
-- on DATA, and bit 7 corresponds to the most significant byte.
-- For example: STROBE[0] = 1b, DATA[7:0] is valid STROBE[7] =
-- 0b, DATA[63:56] is not valid
s_axi_wvalid => s_axi_wvalid -- 1-bit input: WVALID: Indicates that the master is driving a
-- valid transfer. A transfer takes place when both WVALID and
-- WREADY are asserted
);
-- End of xpm_fifo_axil_inst instantiation
Verilog Instantiation Template
// xpm_fifo_axil: AXI Memory Mapped (AXI Lite) FIFO
// Xilinx Parameterized Macro, version 2024.1
xpm_fifo_axil #(
.AXI_ADDR_WIDTH(32), // DECIMAL
.AXI_DATA_WIDTH(32), // DECIMAL
.CASCADE_HEIGHT(0), // DECIMAL
.CDC_SYNC_STAGES(2), // DECIMAL
.CLOCKING_MODE("common_clock"), // String
.ECC_MODE_RDCH("no_ecc"), // String
.ECC_MODE_WDCH("no_ecc"), // String
.EN_RESET_SYNCHRONIZER(1), // DECIMAL; 0=disable synchronizer in the reset path, 1=enable
// synchronizer in the reset path
.EN_SIM_ASSERT_ERR("warning"), // String
.FIFO_DEPTH_RACH(2048), // DECIMAL
.FIFO_DEPTH_RDCH(2048), // DECIMAL
.FIFO_DEPTH_WACH(2048), // DECIMAL
.FIFO_DEPTH_WDCH(2048), // DECIMAL
.FIFO_DEPTH_WRCH(2048), // DECIMAL
.FIFO_MEMORY_TYPE_RACH("auto"), // String
.FIFO_MEMORY_TYPE_RDCH("auto"), // String
.FIFO_MEMORY_TYPE_WACH("auto"), // String
.FIFO_MEMORY_TYPE_WDCH("auto"), // String
.FIFO_MEMORY_TYPE_WRCH("auto"), // String
.PROG_EMPTY_THRESH_RDCH(10), // DECIMAL
.PROG_EMPTY_THRESH_WDCH(10), // DECIMAL
.PROG_FULL_THRESH_RDCH(10), // DECIMAL
.PROG_FULL_THRESH_WDCH(10), // DECIMAL
.RD_DATA_COUNT_WIDTH_RDCH(1), // DECIMAL
.RD_DATA_COUNT_WIDTH_WDCH(1), // DECIMAL
.SIM_ASSERT_CHK(0), // DECIMAL; 0=disable simulation messages, 1=enable simulation messages
.USE_ADV_FEATURES_RDCH("1000"), // String
.USE_ADV_FEATURES_WDCH("1000"), // String
.WR_DATA_COUNT_WIDTH_RDCH(1), // DECIMAL
.WR_DATA_COUNT_WIDTH_WDCH(1) // DECIMAL
)
xpm_fifo_axil_inst (
.dbiterr_rdch(dbiterr_rdch), // 1-bit output: Double Bit Error- Indicates that the ECC
// decoder detected a double-bit error and data in the FIFO core
// is corrupted.
.dbiterr_wdch(dbiterr_wdch), // 1-bit output: Double Bit Error- Indicates that the ECC
// decoder detected a double-bit error and data in the FIFO core
// is corrupted.
.m_axi_araddr(m_axi_araddr), // AXI_ADDR_WIDTH-bit output: ARADDR: The read address bus gives
// the initial address of a read burst transaction. Only the
// start address of the burst is provided and the control
// signals that are issued alongside the address detail how the
// address is calculated for the remaining transfers in the
// burst.
.m_axi_arprot(m_axi_arprot), // 2-bit output: ARPROT: Indicates the normal, privileged, or
// secure protection level of the transaction and whether the
// transaction is a data access or an instruction access.
.m_axi_arvalid(m_axi_arvalid), // 1-bit output: ARVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both ARVALID and
// ARREADY are asserted
.m_axi_awaddr(m_axi_awaddr), // AXI_ADDR_WIDTH-bit output: AWADDR: The write address bus
// gives the address of the first transfer in a write burst
// transaction. The associated control signals are used to
// determine the addresses of the remaining transfers in the
// burst.
.m_axi_awprot(m_axi_awprot), // 2-bit output: AWPROT: Indicates the normal, privileged, or
// secure protection level of the transaction and whether the
// transaction is a data access or an instruction access.
.m_axi_awvalid(m_axi_awvalid), // 1-bit output: AWVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both AWVALID and
// AWREADY are asserted
.m_axi_bready(m_axi_bready), // 1-bit output: BREADY: Indicates that the master can accept a
// transfer in the current cycle.
.m_axi_rready(m_axi_rready), // 1-bit output: RREADY: Indicates that the master can accept a
// transfer in the current cycle.
.m_axi_wdata(m_axi_wdata), // AXI_DATA_WIDTH-bit output: WDATA: The primary payload that is
// used to provide the data that is passing across the
// interface. The width of the data payload is an integer number
// of bytes.
.m_axi_wstrb(m_axi_wstrb), // AXI_DATA_WIDTH/8-bit output: WSTRB: The byte qualifier that
// indicates whether the content of the associated byte of TDATA
// is processed as a data byte or a position byte. For a 64-bit
// DATA, bit 0 corresponds to the least significant byte on
// DATA, and bit 0 corresponds to the least significant byte on
// DATA, and bit 7 corresponds to the most significant byte. For
// example: STROBE[0] = 1b, DATA[7:0] is valid STROBE[7] = 0b,
// DATA[63:56] is not valid
.m_axi_wvalid(m_axi_wvalid), // 1-bit output: WVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both WVALID and
// WREADY are asserted
.prog_empty_rdch(prog_empty_rdch), // 1-bit output: Programmable Empty- This signal is asserted
// when the number of words in the Read Data Channel FIFO is
// less than or equal to the programmable empty threshold value.
// It is de-asserted when the number of words in the Read Data
// Channel FIFO exceeds the programmable empty threshold value.
.prog_empty_wdch(prog_empty_wdch), // 1-bit output: Programmable Empty- This signal is asserted
// when the number of words in the Write Data Channel FIFO is
// less than or equal to the programmable empty threshold value.
// It is de-asserted when the number of words in the Write Data
// Channel FIFO exceeds the programmable empty threshold value.
.prog_full_rdch(prog_full_rdch), // 1-bit output: Programmable Full: This signal is asserted when
// the number of words in the Read Data Channel FIFO is greater
// than or equal to the programmable full threshold value. It is
// de-asserted when the number of words in the Read Data Channel
// FIFO is less than the programmable full threshold value.
.prog_full_wdch(prog_full_wdch), // 1-bit output: Programmable Full: This signal is asserted when
// the number of words in the Write Data Channel FIFO is greater
// than or equal to the programmable full threshold value. It is
// de-asserted when the number of words in the Write Data
// Channel FIFO is less than the programmable full threshold
// value.
.rd_data_count_rdch(rd_data_count_rdch), // RD_DATA_COUNT_WIDTH_RDCH-bit output: Read Data Count- This
// bus indicates the number of words available for reading in
// the Read Data Channel FIFO.
.rd_data_count_wdch(rd_data_count_wdch), // RD_DATA_COUNT_WIDTH_WDCH-bit output: Read Data Count- This
// bus indicates the number of words available for reading in
// the Write Data Channel FIFO.
.s_axi_arready(s_axi_arready), // 1-bit output: ARREADY: Indicates that the slave can accept a
// transfer in the current cycle.
.s_axi_awready(s_axi_awready), // 1-bit output: AWREADY: Indicates that the slave can accept a
// transfer in the current cycle.
.s_axi_bresp(s_axi_bresp), // 2-bit output: BRESP: Write Response. Indicates the status of
// the write transaction. The allowable responses are OKAY,
// EXOKAY, SLVERR, and DECERR.
.s_axi_bvalid(s_axi_bvalid), // 1-bit output: BVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both BVALID and
// BREADY are asserted
.s_axi_rdata(s_axi_rdata), // AXI_DATA_WIDTH-bit output: RDATA: The primary payload that is
// used to provide the data that is passing across the
// interface. The width of the data payload is an integer number
// of bytes.
.s_axi_rresp(s_axi_rresp), // 2-bit output: RRESP: Indicates the status of the read
// transfer. The allowable responses are OKAY, EXOKAY, SLVERR,
// and DECERR.
.s_axi_rvalid(s_axi_rvalid), // 1-bit output: RVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both RVALID and
// RREADY are asserted
.s_axi_wready(s_axi_wready), // 1-bit output: WREADY: Indicates that the slave can accept a
// transfer in the current cycle.
.sbiterr_rdch(sbiterr_rdch), // 1-bit output: Single Bit Error- Indicates that the ECC
// decoder detected and fixed a single-bit error.
.sbiterr_wdch(sbiterr_wdch), // 1-bit output: Single Bit Error- Indicates that the ECC
// decoder detected and fixed a single-bit error.
.wr_data_count_rdch(wr_data_count_rdch), // WR_DATA_COUNT_WIDTH_RDCH-bit output: Write Data Count: This
// bus indicates the number of words written into the Read Data
// Channel FIFO.
.wr_data_count_wdch(wr_data_count_wdch), // WR_DATA_COUNT_WIDTH_WDCH-bit output: Write Data Count: This
// bus indicates the number of words written into the Write Data
// Channel FIFO.
.injectdbiterr_rdch(injectdbiterr_rdch), // 1-bit input: Double Bit Error Injection- Injects a double bit
// error if the ECC feature is used.
.injectdbiterr_wdch(injectdbiterr_wdch), // 1-bit input: Double Bit Error Injection- Injects a double bit
// error if the ECC feature is used.
.injectsbiterr_rdch(injectsbiterr_rdch), // 1-bit input: Single Bit Error Injection- Injects a single bit
// error if the ECC feature is used.
.injectsbiterr_wdch(injectsbiterr_wdch), // 1-bit input: Single Bit Error Injection- Injects a single bit
// error if the ECC feature is used.
.m_aclk(m_aclk), // 1-bit input: Master Interface Clock: All signals on master
// interface are sampled on the rising edge of this clock.
.m_axi_arready(m_axi_arready), // 1-bit input: ARREADY: Indicates that the master can accept a
// transfer in the current cycle.
.m_axi_awready(m_axi_awready), // 1-bit input: AWREADY: Indicates that the master can accept a
// transfer in the current cycle.
.m_axi_bresp(m_axi_bresp), // 2-bit input: BRESP: Write Response. Indicates the status of
// the write transaction. The allowable responses are OKAY,
// EXOKAY, SLVERR, and DECERR.
.m_axi_bvalid(m_axi_bvalid), // 1-bit input: BVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both BVALID and
// BREADY are asserted
.m_axi_rdata(m_axi_rdata), // AXI_DATA_WIDTH-bit input: RDATA: The primary payload that is
// used to provide the data that is passing across the
// interface. The width of the data payload is an integer number
// of bytes.
.m_axi_rresp(m_axi_rresp), // 2-bit input: RRESP: Indicates the status of the read
// transfer. The allowable responses are OKAY, EXOKAY, SLVERR,
// and DECERR.
.m_axi_rvalid(m_axi_rvalid), // 1-bit input: RVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both RVALID and
// RREADY are asserted
.m_axi_wready(m_axi_wready), // 1-bit input: WREADY: Indicates that the master can accept a
// transfer in the current cycle.
.s_aclk(s_aclk), // 1-bit input: Slave Interface Clock: All signals on slave
// interface are sampled on the rising edge of this clock.
.s_aresetn(s_aresetn), // 1-bit input: Active low asynchronous reset.
.s_axi_araddr(s_axi_araddr), // AXI_ADDR_WIDTH-bit input: ARADDR: The read address bus gives
// the initial address of a read burst transaction. Only the
// start address of the burst is provided and the control
// signals that are issued alongside the address detail how the
// address is calculated for the remaining transfers in the
// burst.
.s_axi_arprot(s_axi_arprot), // 2-bit input: ARPROT: Indicates the normal, privileged, or
// secure protection level of the transaction and whether the
// transaction is a data access or an instruction access.
.s_axi_arvalid(s_axi_arvalid), // 1-bit input: ARVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both ARVALID and
// ARREADY are asserted
.s_axi_awaddr(s_axi_awaddr), // AXI_ADDR_WIDTH-bit input: AWADDR: The write address bus gives
// the address of the first transfer in a write burst
// transaction. The associated control signals are used to
// determine the addresses of the remaining transfers in the
// burst.
.s_axi_awprot(s_axi_awprot), // 2-bit input: AWPROT: Indicates the normal, privileged, or
// secure protection level of the transaction and whether the
// transaction is a data access or an instruction access.
.s_axi_awvalid(s_axi_awvalid), // 1-bit input: AWVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both AWVALID and
// AWREADY are asserted
.s_axi_bready(s_axi_bready), // 1-bit input: BREADY: Indicates that the slave can accept a
// transfer in the current cycle.
.s_axi_rready(s_axi_rready), // 1-bit input: RREADY: Indicates that the slave can accept a
// transfer in the current cycle.
.s_axi_wdata(s_axi_wdata), // AXI_DATA_WIDTH-bit input: WDATA: The primary payload that is
// used to provide the data that is passing across the
// interface. The width of the data payload is an integer number
// of bytes.
.s_axi_wstrb(s_axi_wstrb), // AXI_DATA_WIDTH/8-bit input: WSTRB: The byte qualifier that
// indicates whether the content of the associated byte of TDATA
// is processed as a data byte or a position byte. For a 64-bit
// DATA, bit 0 corresponds to the least significant byte on
// DATA, and bit 0 corresponds to the least significant byte on
// DATA, and bit 7 corresponds to the most significant byte. For
// example: STROBE[0] = 1b, DATA[7:0] is valid STROBE[7] = 0b,
// DATA[63:56] is not valid
.s_axi_wvalid(s_axi_wvalid) // 1-bit input: WVALID: Indicates that the master is driving a
// valid transfer. A transfer takes place when both WVALID and
// WREADY are asserted
);
// End of xpm_fifo_axil_inst instantiation
Related Information
- XPM FIFO Testbench File (xpm-fifo-testbench.zip)