Debian Codegraph @

doc/longval-tables.md

raw symbols SCIP
1 # longval tables
2 The table entries are divided into two parts: key and fuses. The key is an ascending ordered list of non-repeating feature codes, padded with zeros to the right up to a length of 16 elements. Fuzes is an ascending ordered list of non-repeating numbers of fuzes, extended to the right by -1 to a length of 12 elements.
3
4 The feature codes change from board to board and no common recoding table has been found yet. So all codes below are correct for GW1N-1, for other boards empirical recoding is used (see beginning of file chipdb_builder.py).
5
6 In some cases, the key uses an as yet unknown feature that seems to be responsible for configuring the I/O logic. Voltage levels and I/O attributes do not depend on it, so this code is ignored when searching for a entry.
7
8 *The GW1N-4 boards stand out --- everything is different for them!*
9
10 ## IOB tables
11 Correspondence of table numbers to pin names:
12
13 | A | B | C | D | E | F | G | H | I | J |
14 |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
15 | 23 | 24 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |
16
17
18 Simple IO attributes and their detected features codes, if empty, no fuses are set.
19
20 `SLEW_RATE`
21 | Value | Code |
22 |:-----:|:----:|
23 | SLOW | |
24 | FAST | 42 |
25
26 example: `SLEW_RATE=FAST`:
27 [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3377, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
28
29
30 `PULL_MODE`
31 | Value | Code |
32 |:------:|:----:|
33 | UP | |
34 | NONE | 45 |
35 | KEEPER | 44 |
36 | DOWN | 43 |
37
38 example: `PULL_MODE=DOWN`:
39 [43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3342, 3357, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
40
41 `HYSTERESIS`
42 | Value | Code |
43 |:------:|:----------:|
44 | NONE | |
45 | HIGH | {57, 85} |
46 | H2L | {58, 85} |
47 | L2H | {59, 85} |
48
49 example: `HYSTERESIS=HIGH`:
50 [37, 57, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3352, 3374, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
51
52 See this *37*? This is the ignored part of the key.
53
54 Complex attributes take into account the current I/O standard. But the standard code is only in addition to the attribute code, and does not work as a separate single switch.
55
56 IO standard codes
57 | Value | Code |
58 |:---------:|:-----:|
59 | LVCMOS33 | 68 |
60 | LVCMOS25 | 67 |
61 | LVCMOS18 | 66 |
62 | LVCMOS15 | 65 |
63 | LVCMOS12 | 64 |
64 | SSTL25_I | 71 |
65 | SSTL25_II | 71 |
66 | SSTL33_I | |
67 | SSTL33_II | |
68 | SSTL18_I | 72 |
69 | SSTL18_II | 72 |
70 | SSTL15 | 74 |
71 | HSTL18_I | 72 |
72 | HSTL18_II | 72 |
73 | HSTL15_I | 74 |
74 | PCI33 | 69 |
75
76 `DRIVE`
77 | Value | Code |
78 |:-----:|:-----:|
79 | 4 | 48 |
80 | 8 | 50 |
81 | 12 | 51 |
82 | 16 | 52 |
83 | 24 | 54 |
84
85 The code for `DRIVE` is made up of the value from the above table plus {56} plus the standard code.
86
87 example: 'IO_TYPE=LVCMOS18, DRIVE=8':
88 [12, 50, 56, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3356, 3372, 3375, 3379, 3394, 3397, -1, -1, -1, -1, -1, -1]
89
90 `OPEN_DRAIN`
91 Perhaps the most difficult attribute at the moment. It uses the same fuses as `DRIVE`, setting one of them and clearing the other two. The procedure for determining the fuzes is epirical and is best seen in the chipdb_builder.py code.
92
93 | Value | Code |
94 |:-----:|:-----------:|
95 | ON | {55, 70} |
96
97 NOISE fuse: {55, 72}
98
99 example: 'OPEN_DRAIN=ON':
100
101 16mA LVCMOS33 fuse:
102
103 [12, 52, 56, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3210, 3238, 3245, 3263, 3273, 3281, -1, -1, -1, -1, -1, -1]
104
105 ON fuse:
106
107 [10, 55, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3273, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
108
109 NOISE fuse:
110
111 [7, 55, 72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3238, 3263, 3273, 3281, -1, -1, -1, -1, -1, -1, -1, -1]
112
113 Thus we clear {3210, 3245} and set {3273}.
114
115
116 ## Tables of corner tiles
117 Corner tiles enable I/O banks and set logical levels.
118
119 Table 37.
120
121 The key includes the bank number, usually unchanged, but there are strange numbers like 10 or 30. which still need to be investigated.
122
123 Simple modes are found simply by the standard code:
124
125 | Value | Code |
126 |:---------:|:-----:|
127 | LVCMOS33 | 68 |
128 | LVCMOS25 | 67 |
129 | LVCMOS18 | 66 |
130 | LVCMOS15 | 65 |
131 | LVCMOS12 | 64 |
132
133 example: 'IO_TYPE=LVCMOS15'
134
135 [2, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2797, 2813, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
136
137
138 Complex modes are obtained by adding fuse 79:
139
140 | Mode | Fuses |
141 |:---------:|:-----------------------:|
142 | SSTL15 | fuses(65) + fuses(79) |
143 | HSTL18_I | fuses(66) + fuses(79) |
144 | SSTL25_I | fuses(67) + fuses(79) |
145 | SSTL33_I | fuses(68) + fuses(79) |
146
147 example: 'IO_TYPE=SSTL15'
148
149 Fuse 79:
150
151 [3, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2229, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
152
153 Fuse 65:
154
155 [3, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2181, 2197, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
156
157 Thus we set {2181, 2197, 2229}
158
159 TODO: Describe the situation when all pins in the bank are working as input