Skip to content

olo_ft_axi_master_simple

Back to Entity List

Status Information

VHDL Source: olo_ft_axi_master_simple

Description

This component implements an ECC-protected AXI4 master with a simple interface. The interface and behavior match olo_axi_master_simple; commands, responses and the AXI interface pass through unchanged.

The bulk write/read data buffering happens in SECDED-protected olo_ft_private_fifo_stream instances (the data path of olo_ft_fifo_sync with an optional decoder pipeline) where the byte enables (write side) and the last flag (read side) are part of the ECC codeword, so no data or framing sideband is stored unprotected. The wrapped master runs with small internal FIFOs that only cover the burst-issuance window and are implemented in flip-flops by default, coverable by vendor TMR.

Generics

All generics of olo_axi_master_simple are provided with identical semantics. Differences and additions:

Name Type Default Description
DataFifoDepth_g positive 1024 Number of entries of the ECC-protected write/read data buffers (in words). The internal FIFOs of the wrapped master are sized separately (IntFifoDepth_g).
RamStyle_g string "auto" RAM style of the ECC-protected data buffers. Any medium is acceptable here because the content is a full ECC codeword.
IntFifoRamStyle_g string "registers" RAM style of the wrapped master's five internal FIFOs. The default "registers" keeps them in flip-flops so vendor TMR covers them. Overriding this to a RAM primitive re-introduces non-ECC-protected RAM state and is discouraged for fault-tolerant designs (see Fault-Tolerant Storage).
IntFifoDepth_g natural 0 Entries of the wrapped master's internal data FIFOs, in words. 0 selects 2 x AxiMaxBeats_g. Other values must be at least the larger of 2 and AxiMaxBeats_g (assertion): in high-latency mode the wrapped master requests a burst only when it fits. More entries keep more read bursts in flight (see Throughput) and cost flip-flops (see Fault-Tolerant Storage).
EccPipeline_g natural 0 Register stages in the ECC decoders of both data buffers (range 0..2), with the meaning of 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. The stages add EccPipeline_g clock cycles of latency to the read data and to the write data on their way to the wrapped master; the throughput stays one beat per clock cycle. See Clock Frequency.

Interfaces

The command (including CmdWr_Fixed and CmdRd_Fixed for FIXED bursts), response (including the response codes Wr_ErrorResp and Rd_ErrorResp), write-data, read-data and AXI interfaces are identical to olo_axi_master_simple. Additional ft ports:

Error Status

Name In/Out Length Default Description
Wr_EccSec out 1 N/A Single error corrected on a write beat leaving the write buffer towards the AXI bus. One-cycle pulse per affected beat, directly countable.
Wr_EccDed out 1 N/A Double error detected on a write beat leaving the write buffer. The (unreliable) decoder output is written to the bus. One-cycle pulse per affected beat, directly countable.
Rd_EccSec out 1 N/A Single error corrected flag of the read data buffer. Time-aligned with Rd_Data, qualify with the Rd_Valid/Rd_Ready handshake.
Rd_EccDed out 1 N/A Double error detected flag of the read data buffer. Read data is unreliable. Time-aligned with Rd_Data.

Error Injection (optional)

These ports drive the injection latches of the two internal olo_ft_private_fifo_stream instances. Leave them unconnected for normal operation; see Open Logic Fault-Tolerance Principles - Error Injection.

Name In/Out Length Default Description
Wr_ErrInj_BitFlip in eccCodewordWidth(AxiDataWidth_g + AxiDataWidth_g/8) all 0 Flip pattern for the {Be, Data} codeword of the write buffer.
Wr_ErrInj_Valid in 1 '0' Strobe, latched and applied to the next accepted write beat.
Rd_ErrInj_BitFlip in eccCodewordWidth(AxiDataWidth_g + 1) all 0 Flip pattern for the {Last, Data} codeword of the read buffer.
Rd_ErrInj_Valid in 1 '0' Strobe, latched and applied to the next beat entering the read buffer from the AXI side.

Detailed Description

Architecture

User Wr --{Be & Data codeword}--> ECC FIFO --> olo_axi_master_simple --> AXI AW/W/B
                                  write        internal FIFOs:
                                  buffer       IntFifoDepth_g (default 2 x AxiMaxBeats_g), registers

AXI AR/R --> olo_axi_master_simple --> ECC FIFO --{Last & Data codeword}--> User Rd
                                       read buffer

ECC FIFO: olo_ft_private_fifo_stream, DataFifoDepth_g entries
          (encoder, olo_base_fifo_sync, decoder with EccPipeline_g stages)

The wrapped master's user-side data interfaces are plain valid/ready streams, so the bulk buffering moves into the external ECC FIFOs without behavioral change: the write buffer streams beats into the small internal FIFO whenever it has room, and the high/low-latency command gating of the wrapped master (based on its internal FIFO level) works unchanged. On the read side, the external buffer continuously drains the internal FIFO, so read bursts flow at line rate; the data then waits ECC-protected until the user consumes it. Compared to the base entity, the only observable differences are a few clock cycles of buffer fall-through latency (plus EccPipeline_g per buffer) and that Wr_Ready/Rd_Valid reflect the external buffer state.

