Skip to content

olo_ft_private_fifo_stream

Back to Entity List

Status Information

VHDL Source: olo_ft_private_fifo_stream

Internal building block. This entity is the ECC-protected data buffer of the ft AXI masters olo_ft_axi_master_simple and olo_ft_axi_master_full. It is not intended for direct end-user instantiation; use olo_ft_fifo_sync instead.

Description

This component implements an ECC-protected synchronous FIFO with stream interfaces only: it has the data path of olo_ft_fifo_sync but no fill levels and no status flags, and its ECC decoder can be pipelined.

A pipelined decoder holds beats that the levels of the internal FIFO do not count. That is why olo_ft_fifo_sync, which exposes the levels and flags of olo_base_fifo_sync, keeps a combinational decoder. A consumer that uses only the handshakes, such as the ft AXI masters, sees the pipeline only as additional latency.

Generics

Name Type Default Description
Width_g positive - Number of data bits per FIFO entry. The internal FIFO is wider to accommodate ECC parity bits.
Depth_g positive - Number of entries of the internal FIFO
EccPipeline_g natural 0 Number of register stages in the ECC decoder (range 0..2), as in olo_ft_ram_sdp:
0 = combinational decode.
1 = one register at the decoder output.
2 = one register between the syndrome and the correction, plus the output register.
RamStyle_g string "auto" Controls the RAM implementation resource
RamBehavior_g string "RBW" Controls the RAM behavior. "RBW" or "WBR"

Interfaces

Clock and Reset

Name In/Out Length Default Description
Clk in 1 - Clock
Rst in 1 - Reset (high-active, synchronous to Clk). Empties the FIFO and the decoder pipeline and clears the error-injection latch.

Input Data

Name In/Out Length Default Description
In_Data in Width_g - Input data
In_Valid in 1 '1' Input valid (AXI-S handshaking)
In_Ready out 1 N/A Input ready (AXI-S handshaking)

Output Data

Name In/Out Length Default Description
Out_Data out Width_g N/A Output data (corrected if a single-bit error was detected)
Out_Valid out 1 N/A Output valid (AXI-S handshaking)
Out_Ready in 1 '1' Output ready (AXI-S handshaking)
Out_EccSec out 1 N/A Single error corrected flag. Time-aligned with Out_Data.
Out_EccDed out 1 N/A Double error detected flag. Read data is unreliable. Time-aligned with Out_Data.

Error Injection (optional)

Identical to olo_ft_fifo_sync: the pattern is latched by In_ErrInj_Valid and applied to the next accepted input beat.

Name In/Out Length Default Description
In_ErrInj_BitFlip in eccCodewordWidth(Width_g) all 0 Codeword-wide flip pattern. Popcount 1 = SEC-correctable, popcount 2 = DED-detectable.
In_ErrInj_Valid in 1 '0' Strobe that latches In_ErrInj_BitFlip. The latched pattern is applied to the next accepted input beat.

Detailed Description

Architecture

The entity is composed of the three entities of olo_ft_fifo_sync:

  1. olo_ft_ecc_encode, combinational, encodes each accepted input beat.
  2. olo_base_fifo_sync stores the codeword.
  3. olo_ft_ecc_decode with Pipeline_g = EccPipeline_g decodes and corrects each beat. Its pipeline stages have valid/ready handshakes, so the FIFO passes one beat per clock cycle for every value of EccPipeline_g, and the ECC flags travel with their beat.

One beat per clock cycle needs Depth_g >= 3: olo_base_fifo_sync sees a read on its write side one clock cycle late, so with 2 entries it takes at most 2 beats in 3 clock cycles.

The output side follows the output of olo_base_fifo_sync by EccPipeline_g clock cycles. The pipeline stages hold beats in addition to the Depth_g entries of the internal FIFO.

The ECC decode after the RAM output is the critical path of the entity. EccPipeline_g = 2 splits it into the syndrome and the correction; the encoder, combinational before the RAM, is about as deep as the syndrome stage.

ECC Overhead, Error Injection and Status Flags

See the corresponding sections in Open Logic Fault-Tolerance Principles: