--- 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