Throughput

In high-latency mode (CmdRd_LowLat = '0') the wrapped master requests a read burst only when its internal read FIFO can take the whole burst, so at most IntFifoDepth_g beats are requested and not yet passed to the read buffer. One beat per clock cycle needs these beats to cover the round trip of a burst. A lower bound for IntFifoDepth_g is the read latency of the memory (AR handshake to the first R beat, in clock cycles) plus two bursts, and AxiMaxOpenTransactions_g x AxiMaxBeats_g must be at least as large, because the open transactions bound the beats in flight as well. The AR path and the buffer handshakes add a few clock cycles, so in practice about one burst more is needed: with 4 beats per burst and a read latency of 8, the bound of 16 reaches 0.94 and 32 reaches 0.99 (table below). With the default of two bursts, short bursts or a long read latency reduce the read rate. Independently of the depth, the wrapped master issues at most one burst every 4 clock cycles, so bursts below 4 beats cannot reach one beat per clock cycle (see olo_axi_master_simple - Throughput).

Measured read rates, in beats per clock cycle: 32-bit bus, commands of 1 KB, AxiMaxOpenTransactions_g = 8, DataFifoDepth_g = 64, a slave that is always ready. The depth in brackets is the automatic value.

AxiMaxBeats_g Read latency IntFifoDepth_g Read rate
2 8 0 (4) 0.27
2 8 16 0.50
4 8 0 (8) 0.47
4 8 16 0.94
4 8 32 0.99
8 8 0 (16) 0.76
8 8 32 1.00
4 30 0 (8) 0.20
4 30 32 0.82
4 30 64 0.89
16 30 0 (32) 0.63
16 30 64 1.00

With 2 beats per burst the rate stays at 0.50 (one burst every 4 clock cycles); with a read latency of 30 and 4 beats per burst the 8 open transactions (32 beats) limit it. Writes with AxiMaxBeats_g = 4 reach 0.73 with the automatic depth and 0.99 with IntFifoDepth_g = 16. EccPipeline_g does not change the rate: writes at AxiMaxBeats_g = 4 reach 0.73 with EccPipeline_g = 0 and 2 alike; each stage adds one clock cycle of latency.

Clock Frequency

The ECC decode after the RAM output of each data buffer is the critical path of the entity, and it grows with the data width: the syndrome is a parity tree over the whole codeword and its result fans out to every data bit. EccPipeline_g = 1 registers the decoder output, EccPipeline_g = 2 also splits the syndrome from the correction.

Maximum frequency after place and route (Libero SoC 2025.2, PolarFire SoC MPFS250T, speed grade STD) with registers on all ports, AxiAddrWidth_g = 32, AxiMaxBeats_g = 4, AxiMaxOpenTransactions_g = 4, UserTransactionSizeBits_g = 16 and DataFifoDepth_g = 256:

AxiDataWidth_g EccPipeline_g Fmax
512 0 85.9 MHz
512 1 86.7 MHz
512 2 146.0 MHz
1024 0 71.4 MHz
1024 1 78.3 MHz
1024 2 130.0 MHz

In every configuration the critical path starts at the RAM output of the write buffer. With EccPipeline_g = 0 and 1 it contains the whole decode and ends in the write data FIFO of the wrapped master or in the decoder output register, so the register of EccPipeline_g = 1 gains little here. With EccPipeline_g = 2 it ends at the register after the syndrome.

Fault-Tolerant Storage

  • Long-residency data (payload waiting for commands or bus grants, read data waiting for the user) lives in the ECC-protected buffers; a single upset per codeword is corrected and reported.
  • The decoder pipeline registers of EccPipeline_g hold up to 2 x EccPipeline_g words per buffer in flip-flops outside the ECC: the output stage holds corrected words, and with EccPipeline_g = 2 the first stage holds the codeword with its syndrome, so an upset there after the syndrome is computed passes uncorrected and unreported. Like other control logic, these registers must be covered by vendor TMR.
  • The wrapped master's five internal FIFOs (two data FIFOs covering the in-flight burst window, three small transaction/response FIFOs) are implemented in flip-flops with the default IntFifoRamStyle_g = "registers" and must be covered by vendor TMR (syn_radhardlevel = "tmr") like all other control logic. Verify in the synthesis report that no RAM primitive is inferred for them (on tools where "registers" is not a recognized RAM-style value, e.g. Intel Quartus which uses "logic", override the generic accordingly).
  • The flip-flop cost of the internal data FIFOs is D x (AxiDataWidth_g + AxiDataWidth_g/8) for the write FIFO and D x (AxiDataWidth_g + 1) for the read FIFO, with D = IntFifoDepth_g (2 x AxiMaxBeats_g by default), before TMR. Reduce D when the flip-flop budget matters; long user transfers are split into multiple AXI bursts automatically.

ECC Overhead, Error Injection and Status Flags

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

Constraints