Jeff DiCorpo | 5dfffea | 2021-02-15 18:09:12 -0800 | [diff] [blame] | 1 | #---------------------------------------------------------------------- |
| 2 | # Assumes running magic -T micross using the micross technology file |
| 3 | # from the open_pdks installation of sky130A |
| 4 | #---------------------------------------------------------------------- |
| 5 | # bump bond pitch is 500um. Bump diameter is set by the technology |
| 6 | |
| 7 | namespace path {::tcl::mathop ::tcl::mathfunc} |
| 8 | |
| 9 | if {[catch {set PDKPATH $env(PDKPATH)}]} { |
| 10 | set PDKPATH "$::env(PDK_ROOT)/sky130A" |
| 11 | } |
| 12 | |
| 13 | source $PDKPATH/libs.tech/magic/current/bump_bond_generator/bump_bond.tcl |
| 14 | |
| 15 | # Caravel dimensions, in microns |
| 16 | set chipwidth 3588 |
| 17 | set chipheight 5188 |
| 18 | |
| 19 | set halfwidth [/ $chipwidth 2] |
| 20 | set halfheight [/ $chipheight 2] |
| 21 | |
| 22 | set columns 6 |
| 23 | set rows 10 |
| 24 | |
| 25 | set bump_pitch 500 |
| 26 | |
| 27 | set llx [- $halfwidth [* [- [/ $columns 2] 0.5] $bump_pitch]] |
| 28 | set lly [- $halfheight [* [- [/ $rows 2] 0.5] $bump_pitch]] |
| 29 | |
| 30 | # Create a new cell |
| 31 | load caravel_bump_bond -quiet |
| 32 | |
| 33 | # Build the bump cells |
| 34 | make_bump_bond 0 |
| 35 | make_bump_bond 45 |
| 36 | |
| 37 | # View the whole chip during generation. This is not strictly |
| 38 | # necessary, but looks nice! |
| 39 | snap internal |
| 40 | box values 0 0 ${chipwidth}um ${chipheight}um |
| 41 | paint glass |
| 42 | view |
| 43 | erase glass |
| 44 | box values 0 0 0 0 |
| 45 | grid 250um 250um 45um 95um |
| 46 | |
| 47 | # Starting from the bottom left-hand corner and scanning across and up, |
| 48 | # these are the orientations of the bump bond pad tapers: |
| 49 | set tapers {} |
| 50 | lappend tapers 180 225 270 270 270 270 |
| 51 | lappend tapers 180 135 225 270 0 0 |
| 52 | lappend tapers 180 135 135 270 315 0 |
| 53 | lappend tapers 180 135 135 315 315 0 |
| 54 | lappend tapers 135 135 0 180 315 0 |
| 55 | lappend tapers 180 135 0 180 315 0 |
| 56 | lappend tapers 180 135 180 315 315 0 |
| 57 | lappend tapers 180 180 135 45 315 0 |
| 58 | lappend tapers 135 135 135 45 45 45 |
| 59 | lappend tapers 90 90 90 90 45 90 |
| 60 | |
| 61 | box values 0 0 0 0 |
| 62 | set t 0 |
| 63 | for {set y 0} {$y < $rows} {incr y} { |
| 64 | for {set x 0} {$x < $columns} {incr x} { |
| 65 | set xpos [+ $llx [* $x $bump_pitch]] |
| 66 | set ypos [+ $lly [* $y $bump_pitch]] |
| 67 | draw_bump_bond $xpos $ypos [lindex $tapers $t] |
| 68 | incr t |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | # The pad at E6 has wires exiting two sides, so put another pad down |
| 73 | # at the other orientation. |
| 74 | set y 4 |
| 75 | set x 4 |
| 76 | set xpos [+ $llx [* $x $bump_pitch]] |
| 77 | set ypos [+ $lly [* $y $bump_pitch]] |
| 78 | draw_bump_bond $xpos $ypos 180 |
| 79 | |
| 80 | select top cell |
| 81 | expand |
| 82 | |
| 83 | # These are the pad Y positions on the left side from bottom to top |
| 84 | |
| 85 | set leftpads {} |
| 86 | lappend leftpads 377.5 588.5 950.5 1166.5 1382.5 1598.5 1814.5 |
| 87 | lappend leftpads 2030.5 2241.5 2452.5 2668.5 2884.5 3100.5 |
| 88 | lappend leftpads 3316.5 3532.5 3748.5 3964.5 4175.5 4386.5 4597.5 4813.5 |
| 89 | |
| 90 | # These are the pad X positions on the top side from left to right |
| 91 | |
| 92 | set toppads {} |
| 93 | lappend toppads 423.5 680.5 937.5 1194.5 1452.5 1704.5 1961.5 2406.5 |
| 94 | lappend toppads 2663.5 2915.5 3172.5 |
| 95 | |
| 96 | # These are the pad Y positions on the right side from bottom to top |
| 97 | |
| 98 | set rightpads {} |
| 99 | lappend rightpads 537.5 763.5 988.5 1214.5 1439.5 1664.5 1890.5 |
| 100 | lappend rightpads 2115.5 2336.5 2556.5 2776.5 3002.5 3227.5 3453.5 |
| 101 | lappend rightpads 3678.5 3903.5 4129.5 4349.5 4575.5 4795.5 |
| 102 | |
| 103 | # These are the pad X positions on the bottom side from left to right |
| 104 | |
| 105 | set bottompads {} |
| 106 | lappend bottompads 431.5 700.5 969.5 1243.5 1512.5 1786.5 2060.5 |
| 107 | lappend bottompads 2334.5 2608.5 2882.5 3151.5 |
| 108 | |
| 109 | set leftpadx 64.6 |
| 110 | set rightpadx 3523.78 |
| 111 | set bottompady 64.6 |
| 112 | set toppady 5123.78 |
| 113 | |
| 114 | set xpos $leftpadx |
| 115 | for {set y 0} {$y < [llength $leftpads]} {incr y} { |
| 116 | set ypos [lindex $leftpads $y] |
| 117 | draw_pad_bond $xpos $ypos |
| 118 | } |
| 119 | |
| 120 | set ypos $toppady |
| 121 | for {set x 0} {$x < [llength $toppads]} {incr x} { |
| 122 | set xpos [lindex $toppads $x] |
| 123 | draw_pad_bond $xpos $ypos |
| 124 | } |
| 125 | |
| 126 | set xpos $rightpadx |
| 127 | for {set y 0} {$y < [llength $rightpads]} {incr y} { |
| 128 | set ypos [lindex $rightpads $y] |
| 129 | draw_pad_bond $xpos $ypos |
| 130 | } |
| 131 | |
| 132 | set ypos $bottompady |
| 133 | for {set x 0} {$x < [llength $bottompads]} {incr x} { |
| 134 | set xpos [lindex $bottompads $x] |
| 135 | draw_pad_bond $xpos $ypos |
| 136 | } |
| 137 | |
| 138 | # Now route between the wirebond pads and the bump bond pads |
| 139 | # routes start centered on the wirebond pad and align to grid points |
| 140 | # on a 1/2 ball pitch, although positions do not need to be on |
| 141 | # integer values. The overlaid grid starts 1/2 pitch to the left |
| 142 | # and below the center of the bottom left bump bond. Grid columns |
| 143 | # are numbered 0 to 12, and grid rows are numbered 0 to 20. To |
| 144 | # convert to a micron unit coordinate, use the to_grid procedure |
| 145 | # defined below. |
| 146 | |
| 147 | set gridllx [- $llx 250.0] |
| 148 | set gridlly [- $lly 250.0] |
| 149 | set gridpitchx 250.0 |
| 150 | set gridpitchy 250.0 |
| 151 | |
| 152 | proc to_grid {x y} { |
| 153 | global gridllx gridlly |
| 154 | set coords [] |
| 155 | catch {lappend coords [+ $gridllx [* 250.0 $x]]} |
| 156 | catch {lappend coords [+ $gridlly [* 250.0 $y]]} |
| 157 | return $coords |
| 158 | } |
| 159 | |
| 160 | # Detailed routing, scanning left to right and from bottom to top. |
| 161 | # (This really needs to be automated. . .) |
| 162 | |
| 163 | set wire_width 40.0 |
| 164 | |
| 165 | # A10 vccd |
| 166 | set coords [list $leftpadx [lindex $leftpads 0]] |
| 167 | lappend coords {*}[to_grid -0.8 1] |
| 168 | lappend coords {*}[to_grid 1 1] |
| 169 | draw_pad_route $coords $wire_width |
| 170 | |
| 171 | # B10 resetb |
| 172 | set coords [list [lindex $bottompads 1] $bottompady] |
| 173 | lappend coords {*}[to_grid 1.9 0.2] |
| 174 | lappend coords {*}[to_grid 2.2 0.2] |
| 175 | lappend coords {*}[to_grid 3 1] |
| 176 | draw_pad_route $coords $wire_width |
| 177 | |
| 178 | # C10 flash csb |
| 179 | set coords [list [lindex $bottompads 4] $bottompady] |
| 180 | lappend coords {*}[to_grid 5 0] |
| 181 | lappend coords {*}[to_grid 5 1] |
| 182 | draw_pad_route $coords $wire_width |
| 183 | |
| 184 | # D10 flash io0 |
| 185 | set coords [list [lindex $bottompads 6] $bottompady] |
| 186 | lappend coords {*}[to_grid 7 0] |
| 187 | lappend coords {*}[to_grid 7 1] |
| 188 | draw_pad_route $coords $wire_width |
| 189 | |
| 190 | # E10 gpio |
| 191 | set coords [list [lindex $bottompads 8] $bottompady] |
| 192 | lappend coords {*}[to_grid 9 0.2] |
| 193 | lappend coords {*}[to_grid 9 1] |
| 194 | draw_pad_route $coords $wire_width |
| 195 | |
| 196 | # F10 vdda |
| 197 | set coords [list [lindex $bottompads 10] $bottompady] |
| 198 | lappend coords {*}[to_grid 11 0.3] |
| 199 | lappend coords {*}[to_grid 11 1] |
| 200 | draw_pad_route $coords $wire_width |
| 201 | |
| 202 | # A9 mprj_io[37] |
| 203 | set coords [list $leftpadx [lindex $leftpads 2]] |
| 204 | lappend coords {*}[to_grid -0.5 3] |
| 205 | lappend coords {*}[to_grid 1 3] |
| 206 | draw_pad_route $coords $wire_width |
| 207 | |
| 208 | # B9 mprj_io[36] |
| 209 | set coords [list $leftpadx [lindex $leftpads 3]] |
| 210 | lappend coords {*}[to_grid -0.6 4] |
| 211 | lappend coords {*}[to_grid 2 4] |
| 212 | lappend coords {*}[to_grid 3 3] |
| 213 | draw_pad_route $coords $wire_width |
| 214 | |
| 215 | # C9 clock |
| 216 | set coords [list [lindex $bottompads 2] $bottompady] |
| 217 | lappend coords {*}[to_grid 3 0.2] |
| 218 | lappend coords {*}[to_grid 3.4 0.2] |
| 219 | lappend coords {*}[to_grid 3.8 0.6] |
| 220 | lappend coords {*}[to_grid 3.8 1.6] |
| 221 | lappend coords {*}[to_grid 4.5 2.3] |
| 222 | lappend coords {*}[to_grid 4.5 2.5] |
| 223 | lappend coords {*}[to_grid 5 3] |
| 224 | draw_pad_route $coords $wire_width |
| 225 | |
| 226 | # D9 flash io1 |
| 227 | set coords [list [lindex $bottompads 7] $bottompady] |
| 228 | lappend coords {*}[to_grid 8 0.1] |
| 229 | lappend coords {*}[to_grid 8 1.3] |
| 230 | lappend coords {*}[to_grid 7 2.3] |
| 231 | lappend coords {*}[to_grid 7 3] |
| 232 | draw_pad_route $coords $wire_width |
| 233 | |
| 234 | # E9 mprj_io[1]/SDO |
| 235 | set coords [list $rightpadx [lindex $rightpads 1]] |
| 236 | lappend coords {*}[to_grid 12.4 2.2] |
| 237 | lappend coords {*}[to_grid 10.5 2.2] |
| 238 | lappend coords {*}[to_grid 9.7 3] |
| 239 | lappend coords {*}[to_grid 9 3] |
| 240 | draw_pad_route $coords $wire_width |
| 241 | |
| 242 | # F9 mprj_io[2]/SDI |
| 243 | set coords [list $rightpadx [lindex $rightpads 2]] |
| 244 | lappend coords {*}[to_grid 12.3 3] |
| 245 | lappend coords {*}[to_grid 11 3] |
| 246 | draw_pad_route $coords $wire_width |
| 247 | |
| 248 | # A8 mprj_io[35] |
| 249 | set coords [list $leftpadx [lindex $leftpads 4]] |
| 250 | lappend coords {*}[to_grid -0.7 5] |
| 251 | lappend coords {*}[to_grid 1 5] |
| 252 | draw_pad_route $coords $wire_width |
| 253 | |
| 254 | # B8 mprj_io[34] |
| 255 | set coords [list $leftpadx [lindex $leftpads 5]] |
| 256 | lappend coords {*}[to_grid -0.7 5.8] |
| 257 | lappend coords {*}[to_grid 2.2 5.8] |
| 258 | lappend coords {*}[to_grid 3 5] |
| 259 | draw_pad_route $coords $wire_width |
| 260 | |
| 261 | # C8 mprj_io[33] |
| 262 | set coords [list $leftpadx [lindex $leftpads 6]] |
| 263 | lappend coords {*}[to_grid -0.3 6.2] |
| 264 | lappend coords {*}[to_grid 3.8 6.2] |
| 265 | lappend coords {*}[to_grid 5 5] |
| 266 | draw_pad_route $coords $wire_width |
| 267 | |
| 268 | # D8 flash clk |
| 269 | set coords [list [lindex $bottompads 5] $bottompady] |
| 270 | lappend coords {*}[to_grid 6 0] |
| 271 | lappend coords {*}[to_grid 6 1] |
| 272 | lappend coords {*}[to_grid 6.2 1.2] |
| 273 | lappend coords {*}[to_grid 6.2 3.5] |
| 274 | lappend coords {*}[to_grid 7 4.3] |
| 275 | lappend coords {*}[to_grid 7 5] |
| 276 | draw_pad_route $coords $wire_width |
| 277 | |
| 278 | # E8 mprj_io[3]/CSB |
| 279 | set coords [list $rightpadx [lindex $rightpads 3]] |
| 280 | lappend coords {*}[to_grid 12.4 4] |
| 281 | lappend coords {*}[to_grid 10 4] |
| 282 | lappend coords {*}[to_grid 9 5] |
| 283 | draw_pad_route $coords $wire_width |
| 284 | |
| 285 | # F8 mrpj_io[4]/SCK |
| 286 | set coords [list $rightpadx [lindex $rightpads 4]] |
| 287 | lappend coords {*}[to_grid 12.5 5] |
| 288 | lappend coords {*}[to_grid 11 5] |
| 289 | draw_pad_route $coords $wire_width |
| 290 | |
| 291 | # A7 mrpj_io[32] |
| 292 | set coords [list $leftpadx [lindex $leftpads 7]] |
| 293 | lappend coords {*}[to_grid -0.2 7] |
| 294 | lappend coords {*}[to_grid 1 7] |
| 295 | draw_pad_route $coords $wire_width |
| 296 | |
| 297 | # B7 vssd2 |
| 298 | set coords [list $leftpadx [lindex $leftpads 8]] |
| 299 | lappend coords {*}[to_grid -0.1 7.8] |
| 300 | lappend coords {*}[to_grid 2.2 7.8] |
| 301 | lappend coords {*}[to_grid 3 7] |
| 302 | draw_pad_route $coords $wire_width |
| 303 | |
| 304 | # C7 vdda2 |
| 305 | set coords [list $leftpadx [lindex $leftpads 9]] |
| 306 | lappend coords {*}[to_grid 0.3 8.2] |
| 307 | lappend coords {*}[to_grid 2.3 8.2] |
| 308 | lappend coords {*}[to_grid 2.5 8] |
| 309 | lappend coords {*}[to_grid 4 8] |
| 310 | lappend coords {*}[to_grid 5 7] |
| 311 | draw_pad_route $coords $wire_width |
| 312 | |
| 313 | # D7 mrpj_io[0]/JTAG |
| 314 | set coords [list $rightpadx [lindex $rightpads 0]] |
| 315 | lappend coords {*}[to_grid 12.8 1.8] |
| 316 | lappend coords {*}[to_grid 10.2 1.8] |
| 317 | lappend coords {*}[to_grid 9.8 2.2] |
| 318 | lappend coords {*}[to_grid 8.6 2.2] |
| 319 | lappend coords {*}[to_grid 8.2 2.6] |
| 320 | lappend coords {*}[to_grid 8.2 5.8] |
| 321 | lappend coords {*}[to_grid 7 7] |
| 322 | draw_pad_route $coords $wire_width |
| 323 | |
| 324 | # E7 mrpj_io[5]/ser_rx |
| 325 | set coords [list $rightpadx [lindex $rightpads 5]] |
| 326 | lappend coords {*}[to_grid 12.6 6] |
| 327 | lappend coords {*}[to_grid 10 6] |
| 328 | lappend coords {*}[to_grid 9 7] |
| 329 | draw_pad_route $coords $wire_width |
| 330 | |
| 331 | # F7 mprj_io[6]/ser_tx |
| 332 | set coords [list $rightpadx [lindex $rightpads 6]] |
| 333 | lappend coords {*}[to_grid 12.7 7] |
| 334 | lappend coords {*}[to_grid 11 7] |
| 335 | draw_pad_route $coords $wire_width |
| 336 | |
| 337 | # A6 mprj_io[31] |
| 338 | set coords [list $leftpadx [lindex $leftpads 10]] |
| 339 | lappend coords {*}[to_grid -0.3 10.3] |
| 340 | lappend coords {*}[to_grid 1 9] |
| 341 | draw_pad_route $coords $wire_width |
| 342 | |
| 343 | # B6 mprj_io[30] |
| 344 | set coords [list $leftpadx [lindex $leftpads 11]] |
| 345 | lappend coords {*}[to_grid -0.5 10.8] |
| 346 | lappend coords {*}[to_grid -0.3 10.8] |
| 347 | lappend coords {*}[to_grid 0.5 10] |
| 348 | lappend coords {*}[to_grid 2 10] |
| 349 | lappend coords {*}[to_grid 3 9] |
| 350 | draw_pad_route $coords $wire_width |
| 351 | |
| 352 | # C6 vssio/vssa/vssd: Connects to D6, D5, C5 |
| 353 | set coords [to_grid 5 9] |
| 354 | lappend coords {*}[to_grid 5.65 9] |
| 355 | lappend coords {*}[to_grid 5.85 9.2] |
| 356 | lappend coords {*}[to_grid 6 9.2] |
| 357 | draw_pad_route $coords $wire_width |
| 358 | |
| 359 | # D6 vssio/vssa/vssd |
| 360 | set coords [to_grid 7 9] |
| 361 | lappend coords {*}[to_grid 6.35 9] |
| 362 | lappend coords {*}[to_grid 6.15 8.8] |
| 363 | lappend coords {*}[to_grid 6 8.8] |
| 364 | draw_pad_route $coords $wire_width |
| 365 | |
| 366 | # D6 vssio/vssa/vssd also goes to: |
| 367 | set coords [list [lindex $bottompads 0] $bottompady] |
| 368 | lappend coords {*}[to_grid 0.9 0.2] |
| 369 | lappend coords {*}[to_grid 1.3 0.2] |
| 370 | lappend coords {*}[to_grid 2 0.9] |
| 371 | lappend coords {*}[to_grid 2 1.5] |
| 372 | lappend coords {*}[to_grid 2.3 1.8] |
| 373 | lappend coords {*}[to_grid 3.5 1.8] |
| 374 | lappend coords {*}[to_grid 4.2 2.5] |
| 375 | lappend coords {*}[to_grid 4.2 3.5] |
| 376 | lappend coords {*}[to_grid 4.5 3.8] |
| 377 | lappend coords {*}[to_grid 5.3 3.8] |
| 378 | lappend coords {*}[to_grid 5.8 3.3] |
| 379 | lappend coords {*}[to_grid 5.8 2.5] |
| 380 | lappend coords {*}[to_grid 5.3 2] |
| 381 | lappend coords {*}[to_grid 4.8 2] |
| 382 | lappend coords {*}[to_grid 4.2 1.4] |
| 383 | lappend coords {*}[to_grid 4.2 0.3] |
| 384 | lappend coords {*}[list [lindex $bottompads 3] $bottompady] |
| 385 | draw_pad_route $coords $wire_width |
| 386 | |
| 387 | # D6 vssio/vssa/vssd also goes to: |
| 388 | set coords [list [lindex $bottompads 9] $bottompady] |
| 389 | lappend coords {*}[to_grid 10 0.3] |
| 390 | lappend coords {*}[to_grid 10 1.4] |
| 391 | lappend coords {*}[to_grid 9.6 1.8] |
| 392 | lappend coords {*}[to_grid 8.5 1.8] |
| 393 | lappend coords {*}[to_grid 7.8 2.5] |
| 394 | lappend coords {*}[to_grid 7.8 5.5] |
| 395 | lappend coords {*}[to_grid 7.3 6] |
| 396 | lappend coords {*}[to_grid 6.2 6] |
| 397 | draw_pad_route $coords $wire_width |
| 398 | |
| 399 | # D6 vssio/vssa/vssd also goes to: |
| 400 | set coords [list [lindex $toppads 5] $toppady] |
| 401 | lappend coords {*}[to_grid 6 19.7] |
| 402 | lappend coords {*}[to_grid 6 16] |
| 403 | lappend coords {*}[to_grid 5.8 15.8] |
| 404 | lappend coords {*}[to_grid 5.8 12.2] |
| 405 | lappend coords {*}[to_grid 6 12] |
| 406 | lappend coords {*}[to_grid 6 8] |
| 407 | lappend coords {*}[to_grid 6.2 7.8] |
| 408 | lappend coords {*}[to_grid 6.2 4.3] |
| 409 | lappend coords {*}[to_grid 5.5 3.6] |
| 410 | draw_pad_route $coords $wire_width |
| 411 | |
| 412 | # E6 vssa1 |
| 413 | set coords [list $rightpadx [lindex $rightpads 7]] |
| 414 | lappend coords {*}[to_grid 12.8 8] |
| 415 | lappend coords {*}[to_grid 10 8] |
| 416 | lappend coords {*}[to_grid 9 9] |
| 417 | draw_pad_route $coords $wire_width |
| 418 | |
| 419 | # E6 vssa1 also goes to |
| 420 | set coords [list [lindex $toppads 9] $toppady] |
| 421 | lappend coords {*}[to_grid 10 19.5] |
| 422 | lappend coords {*}[to_grid 10 18.5] |
| 423 | lappend coords {*}[to_grid 9.5 18] |
| 424 | lappend coords {*}[to_grid 8.5 18] |
| 425 | lappend coords {*}[to_grid 8 17.5] |
| 426 | lappend coords {*}[to_grid 8 16.5] |
| 427 | lappend coords {*}[to_grid 7.5 16] |
| 428 | lappend coords {*}[to_grid 6.7 16] |
| 429 | lappend coords {*}[to_grid 6.2 15.5] |
| 430 | lappend coords {*}[to_grid 6.2 12.6] |
| 431 | lappend coords {*}[to_grid 6.7 12] |
| 432 | lappend coords {*}[to_grid 7.3 12] |
| 433 | lappend coords {*}[to_grid 7.8 11.5] |
| 434 | lappend coords {*}[to_grid 7.8 10.2] |
| 435 | lappend coords {*}[to_grid 8 10] |
| 436 | lappend coords {*}[to_grid 8 9.3] |
| 437 | lappend coords {*}[to_grid 8.3 9] |
| 438 | lappend coords {*}[to_grid 9 9] |
| 439 | draw_pad_route $coords $wire_width |
| 440 | |
| 441 | # F6 vssd1 |
| 442 | set coords [list $rightpadx [lindex $rightpads 8]] |
| 443 | lappend coords {*}[to_grid 12.9 9] |
| 444 | lappend coords {*}[to_grid 11 9] |
| 445 | draw_pad_route $coords $wire_width |
| 446 | |
| 447 | # A5 mprj_io[29] |
| 448 | set coords [list $leftpadx [lindex $leftpads 12]] |
| 449 | lappend coords {*}[to_grid 0.2 11] |
| 450 | lappend coords {*}[to_grid 1 11] |
| 451 | draw_pad_route $coords $wire_width |
| 452 | |
| 453 | # B5 mprj_io[28] |
| 454 | set coords [list $leftpadx [lindex $leftpads 13]] |
| 455 | lappend coords {*}[to_grid 0 12] |
| 456 | lappend coords {*}[to_grid 2 12] |
| 457 | lappend coords {*}[to_grid 3 11] |
| 458 | draw_pad_route $coords $wire_width |
| 459 | |
| 460 | # C5 vssio/vssa/vssd : Connects to D6, C6, D5 |
| 461 | set coords [to_grid 5 11] |
| 462 | lappend coords {*}[to_grid 5.65 11] |
| 463 | lappend coords {*}[to_grid 5.85 11.2] |
| 464 | lappend coords {*}[to_grid 6 11.2] |
| 465 | draw_pad_route $coords $wire_width |
| 466 | |
| 467 | # D5 vssio/vssa/vssd : Connects to D6, C6, C5 |
| 468 | set coords [to_grid 7 11] |
| 469 | lappend coords {*}[to_grid 6.35 11] |
| 470 | lappend coords {*}[to_grid 6.15 10.8] |
| 471 | lappend coords {*}[to_grid 6 10.8] |
| 472 | draw_pad_route $coords $wire_width |
| 473 | |
| 474 | # E5 mprj_io[7]/irq |
| 475 | set coords [list $rightpadx [lindex $rightpads 10]] |
| 476 | lappend coords {*}[to_grid 12.4 10.2] |
| 477 | lappend coords {*}[to_grid 9.8 10.2] |
| 478 | lappend coords {*}[to_grid 9 11] |
| 479 | draw_pad_route $coords $wire_width |
| 480 | |
| 481 | # F5 mprj_io[8]/flash2 csb |
| 482 | set coords [list $rightpadx [lindex $rightpads 11]] |
| 483 | lappend coords {*}[to_grid 12.3 11] |
| 484 | lappend coords {*}[to_grid 11 11] |
| 485 | draw_pad_route $coords $wire_width |
| 486 | |
| 487 | # A4 mprj_io[27] |
| 488 | set coords [list $leftpadx [lindex $leftpads 14]] |
| 489 | lappend coords {*}[to_grid -0.1 13] |
| 490 | lappend coords {*}[to_grid 1 13] |
| 491 | draw_pad_route $coords $wire_width |
| 492 | |
| 493 | # B4 mprj_io[26] |
| 494 | set coords [list $leftpadx [lindex $leftpads 15]] |
| 495 | lappend coords {*}[to_grid -0.2 14] |
| 496 | lappend coords {*}[to_grid 2 14] |
| 497 | lappend coords {*}[to_grid 3 13] |
| 498 | draw_pad_route $coords $wire_width |
| 499 | |
| 500 | # C4 vddio |
| 501 | set coords [list $leftpadx [lindex $leftpads 1]] |
| 502 | lappend coords {*}[to_grid -0.8 2] |
| 503 | lappend coords {*}[to_grid 1.8 2] |
| 504 | lappend coords {*}[to_grid 2 2.2] |
| 505 | lappend coords {*}[to_grid 3.3 2.2] |
| 506 | lappend coords {*}[to_grid 3.8 2.7] |
| 507 | lappend coords {*}[to_grid 3.8 3.7] |
| 508 | lappend coords {*}[to_grid 4.3 4.2] |
| 509 | lappend coords {*}[to_grid 5.3 4.2] |
| 510 | lappend coords {*}[to_grid 5.8 4.7] |
| 511 | lappend coords {*}[to_grid 5.8 7.4] |
| 512 | lappend coords {*}[to_grid 5.2 8] |
| 513 | lappend coords {*}[to_grid 4.7 8] |
| 514 | lappend coords {*}[to_grid 4 8.7] |
| 515 | lappend coords {*}[to_grid 4 13] |
| 516 | draw_pad_route $coords $wire_width |
| 517 | |
| 518 | # C4 vddio is also: |
| 519 | set coords [list $leftpadx [lindex $leftpads 18]] |
| 520 | lappend coords {*}[to_grid 0.1 16.2] |
| 521 | lappend coords {*}[to_grid 1.6 16.2] |
| 522 | lappend coords {*}[to_grid 2 15.8] |
| 523 | lappend coords {*}[to_grid 3.4 15.8] |
| 524 | lappend coords {*}[to_grid 4 15.2] |
| 525 | lappend coords {*}[to_grid 4 13] |
| 526 | lappend coords {*}[to_grid 5 13] |
| 527 | draw_pad_route $coords $wire_width |
| 528 | |
| 529 | # D4 vdda1 |
| 530 | set coords [list $rightpadx [lindex $rightpads 9]] |
| 531 | lappend coords {*}[to_grid 12.8 9.8] |
| 532 | lappend coords {*}[to_grid 9.7 9.8] |
| 533 | lappend coords {*}[to_grid 9.5 10] |
| 534 | lappend coords {*}[to_grid 8.8 10] |
| 535 | lappend coords {*}[to_grid 8.2 10.6] |
| 536 | lappend coords {*}[to_grid 8.2 11.8] |
| 537 | lappend coords {*}[to_grid 7 13] |
| 538 | draw_pad_route $coords $wire_width |
| 539 | |
| 540 | # D4 vdda1 is also: |
| 541 | set coords [list $rightpadx [lindex $rightpads 16]] |
| 542 | lappend coords {*}[to_grid 12.6 15.8] |
| 543 | lappend coords {*}[to_grid 8.4 15.8] |
| 544 | lappend coords {*}[to_grid 8 15.4] |
| 545 | lappend coords {*}[to_grid 8 12.4] |
| 546 | lappend coords {*}[to_grid 7.8 12.2] |
| 547 | draw_pad_route $coords $wire_width |
| 548 | |
| 549 | # E4 mprj_io[9]/flash2 sck |
| 550 | set coords [list $rightpadx [lindex $rightpads 12]] |
| 551 | lappend coords {*}[to_grid 12.4 12] |
| 552 | lappend coords {*}[to_grid 10 12] |
| 553 | lappend coords {*}[to_grid 9 13] |
| 554 | draw_pad_route $coords $wire_width |
| 555 | |
| 556 | # F4 mprj_io[10]/flash2 io0 |
| 557 | set coords [list $rightpadx [lindex $rightpads 13]] |
| 558 | lappend coords {*}[to_grid 12.5 13] |
| 559 | lappend coords {*}[to_grid 11 13] |
| 560 | draw_pad_route $coords $wire_width |
| 561 | |
| 562 | # A3 mprj_io[25] |
| 563 | set coords [list $leftpadx [lindex $leftpads 16]] |
| 564 | lappend coords {*}[to_grid -0.4 15] |
| 565 | lappend coords {*}[to_grid 1 15] |
| 566 | draw_pad_route $coords $wire_width |
| 567 | |
| 568 | # B3 vssa2 |
| 569 | set coords [list $leftpadx [lindex $leftpads 17]] |
| 570 | lappend coords {*}[to_grid -0.4 15.8] |
| 571 | lappend coords {*}[to_grid 0 15.8] |
| 572 | lappend coords {*}[to_grid 1.3 15.8] |
| 573 | lappend coords {*}[to_grid 2.2 15] |
| 574 | lappend coords {*}[to_grid 3 15] |
| 575 | draw_pad_route $coords $wire_width |
| 576 | |
| 577 | # C3 mprj_io[24] |
| 578 | set coords [list $leftpadx [lindex $leftpads 20]] |
| 579 | lappend coords {*}[to_grid 0 18] |
| 580 | lappend coords {*}[to_grid 1.5 18] |
| 581 | lappend coords {*}[to_grid 2 17.5] |
| 582 | lappend coords {*}[to_grid 2 16.5] |
| 583 | lappend coords {*}[to_grid 2.3 16.2] |
| 584 | lappend coords {*}[to_grid 3.8 16.2] |
| 585 | lappend coords {*}[to_grid 5 15] |
| 586 | draw_pad_route $coords $wire_width |
| 587 | |
| 588 | # D3 mprj_io[13] |
| 589 | set coords [list $rightpadx [lindex $rightpads 17]] |
| 590 | lappend coords {*}[to_grid 12 16.2] |
| 591 | lappend coords {*}[to_grid 8.2 16.2] |
| 592 | lappend coords {*}[to_grid 7 15] |
| 593 | draw_pad_route $coords $wire_width |
| 594 | |
| 595 | # E3 mprj_io[11]/flash2 io1 |
| 596 | set coords [list $rightpadx [lindex $rightpads 14]] |
| 597 | lappend coords {*}[to_grid 12.6 14] |
| 598 | lappend coords {*}[to_grid 10 14] |
| 599 | lappend coords {*}[to_grid 9 15] |
| 600 | draw_pad_route $coords $wire_width |
| 601 | |
| 602 | # F3 mprj_io[12] |
| 603 | set coords [list $rightpadx [lindex $rightpads 15]] |
| 604 | lappend coords {*}[to_grid 12.7 15] |
| 605 | lappend coords {*}[to_grid 11 15] |
| 606 | draw_pad_route $coords $wire_width |
| 607 | |
| 608 | # A2 vccd2 |
| 609 | set coords [list $leftpadx [lindex $leftpads 19]] |
| 610 | lappend coords {*}[to_grid -0.4 17.5] |
| 611 | lappend coords {*}[to_grid 0.5 17.5] |
| 612 | lappend coords {*}[to_grid 1 17] |
| 613 | draw_pad_route $coords $wire_width |
| 614 | |
| 615 | # B2 mprj_io[22] |
| 616 | set coords [list [lindex $toppads 1] $toppady] |
| 617 | lappend coords {*}[to_grid 2 19.7] |
| 618 | lappend coords {*}[to_grid 2 18] |
| 619 | lappend coords {*}[to_grid 3 17] |
| 620 | draw_pad_route $coords $wire_width |
| 621 | |
| 622 | # C2 mprj_io[20] |
| 623 | set coords [list [lindex $toppads 3] $toppady] |
| 624 | lappend coords {*}[to_grid 4 19.7] |
| 625 | lappend coords {*}[to_grid 4 18] |
| 626 | lappend coords {*}[to_grid 5 17] |
| 627 | draw_pad_route $coords $wire_width |
| 628 | |
| 629 | # D2 mprj_io[17] |
| 630 | set coords [list [lindex $toppads 7] $toppady] |
| 631 | lappend coords {*}[to_grid 8 19.7] |
| 632 | lappend coords {*}[to_grid 8 18] |
| 633 | lappend coords {*}[to_grid 7 17] |
| 634 | draw_pad_route $coords $wire_width |
| 635 | |
| 636 | # E2 mprj_io[14] |
| 637 | set coords [list $rightpadx [lindex $rightpads 19]] |
| 638 | lappend coords {*}[to_grid 12.6 18.5] |
| 639 | lappend coords {*}[to_grid 12 18.5] |
| 640 | lappend coords {*}[to_grid 11.5 18] |
| 641 | lappend coords {*}[to_grid 10 18] |
| 642 | lappend coords {*}[to_grid 9 17] |
| 643 | draw_pad_route $coords $wire_width |
| 644 | |
| 645 | # F2 vccd1 |
| 646 | set coords [list $rightpadx [lindex $rightpads 18]] |
| 647 | lappend coords {*}[to_grid 12.5 17.5] |
| 648 | lappend coords {*}[to_grid 11.5 17.5] |
| 649 | lappend coords {*}[to_grid 11 17] |
| 650 | draw_pad_route $coords $wire_width |
| 651 | |
| 652 | # A1 mprj_io[23] |
| 653 | set coords [list [lindex $toppads 0] $toppady] |
| 654 | lappend coords {*}[to_grid 1 19.7] |
| 655 | lappend coords {*}[to_grid 1 19] |
| 656 | draw_pad_route $coords $wire_width |
| 657 | |
| 658 | # B1 mprj_io[21] |
| 659 | set coords [list [lindex $toppads 2] $toppady] |
| 660 | lappend coords {*}[to_grid 3 19.7] |
| 661 | lappend coords {*}[to_grid 3 19] |
| 662 | draw_pad_route $coords $wire_width |
| 663 | |
| 664 | # C1 mprj_io[19] |
| 665 | set coords [list [lindex $toppads 4] $toppady] |
| 666 | lappend coords {*}[to_grid 5 19.7] |
| 667 | lappend coords {*}[to_grid 5 19] |
| 668 | draw_pad_route $coords $wire_width |
| 669 | |
| 670 | # D1 mrpj_io[18] |
| 671 | set coords [list [lindex $toppads 6] $toppady] |
| 672 | lappend coords {*}[to_grid 7 19.7] |
| 673 | lappend coords {*}[to_grid 7 19] |
| 674 | draw_pad_route $coords $wire_width |
| 675 | |
| 676 | # E1 mprj_io[16] |
| 677 | set coords [list [lindex $toppads 8] $toppady] |
| 678 | lappend coords {*}[to_grid 9.5 20] |
| 679 | lappend coords {*}[to_grid 9.5 19.5] |
| 680 | lappend coords {*}[to_grid 9 19] |
| 681 | draw_pad_route $coords $wire_width |
| 682 | |
| 683 | # F1 mprj_io[15] |
| 684 | set coords [list [lindex $toppads 10] $toppady] |
| 685 | lappend coords {*}[to_grid 11 19.7] |
| 686 | lappend coords {*}[to_grid 11 19] |
| 687 | draw_pad_route $coords $wire_width |
| 688 | |