Debian Codegraph @

doc/longwires.md

raw symbols SCIP
1 Long wires are used for fast fanout signals. The receivers can be either CLK, CE, SR or LUT inputs.
2
3 You can figure out a lot already from the syntax of the CLOCK_LOC constraint:
4
5 CLOCK_LOC "net-name" clocks=fanout [quadrant]
6
7 clocks:
8 - BUFG[0-7] eight master clocks
9 - BUFS[0-7] eight long lines
10 - LOCAL_CLOCK "not to route clock line" (???)
11
12 fanout:
13 - CLK
14 - CE
15 - SR set/reset/clear/preset
16 - LOGIC jther than the above
17 the | can be used as OR.
18
19 So we have 8 long wires per quandrant, which btw can be set as LEFT (L), RIGHT (R) for GW1N series and as TOPLEFT (TL), TOPRIGHT (TR), BOTTOMLEFT (BT) and BOTTOMRIGHT (BR) for GW1N-9/GW1NR-9/GW1N-9C/GW1NR-9C, GW2A series.
20
21 The following description focuses on the GW1N-1 chip, which has two quadrants and therefore only long wires with the letter T (top), the chips with four quadrants will also have long wires with the letter B (bottom).
22
23 ![long wires diagram](fig/lw.png)
24
25 # A
26 Here the long wires LWT[0-7] are connected to the SS00 and SS40 buses of the left and right quadrants. The corresponding fuses must be reset to 0 in order to connect the long wire to the bus.
27 There is no choice to which bus (SS00 or SS40), only connect/disconnect.
28
29 The buses consist of spines that are different for the right and left quadrant.
30
31 | Bus/Code | Spine/Code | Quadrant |
32 |:--------:|:---------------:|:--------:|
33 | SS00 289 | LWSPINETL0 1001 | Left |
34 | SS00 289 | LWSPINETL1 1002 | Left |
35 | SS00 289 | LWSPINETL2 1003 | Left |
36 | SS00 289 | LWSPINETL3 1004 | Left |
37 | SS40 290 | LWSPINETL4 1005 | Left |
38 | SS40 290 | LWSPINETL5 1006 | Left |
39 | SS40 290 | LWSPINETL6 1007 | Left |
40 | SS40 290 | LWSPINETL7 1008 | Left |
41 | SS00 289 | LWSPINETR0 1009 | Right |
42 | SS00 289 | LWSPINETR1 1010 | Right |
43 | SS00 289 | LWSPINETR2 1011 | Right |
44 | SS00 289 | LWSPINETR3 1012 | Right |
45 | SS40 290 | LWSPINETR4 1013 | Right |
46 | SS40 290 | LWSPINETR5 1014 | Right |
47 | SS40 290 | LWSPINETR6 1015 | Right |
48 | SS40 290 | LWSPINETR7 1016 | Right |
49
50 Fuses (table 38):
51 | Long wire/Code | Spine/Code | Fuses/Bits |
52 |:---------------:|:---------------:|:------------:|
53 | LWT0 32 | LWSPINETL0 1001 | 1462 (23, 58)|
54 | LWT1 33 | LWSPINETL1 1002 | 1455 (19, 59)|
55 | LWT2 34 | LWSPINETL2 1003 | 1450 (14, 59)|
56 | LWT3 35 | LWSPINETL3 1004 | 1456 (20, 58)|
57 | LWT4 36 | LWSPINETL4 1005 | 1625 (24, 0) |
58 | LWT5 37 | LWSPINETL5 1006 | 1446 (10, 59)|
59 | LWT6 38 | LWSPINETL6 1007 | 1442 (6, 59)|
60 | LWT7 39 | LWSPINETL7 1008 | 1642 (27, 59)|
61 | LWT0 32 | LWSPINETR0 1009 | 1462 (24, 59)|
62 | LWT1 33 | LWSPINETR1 1010 | 1453 (17, 59)|
63 | LWT2 34 | LWSPINETR2 1011 | 1449 (13, 59)|
64 | LWT3 35 | LWSPINETR3 1012 | 1461 (22, 59)|
65 | LWT4 36 | LWSPINETR4 1013 | 1458 (21, 58)|
66 | LWT5 37 | LWSPINETR5 1014 | 1445 (9, 59)|
67 | LWT6 38 | LWSPINETR6 1015 | 1441 (5, 59)|
68 | LWT7 39 | LWSPINETR7 1016 | 1643 (26, 58)|
69
70
71 # B
72 Connecting the spines with the vertical wires. Here shown is the vertical wire from the `SS40` bus, which is not drawn in the picture of the whole chip because it would result in a mess, but these hidden wires go in pairs with the drawn wires from the `SS00` bus.
73
74 Only one spine from each bus is connected, which one is determined from the column of the cell using the table (is specified for the GW1N-1 chip, tables for others can be found in the code):
75
76 | Col mod 4 | SS00 spine | SS40 spine |
77 |:---------:|:----------:|:----------:|
78 | 0 | 1 | 5 |
79 | 1 | 0 | 4 |
80 | 2 | 3 | 7 |
81 | 3 | 2 | 6 |
82
83 Important: taps are easy to determine, but which columns are served by which tap is a little more difficult to determine by the rule:
84
85 If there is a tap to the right of the current tap for a given long wire, then the current tap serves two columns to the right, otherwise all columns to the right.
86
87 For example GW1N-1, chip width 20 columns, long wire #1, this is how the columns are serviced with taps:
88
89 | col# | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
90 |:-------:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|
91 | tap pip | 0 | | | | 1 | | | | 2 | | | | 3 | | | | 4 | | | |
92 | cells | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 | 4 | 4 | 4 | 4 | 4 |
93
94 For long wire #2:
95
96 | col# | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
97 |:-------:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|
98 | tap pip | | | | 0 | | | | 1 | | | | 2 | | | | 3 | | | | 4 |
99 | cells | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 | 4 | 4 |
100
101
102 One more thing quadrants are not squares (horrible): their borders are uneven because the belonging of a cell to one or another quadrant is determined not by its coordinates, but by the coordinates of the tap that serves it.
103 For example column 9 is central for GW1N-1 so from the table above cells in column 10 belong to the left quadrant for the long wire #1 as column 10 is served by tap in column 8, but the same cell belongs to the right quadrant for the long wire #2 as it is served by tap in column 11.
104
105 `A6`, `A7`, `B6` and `B7` wires are segment entry points, i.e. there are Pips of type `LT02 <- A6` etc.
106
107 What the `F6`, `F7` inputs are is still unclear.
108 It is interesting that it is possible to connect the same spine to `LT02` and `LT13`.
109
110 # C
111 Here the vertical taps `LT01` and `LT04` are connected to the horizontal branches `LBO0` and `LBO1`.
112 As usual the column determines which long wire the branch is connected to, to some extent --- we remember that not only the buses are connected to the taps, but also half a dozen other unknown sources.
113
114 And one more thing: the taps are not named `LT02` and `LT13` since they are the actual vertical wire, which can be connected at both ends, there are intermediate wires that indicate the upper or lower end of the wire: для примера `LT02` indicates the upper or lower end of the segment (depending on the coordinates of the wire) and connection `LT01 <- LT02` means that the corresponding end is used as source.
115
116 # D
117 For type 12:
118
119 | | LB01 | LB11 | LB21 | LB31 | LB41 | LB51 | LB61 | LB71 |
120 |:--------:|:----:|:----:|:----:|:----:|:----:|:----:|:----:|:----:|
121 | X01 56 | | | | | X | X | X | X |
122 | X02 57 | | | | | X | X | X | X |
123 | X03 58 | | | | | X | X | X | X |
124 | X04 59 | | | | | X | X | X | X |
125 | X05 60 | | | | | X | X | X | X |
126 | X06 61 | | | | | X | X | X | X |
127 | X07 62 | | | | | X | X | X | X |
128 | X08 63 | | | | | X | X | X | X |
129 | N200 76 | X | | | | | | | |
130 | N210 77 | | X | | | | | | |
131 | N220 78 | | | X | | | | | |
132 | N230 79 | | | | X | | | | |
133 | N240 80 | | | | | X | | | |
134 | N250 81 | | | | | | X | | |
135 | N260 82 | | | | | | | X | |
136 | N270 83 | | | | | | | | X |
137 | S200 84 | X | | | | | | | |
138 | S210 85 | | X | | | | | | |
139 | S220 86 | | | X | | | | | |
140 | S230 87 | | | | X | | | | |
141 | S240 88 | | | | | X | | | |
142 | S250 89 | | | | | | X | | |
143 | S260 90 | | | | | | | X | |
144 | S270 91 | | | | | | | | X |
145 | E200 92 | X | | | | | | | |
146 | E210 93 | | X | | | | | | |
147 | E220 94 | | | X | | | | | |
148 | E230 95 | | | | X | | | | |
149 | E240 96 | | | | | X | | | |
150 | E250 97 | | | | | | X | | |
151 | E260 98 | | | | | | | X | |
152 | E270 99 | | | | | | | | X |
153 | W200 100 | X | | | | | | | |
154 | W210 101 | | X | | | | | | |
155 | W220 102 | | | X | | | | | |
156 | W230 103 | | | | X | | | | |
157 | W240 104 | | | | | X | | | |
158 | W250 105 | | | | | | X | | |
159 | W260 106 | | | | | | | X | |
160 | W270 107 | | | | | | | | X |
161 | CLK0 124 | X | X | X | | X | X | X | X |
162 | CLK1 125 | X | X | X | | X | X | X | X |
163 | CLK2 126 | X | X | X | | X | X | X | X |
164 | LSR0 127 | X | X | X | X | | | | X |
165 | LSR1 128 | X | X | X | X | | | | X |
166 | LSR2 129 | X | X | X | X | | | | X |
167 | CE0 130 | X | X | X | X | | | | X |
168 | CE1 131 | X | X | X | X | | | | X |
169 | CE2 132 | X | X | X | X | | | | X |
170
171 # E
172 The two cells in the center of the chip with types 81 and 82 are responsible for sources for long wires. Here I also add two adjacent cells with types 83 and 84. 83 contains 7 muxes for lines 40--46 and 84 contains a mux for line 47.
173
174 These lines 40--47 are connected to buses `SS00` and `SS40` in the bottom row of the chip. But so far I can't get the vendor IDE to use them so their purpose is unclear.
175
176 The `+` marked sources whose locations are known and I will explain how to find them.
177
178 | | LW0 | LW1 | LW2 | LW3 | LW4 | LW5 | LW6 | LW7 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |
179 |:----:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|
180 | 121 | X | | | | | | | X | X | | | | | | | X |
181 | 122 | | X | | | | | X | | | X | | | | | X | |
182 | 123 | | | X | | | | X | | | | X | | | | X | |
183 | 124 | | | | X | | | | X | | | | X | | | | X |
184 | 125 | | | X | | X | | | | | | X | | X | | | |
185 | 126 | | | | X | | X | | | | | | X | | X | | |
186 | 127 | | X | | | | X | | | | X | | | | X | | |
187 | 128 | X | | | | X | | | | X | | | | X | | | |
188 | 154 | X | X | X | | X | X | X | | X | X | X | | X | X | X | |
189 | +155 | | X | X | X | | X | X | X | | X | X | X | | X | X | X |
190 | 156 | X | X | X | | X | X | X | | X | X | X | | X | X | X | |
191 | +157 | | X | X | X | | X | X | X | | X | X | X | | X | X | X |
192 | 158 | X | X | | X | X | X | | X | X | X | | X | X | X | | X |
193 | 159 | X | X | | X | X | X | | X | X | X | | X | X | X | | X |
194 | 160 | X | | X | X | X | | X | X | X | | X | X | X | | X | X |
195 | 161 | X | | X | X | X | | X | X | X | | X | X | X | | X | X |
196 | +162 | X | | | | | X | X | X | X | | | | | X | X | X |
197 | +163 | | X | X | X | X | | | | | X | X | X | X | | | |
198 | +164 | X | | X | X | | X | | | X | | X | X | | X | | |
199 | +165 | | X | | | X | | X | X | | X | | | X | | X | X |
200 | +166 | X | X | | X | | | X | | X | X | | X | | | X | |
201 | +167 | | | X | | X | X | | X | | | X | | X | X | | X |
202 | +168 | X | X | X | | | | | X | X | X | X | | | | | X |
203 | +169 | | | | X | X | X | X | | | | | X | X | X | X | |
204
205 The `dat` dictionary has a table `UfbIns`, whose entries have the structure `[row number, column number, pip code]`. Thus the entry `[4, 1, 126]` means that CLK2 pip in cell [4, 1] is an entry point to somewhere.
206 Experimentally it is found that CLK2 are the entry points to the long wire system and it is these points that are marked with a `+` sign in the table above.
207
208 The record number in the table `UfbIns` is as the code from the table above minus 104.
209
210 # F
211 This cell contains a connection to the `SS00` and `SS40` buses of some obscure wires. They cannot be made to be used even if you place all the primitives literally next to the bottom row - the buses in the top row will still be used.
212