File size: 569 Bytes
698e230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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
---

license: mit
tags:
- pytorch
- safetensors
- threshold-logic
- neuromorphic
- error-correction
- bch
- hamming
---


# threshold-bch-decoder

BCH(7,4) decoder. Extracts data bits and computes syndrome.

## Decoding

```

R6 R5 R4 R3 R2 R1 R0 β†’ D3 D2 D1 D0 | S2 S1 S0

                       ──────────   ────────

                       data         syndrome

```

Syndrome = 0 means no error.

## Parameters

| | |
|---|---|
| Inputs | 7 |
| Outputs | 7 |
| Parameters | 128 |

## License

MIT