Skip to content

bus_trim

Component for trimming and distributing failure rates across the bus architecture (LPDDR5).

BusTrim

Bases: Base

Component for trimming and distributing failure rates across the bus architecture.

This module injects specific bus-related fault sources (AZ) and redistributes SBE, DBE, and TBE faults for both SPFM and LFM paths based on LPDDR5 specifications.

Source code in src/ecc_analyzer/models/lpddr5/bus_trim.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
class BusTrim(Base):
    """Component for trimming and distributing failure rates across the bus architecture.

    This module injects specific bus-related fault sources (AZ) and redistributes
    SBE, DBE, and TBE faults for both SPFM and LFM paths based on LPDDR5 specifications.
    """

    def __init__(self, name: str):
        """Initializes the BusTrim component with bus-specific split parameters.

        Args:
            name (str): The descriptive name of the component.
        """
        self.spfm_sbe_split = {FaultType.SBE: 0.438}
        self.spfm_dbe_split = {FaultType.SBE: 0.496, FaultType.DBE: 0.314}
        self.spfm_tbe_split = {
            FaultType.SBE: 0.325,
            FaultType.DBE: 0.419,
            FaultType.TBE: 0.175,
        }
        self.spfm_az_source = 172.0

        self.lfm_sbe_split = self.spfm_sbe_split
        self.lfm_dbe_split = self.spfm_dbe_split
        self.lfm_tbe_split = self.spfm_tbe_split

        super().__init__(name)

    def configure_blocks(self):
        """Configures the root block as a collection of fault injections and split operations.

        Uses a SumBlock to aggregate the source injection (AZ) and the parallel
        redistribution (SplitBlocks) of incoming faults.
        """
        self.root_block = SumBlock(
            self.name,
            [
                BasicEvent(FaultType.AZ, self.spfm_az_source, is_spfm=True),
                SplitBlock("SPFM_SBE_Split", FaultType.SBE, self.spfm_sbe_split, is_spfm=True),
                SplitBlock("SPFM_DBE_Split", FaultType.DBE, self.spfm_dbe_split, is_spfm=True),
                SplitBlock("SPFM_TBE_Split", FaultType.TBE, self.spfm_tbe_split, is_spfm=True),
                SplitBlock("LFM_SBE_Split", FaultType.SBE, self.lfm_sbe_split, is_spfm=False),
                SplitBlock("LFM_DBE_Split", FaultType.DBE, self.lfm_dbe_split, is_spfm=False),
                SplitBlock("LFM_TBE_Split", FaultType.TBE, self.lfm_tbe_split, is_spfm=False),
            ],
        )

__init__(name)

Initializes the BusTrim component with bus-specific split parameters.

Parameters:

Name Type Description Default
name str

The descriptive name of the component.

required
Source code in src/ecc_analyzer/models/lpddr5/bus_trim.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def __init__(self, name: str):
    """Initializes the BusTrim component with bus-specific split parameters.

    Args:
        name (str): The descriptive name of the component.
    """
    self.spfm_sbe_split = {FaultType.SBE: 0.438}
    self.spfm_dbe_split = {FaultType.SBE: 0.496, FaultType.DBE: 0.314}
    self.spfm_tbe_split = {
        FaultType.SBE: 0.325,
        FaultType.DBE: 0.419,
        FaultType.TBE: 0.175,
    }
    self.spfm_az_source = 172.0

    self.lfm_sbe_split = self.spfm_sbe_split
    self.lfm_dbe_split = self.spfm_dbe_split
    self.lfm_tbe_split = self.spfm_tbe_split

    super().__init__(name)

configure_blocks()

Configures the root block as a collection of fault injections and split operations.

Uses a SumBlock to aggregate the source injection (AZ) and the parallel redistribution (SplitBlocks) of incoming faults.

Source code in src/ecc_analyzer/models/lpddr5/bus_trim.py
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
def configure_blocks(self):
    """Configures the root block as a collection of fault injections and split operations.

    Uses a SumBlock to aggregate the source injection (AZ) and the parallel
    redistribution (SplitBlocks) of incoming faults.
    """
    self.root_block = SumBlock(
        self.name,
        [
            BasicEvent(FaultType.AZ, self.spfm_az_source, is_spfm=True),
            SplitBlock("SPFM_SBE_Split", FaultType.SBE, self.spfm_sbe_split, is_spfm=True),
            SplitBlock("SPFM_DBE_Split", FaultType.DBE, self.spfm_dbe_split, is_spfm=True),
            SplitBlock("SPFM_TBE_Split", FaultType.TBE, self.spfm_tbe_split, is_spfm=True),
            SplitBlock("LFM_SBE_Split", FaultType.SBE, self.lfm_sbe_split, is_spfm=False),
            SplitBlock("LFM_DBE_Split", FaultType.DBE, self.lfm_dbe_split, is_spfm=False),
            SplitBlock("LFM_TBE_Split", FaultType.TBE, self.lfm_tbe_split, is_spfm=False),
        ],
    )