| license: mit | |
| tags: | |
| - pytorch | |
| - safetensors | |
| - threshold-logic | |
| - neuromorphic | |
| - sequential | |
| - lfsr | |
| - prng | |
| # threshold-lfsr | |
| 4-bit Linear Feedback Shift Register with maximal-length polynomial x^4 + x + 1. | |
| ## Circuit | |
| ``` | |
| βββββββββββββββββββββ | |
| β β | |
| βΌ β | |
| [XOR] βββΊ [Q3] βββΊ [Q2] βββΊ [Q1] βββΊ [Q0] | |
| β² β | |
| βββββββββββββββββββββββββββββββββββββ | |
| Feedback = Q3 XOR Q0 | |
| ``` | |
| ## Sequence | |
| Period = 2^4 - 1 = 15 (all non-zero states) | |
| ## Applications | |
| - Pseudo-random number generation | |
| - Built-in self-test (BIST) | |
| - Scrambling/descrambling | |
| - CRC computation | |
| ## Parameters | |
| | | | | |
| |---|---| | |
| | Inputs | 4 | | |
| | Outputs | 4 | | |
| | Neurons | 6 | | |
| | Parameters | 30 | | |
| | Magnitude | 14 | | |
| ## License | |
| MIT | |