File size: 745 Bytes
d59a5f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

license: mit
tags:
- pytorch
- safetensors
- threshold-logic
- neuromorphic
- arithmetic
- divider
---


# threshold-srt-divider

4-bit by 2-bit SRT divider. Uses redundant quotient digits.

## Circuit

```

Inputs: N[3:0] (dividend), D[1:0] (divisor)

Outputs: Q[3:0] (quotient), R[1:0] (remainder)

```

## SRT Algorithm

SRT (Sweeney, Robertson, Tocher) uses redundant digit set {-1, 0, +1}:
- Allows imprecise comparisons (simpler hardware)
- Quotient converted to standard form at end
- Used in high-performance FPUs (including Pentium FDIV bug)

## Parameters

| | |
|---|---|
| Inputs | 6 |
| Outputs | 6 |
| Neurons | 12 |
| Layers | 4 |
| Parameters | 84 |
| Magnitude | 96 |

## License

MIT