Tutorials

Protocols

Learn More

The AHB parity feature adds check signals that protect groups of AHB interface signals. It is intended for systems that need detection of transient or functional wire errors across component boundaries.

The Check_Type property controls whether check signals exist:

Check_TypeMeaning
FalseNo check signals. If the property is not declared, it is treated as False.
Odd_Parity_Byte_AllOdd parity checking is included for all defined signal groups.

Odd parity means the protected payload bits plus the check bit are driven so the group contains an odd number of asserted bits.

Parity signal rules

RuleMeaning
Most parity bits cover up to 8 payload bitsKeeps generation logic small enough for timing.
Critical control signals can use one check bitFor a single protected control bit, odd parity is the inversion of that bit.
Wider check signals map by byte groupsCheck bit n covers payload bits [(8n+7):8n]; the most significant group can cover fewer than 8 bits.
Check signals are driven when their Check Enable term is trueValidity depends on the protected signal group.
Data parity covers all payload bitsEven inactive byte lanes still need correct HWDATACHK/HRDATACHK generation.
Missing protected signals are treated as LOWIf some covered optional signals are absent, parity assumes zero for those bits.
Omit unused check signalsIf none of the covered signals exist on an interface, the corresponding check signal is absent.

Examples of check signal groups include:

Check signalProtectsCheck enable idea
HTRANSCHKHTRANSHRESETn
HADDRCHKHADDRHRESETn
HCTRLCHK1HBURSTHMASTLOCK,
HWRITEHSIZEHNONSEC
HTRANS != IDLE
HCTRLCHK2HEXCLHMASTERHTRANS != IDLE
HPROTCHKHPROTHTRANS != IDLE
HWSTRBCHKHWSTRBWrite data phase
HWDATACHKHWDATAWrite data phase
HRDATACHKHRDATARead data phase and HREADY
HREADYCHKHREADYOUTCHKReady signalingHRESETn
HRESPCHKHRESPHEXOKAYData phase
HSELxCHKHSELxHRESETn
User check signalsHAUSERHWUSERHRUSERHBUSERMatching User signal phase

Error detection behavior

The AHB parity scheme defines the signals, not a single mandatory recovery action. When parity mismatch is detected, the receiver can terminate or propagate the transaction, correct or propagate the parity error, update memory or leave it untouched, or signal error through another system mechanism such as an interrupt. The transaction response is independent of parity detection unless the system explicitly connects the two.

Parity protection checklist

CheckReason
Check signals are generated from the correct cycleParity must match protected data.
Check enable conditions match the protected phasePrevents false parity failures on invalid cycles.
Data parity includes inactive byte lanesThe parity rule covers the payload bits, not only active strobes.
Parity error behavior is documentedSoftware and safety monitors need a policy.
Parity configurations are included in compatibility testsConfigurable IP fails easily at optional-feature boundaries.