Chargement…
Chargement…
The module receives an encoded Hamming word on i_code. It computes the syndrome, corrects the faulty bit when the syndrome is non-zero, then extracts data d3..d0.
Behaviour
o_syndrome=000 means no single-bit error is detected;o_error='1' when a non-zero syndrome is found;| Signal | Direction | Width | Description |
|---|---|---|---|
i_code | Input | 7 bits | Received Hamming word |
o_data | Output | 4 bits | Corrected data d3..d0 |
o_syndrome | Output | 3 bits | Error position, or 000 |
o_error | Output | 1 bit | Single-bit error detected |