File size: 651 Bytes
895f4c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
39
40
41
42
---

license: mit
tags:
- pytorch
- safetensors
- threshold-logic
- neuromorphic
- sequential
- counter
---


# threshold-graycode-counter

4-bit Gray code counter. Only one bit changes per transition.

## Sequence

```

0000 β†’ 0001 β†’ 0011 β†’ 0010 β†’ 0110 β†’ 0111 β†’ 0101 β†’ 0100 β†’

1100 β†’ 1101 β†’ 1111 β†’ 1110 β†’ 1010 β†’ 1011 β†’ 1001 β†’ 1000 β†’ 0000

```

## Advantages

- No glitches during transitions
- Ideal for position encoders
- Reduces switching noise

## Parameters

| | |
|---|---|
| Inputs | 4 |
| Outputs | 4 |
| Neurons | 4 |
| Parameters | 20 |
| Magnitude | 8 |

## License

MIT