File size: 650 Bytes
fe9ba1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
43
44
45
46
---

license: mit
tags:
- pytorch
- safetensors
- threshold-logic
- neuromorphic
- sequential
- shift-register
---


# threshold-universal-shiftreg

4-bit universal shift register supporting all modes.

## Modes

| S1 | S0 | Mode |
|----|----|----|
| 0 | 0 | Hold |
| 0 | 1 | Shift right |
| 1 | 0 | Shift left |
| 1 | 1 | Parallel load |

## Inputs

- Q[3:0]: Current state
- P[3:0]: Parallel input
- SL: Left serial input
- SR: Right serial input
- S1, S0: Mode select

## Parameters

| | |
|---|---|
| Inputs | 12 |
| Outputs | 4 |
| Neurons | 4 |
| Parameters | 52 |
| Magnitude | 26 |

## License

MIT