Run It
Every instrument is mocked, so the example runs without hardware.
bash
git clone https://github.com/tofupilot/panelscd panelstofupilot run probe-card-touchdownThe procedure
procedure.yaml
name: Probe Card Touchdownversion: 1.0.0plugs: - key: probe_card name: Probe card and tester python: plugs.probe_card:ProbeCardmain: - key: sort name: Wafer sort python: phases.probe_card_touchdown:touchdowns measurements: - key: touchdown_time name: Mean touchdown test time unit: "ms" validators: - operator: "<=" expected_value: 700 - key: site_yield_spread name: Yield spread between sites unit: "%" validators: - operator: "<=" expected_value: 5 ui: panel: panels/touchdown.htmlThe panel
panels/touchdown.html
<div class="inst"><svg viewBox="0 0 320 240" role="img"><rect x="1" y="1" width="318" height="238" rx="8" fill="#06080a" stroke="#20262c"/><circle cx="160" cy="120" r="104" fill="#0f3d2a" stroke="#1d5a42" stroke-width="2"/><circle cx="160" cy="120" r="66" fill="#06080a" stroke="#c9a86a" stroke-width="1.5"/><circle cx="258" cy="120" r="1.6" fill="#d4a63a"/><circle cx="257.6" cy="128.5" r="1.6" fill="#d4a63a"/><circle cx="256.5" cy="137" r="1.6" fill="#d4a63a"/><circle cx="254.7" cy="145.4" r="1.6" fill="#d4a63a"/><circle cx="252.1" cy="153.5" r="1.6" fill="#d4a63a"/><circle cx="248.8" cy="161.4" r="1.6" fill="#d4a63a"/><circle cx="244.9" cy="169" r="1.6" fill="#d4a63a"/><circle cx="240.3" cy="176.2" r="1.6" fill="#d4a63a"/><circle cx="235.1" cy="183" r="1.6" fill="#d4a63a"/><circle cx="229.3" cy="189.3" r="1.6" fill="#d4a63a"/><circle cx="223" cy="195.1" r="1.6" fill="#d4a63a"/><circle cx="216.2" cy="200.3" r="1.6" fill="#d4a63a"/><circle cx="209" cy="204.9" r="1.6" fill="#d4a63a"/><circle cx="201.4" cy="208.8" r="1.6" fill="#d4a63a"/><circle cx="193.5" cy="212.1" r="1.6" fill="#d4a63a"/><circle cx="185.4" cy="214.7" r="1.6" fill="#d4a63a"/><circle cx="177" cy="216.5" r="1.6" fill="#d4a63a"/><circle cx="168.5" cy="217.6" r="1.6" fill="#d4a63a"/><circle cx="160" cy="218" r="1.6" fill="#d4a63a"/><circle cx="151.5" cy="217.6" r="1.6" fill="#d4a63a"/><circle cx="143" cy="216.5" r="1.6" fill="#d4a63a"/><circle cx="134.6" cy="214.7" r="1.6" fill="#d4a63a"/><circle cx="126.5" cy="212.1" r="1.6" fill="#d4a63a"/><circle cx="118.6" cy="208.8" r="1.6" fill="#d4a63a"/><circle cx="111" cy="204.9" r="1.6" fill="#d4a63a"/><circle cx="103.8" cy="200.3" r="1.6" fill="#d4a63a"/><circle cx="97" cy="195.1" r="1.6" fill="#d4a63a"/><circle cx="90.7" cy="189.3" r="1.6" fill="#d4a63a"/><circle cx="84.9" cy="183" r="1.6" fill="#d4a63a"/><circle cx="79.7" cy="176.2" r="1.6" fill="#d4a63a"/><circle cx="75.1" cy="169" r="1.6" fill="#d4a63a"/><circle cx="71.2" cy="161.4" r="1.6" fill="#d4a63a"/><circle cx="67.9" cy="153.5" r="1.6" fill="#d4a63a"/><circle cx="65.3" cy="145.4" r="1.6" fill="#d4a63a"/><circle cx="63.5" cy="137" r="1.6" fill="#d4a63a"/><circle cx="62.4" cy="128.5" r="1.6" fill="#d4a63a"/><circle cx="62" cy="120" r="1.6" fill="#d4a63a"/><circle cx="62.4" cy="111.5" r="1.6" fill="#d4a63a"/><circle cx="63.5" cy="103" r="1.6" fill="#d4a63a"/><circle cx="65.3" cy="94.6" r="1.6" fill="#d4a63a"/><circle cx="67.9" cy="86.5" r="1.6" fill="#d4a63a"/><circle cx="71.2" cy="78.6" r="1.6" fill="#d4a63a"/><circle cx="75.1" cy="71" r="1.6" fill="#d4a63a"/><circle cx="79.7" cy="63.8" r="1.6" fill="#d4a63a"/><circle cx="84.9" cy="57" r="1.6" fill="#d4a63a"/><circle cx="90.7" cy="50.7" r="1.6" fill="#d4a63a"/><circle cx="97" cy="44.9" r="1.6" fill="#d4a63a"/><circle cx="103.8" cy="39.7" r="1.6" fill="#d4a63a"/><circle cx="111" cy="35.1" r="1.6" fill="#d4a63a"/><circle cx="118.6" cy="31.2" r="1.6" fill="#d4a63a"/><circle cx="126.5" cy="27.9" r="1.6" fill="#d4a63a"/><circle cx="134.6" cy="25.3" r="1.6" fill="#d4a63a"/><circle cx="143" cy="23.5" r="1.6" fill="#d4a63a"/><circle cx="151.5" cy="22.4" r="1.6" fill="#d4a63a"/><circle cx="160" cy="22" r="1.6" fill="#d4a63a"/><circle cx="168.5" cy="22.4" r="1.6" fill="#d4a63a"/><circle cx="177" cy="23.5" r="1.6" fill="#d4a63a"/><circle cx="185.4" cy="25.3" r="1.6" fill="#d4a63a"/><circle cx="193.5" cy="27.9" r="1.6" fill="#d4a63a"/><circle cx="201.4" cy="31.2" r="1.6" fill="#d4a63a"/><circle cx="209" cy="35.1" r="1.6" fill="#d4a63a"/><circle cx="216.2" cy="39.7" r="1.6" fill="#d4a63a"/><circle cx="223" cy="44.9" r="1.6" fill="#d4a63a"/><circle cx="229.3" cy="50.7" r="1.6" fill="#d4a63a"/><circle cx="235.1" cy="57" r="1.6" fill="#d4a63a"/><circle cx="240.3" cy="63.8" r="1.6" fill="#d4a63a"/><circle cx="244.9" cy="71" r="1.6" fill="#d4a63a"/><circle cx="248.8" cy="78.6" r="1.6" fill="#d4a63a"/><circle cx="252.1" cy="86.5" r="1.6" fill="#d4a63a"/><circle cx="254.7" cy="94.6" r="1.6" fill="#d4a63a"/><circle cx="256.5" cy="103" r="1.6" fill="#d4a63a"/><circle cx="257.6" cy="111.5" r="1.6" fill="#d4a63a"/><g class="st" data-bind="ui.s0"><rect x="120" y="80" width="38" height="38" rx="3" stroke="#3a434c"/></g><g class="st" data-bind="ui.s1"><rect x="162" y="80" width="38" height="38" rx="3" stroke="#3a434c"/></g><g class="st" data-bind="ui.s2"><rect x="120" y="122" width="38" height="38" rx="3" stroke="#3a434c"/></g><g class="st" data-bind="ui.s3"><rect x="162" y="122" width="38" height="38" rx="3" stroke="#3a434c"/></g><path d="M74.4 76.5L129.4 83M78.7 69L123 89.4M83.6 61.9L129.4 83M89.1 55.2L123 89.4M95.2 49.1L129.4 83M101.9 43.6L123 89.4M109 38.7L129.4 83M116.5 34.4L123 89.4M203.5 34.4L190.6 83M211 38.7L197 89.4M218.1 43.6L190.6 83M224.8 49.1L197 89.4M230.9 55.2L190.6 83M236.4 61.9L197 89.4M241.3 69L190.6 83M245.6 76.5L197 89.4M116.5 205.6L129.4 157M109 201.3L123 150.6M101.9 196.4L129.4 157M95.2 190.9L123 150.6M89.1 184.8L129.4 157M83.6 178.1L123 150.6M78.7 171L129.4 157M74.4 163.5L123 150.6M245.6 163.5L190.6 157M241.3 171L197 150.6M236.4 178.1L190.6 157M230.9 184.8L197 150.6M224.8 190.9L190.6 157M218.1 196.4L197 150.6M211 201.3L190.6 157M203.5 205.6L197 150.6" stroke="#c9cfd5" stroke-width=".9" opacity=".9" fill="none"/><text class="ms" x="300" y="228" text-anchor="end" data-bind="ui.ms"></text></svg></div><style> .inst { width: min(560px, 100%); margin: 0 auto; } .inst svg { display: block; width: 100%; height: auto; } .inst text { font-family: system-ui, sans-serif; } .dp rect { fill: var(--off); } .dp.on rect, .dp[data-value=true] rect { fill: var(--on); } .led circle { fill: #2a2f35; transition: fill .15s; } .led[data-value=true] circle { fill: var(--led, #38e07a); } .ann text { fill: var(--off); transition: fill .15s; } .ann[data-value=true] text { fill: var(--on); } .d7 rect { fill: var(--off); transition: fill .08s; } .d7[data-value="0"] :is(.sa, .sb, .sc, .sd, .se, .sf) { fill: var(--on); } .d7[data-value="1"] :is(.sb, .sc) { fill: var(--on); } .d7[data-value="2"] :is(.sa, .sb, .sd, .se, .sg) { fill: var(--on); } .d7[data-value="3"] :is(.sa, .sb, .sc, .sd, .sg) { fill: var(--on); } .d7[data-value="4"] :is(.sb, .sc, .sf, .sg) { fill: var(--on); } .d7[data-value="5"] :is(.sa, .sc, .sd, .sf, .sg) { fill: var(--on); } .d7[data-value="6"] :is(.sa, .sc, .sd, .se, .sf, .sg) { fill: var(--on); } .d7[data-value="7"] :is(.sa, .sb, .sc) { fill: var(--on); } .d7[data-value="8"] :is(.sa, .sb, .sc, .sd, .se, .sf, .sg) { fill: var(--on); } .d7[data-value="9"] :is(.sa, .sb, .sc, .sd, .sf, .sg) { fill: var(--on); } .d7[data-value="-"] :is(.sg) { fill: var(--on); } .d7[data-value="E"] :is(.sa, .sd, .se, .sf, .sg) { fill: var(--on); } .d7[data-value="U"] :is(.sb, .sc, .sd, .se, .sf) { fill: var(--on); } .d7[data-value="r"] :is(.se, .sg) { fill: var(--on); } .st rect { fill: #1f262e; transition: fill .12s linear; } .st[data-value="1"] rect { fill: #38e07a; } .st[data-value="2"] rect { fill: #f2c230; } .st[data-value="3"] rect { fill: #ff9a2e; } .st[data-value="4"] rect { fill: #a78bfa; } .st[data-value="5"] rect { fill: #e5383b; } .ms { font: 600 11px ui-monospace, Menlo, monospace; fill: #c3ccd5; }</style>The phase
phases/probe_card_touchdown.py
"""Steps the 2 x 2 probe card across the wafer. At every touchdown `ui.s0` to`ui.s3` show the bin of the die under each site (0 when the site is off thewafer) and `ui.ms` the touchdown's test time. The run records the mean testtime and the yield spread between the four sites."""import timedef touchdowns(ui, measurements, probe_card): times, tested, good = [], [0] * 4, [0] * 4 for _ in range(probe_card.touchdowns()): bins, ms = probe_card.touchdown() for s, b in enumerate(bins): setattr(ui, f"s{s}", b) if b: tested[s] += 1 good[s] += b == 1 ui.ms = f"{ms:.0f} ms" times.append(ms) time.sleep(0.1) yields = [100 * g / t for g, t in zip(good, tested)] measurements.touchdown_time = round(sum(times) / len(times), 1) measurements.site_yield_spread = round(max(yields) - min(yields), 2) time.sleep(1.5)The mocked instrument
plugs/probe_card.py
"""Mock 2 x 2 multi-site probe card on the tester: each touchdown returns thebin of every site and the touchdown's test time. Replace it with your testerdriver."""import jsonimport mathTOUCHDOWNS = json.loads("[[1,8,[-1,-1,7,8]],[1,10,[-1,0,9,10]],[1,12,[1,2,11,12]],[1,14,[3,4,13,14]],[1,16,[5,6,15,16]],[1,18,[-1,-1,17,18]],[3,21,[33,-1,50,51]],[3,19,[31,32,48,49]],[3,17,[29,30,46,47]],[3,15,[27,28,44,45]],[3,13,[25,26,42,43]],[3,11,[23,24,40,41]],[3,9,[21,22,38,39]],[3,7,[19,20,36,37]],[3,5,[-1,-1,34,35]],[5,4,[52,53,72,73]],[5,6,[54,55,74,75]],[5,8,[56,57,76,77]],[5,10,[58,59,78,79]],[5,12,[60,61,80,81]],[5,14,[62,63,82,83]],[5,16,[64,65,84,85]],[5,18,[66,67,86,87]],[5,20,[68,69,88,89]],[5,22,[70,71,90,91]],[5,24,[-1,-1,92,-1]],[7,24,[114,115,138,139]],[7,22,[112,113,136,137]],[7,20,[110,111,134,135]],[7,18,[108,109,132,133]],[7,16,[106,107,130,131]],[7,14,[104,105,128,129]],[7,12,[102,103,126,127]],[7,10,[100,101,124,125]],[7,8,[98,99,122,123]],[7,6,[96,97,120,121]],[7,4,[94,95,118,119]],[7,2,[-1,93,116,117]],[9,2,[140,141,165,166]],[9,4,[142,143,167,168]],[9,6,[144,145,169,170]],[9,8,[146,147,171,172]],[9,10,[148,149,173,174]],[9,12,[150,151,175,176]],[9,14,[152,153,177,178]],[9,16,[154,155,179,180]],[9,18,[156,157,181,182]],[9,20,[158,159,183,184]],[9,22,[160,161,185,186]],[9,24,[162,163,187,188]],[9,26,[164,-1,189,-1]],[11,25,[214,215,240,241]],[11,23,[212,213,238,239]],[11,21,[210,211,236,237]],[11,19,[208,209,234,235]],[11,17,[206,207,232,233]],[11,15,[204,205,230,231]],[11,13,[202,203,228,229]],[11,11,[200,201,226,227]],[11,9,[198,199,224,225]],[11,7,[196,197,222,223]],[11,5,[194,195,220,221]],[11,3,[192,193,218,219]],[11,1,[190,191,216,217]],[13,1,[242,243,269,270]],[13,3,[244,245,271,272]],[13,5,[246,247,273,274]],[13,7,[248,249,275,276]],[13,9,[250,251,277,278]],[13,11,[252,253,279,280]],[13,13,[254,255,281,282]],[13,15,[256,257,283,284]],[13,17,[258,259,285,286]],[13,19,[260,261,287,288]],[13,21,[262,263,289,290]],[13,23,[264,265,291,292]],[13,25,[266,267,293,294]],[13,27,[268,-1,295,-1]],[15,27,[322,-1,-1,-1]],[15,25,[320,321,347,348]],[15,23,[318,319,345,346]],[15,21,[316,317,343,344]],[15,19,[314,315,341,342]],[15,17,[312,313,339,340]],[15,15,[310,311,337,338]],[15,13,[308,309,335,336]],[15,11,[306,307,333,334]],[15,9,[304,305,331,332]],[15,7,[302,303,329,330]],[15,5,[300,301,327,328]],[15,3,[298,299,325,326]],[15,1,[296,297,323,324]],[17,1,[349,350,-1,375]],[17,3,[351,352,376,377]],[17,5,[353,354,378,379]],[17,7,[355,356,380,381]],[17,9,[357,358,382,383]],[17,11,[359,360,384,385]],[17,13,[361,362,386,387]],[17,15,[363,364,388,389]],[17,17,[365,366,390,391]],[17,19,[367,368,392,393]],[17,21,[369,370,394,395]],[17,23,[371,372,396,397]],[17,25,[373,374,398,399]],[19,24,[422,423,445,446]],[19,22,[420,421,443,444]],[19,20,[418,419,441,442]],[19,18,[416,417,439,440]],[19,16,[414,415,437,438]],[19,14,[412,413,435,436]],[19,12,[410,411,433,434]],[19,10,[408,409,431,432]],[19,8,[406,407,429,430]],[19,6,[404,405,427,428]],[19,4,[402,403,425,426]],[19,2,[400,401,-1,424]],[21,3,[447,448,-1,469]],[21,5,[449,450,470,471]],[21,7,[451,452,472,473]],[21,9,[453,454,474,475]],[21,11,[455,456,476,477]],[21,13,[457,458,478,479]],[21,15,[459,460,480,481]],[21,17,[461,462,482,483]],[21,19,[463,464,484,485]],[21,21,[465,466,486,487]],[21,23,[467,468,488,489]],[23,23,[508,-1,-1,-1]],[23,21,[506,507,524,525]],[23,19,[504,505,522,523]],[23,17,[502,503,520,521]],[23,15,[500,501,518,519]],[23,13,[498,499,516,517]],[23,11,[496,497,514,515]],[23,9,[494,495,512,513]],[23,7,[492,493,510,511]],[23,5,[490,491,-1,509]],[25,7,[526,527,-1,-1]],[25,9,[528,529,540,541]],[25,11,[530,531,542,543]],[25,13,[532,533,544,545]],[25,15,[534,535,546,547]],[25,17,[536,537,548,549]],[25,19,[538,539,-1,-1]],[27,15,[552,-1,-1,-1]],[27,13,[550,551,-1,-1]]]")BINS = "1313111111151111111111111111111115112111111111111111121111111121311111111111131111111111111111114111311111111111111111111411111111111111111311111141111111111113111111111111411111111111111111111111111411111511111111111111111111411111111111111111111111111111111111111111111141111111111111111111111111111111111111111111111111131111121111111431111111111311111111111111411111111111111111111111114111111111111111111111111141111111111111111111111141111111111121111111111141111111111111111111121111111411111113111111111211111111111111111111111111111311111115111"class ProbeCard: def __init__(self): self.k = 0 def touchdowns(self): return len(TOUCHDOWNS) def touchdown(self): """[[bin of each site, 0 = no die], test time in ms]""" _, _, sites = TOUCHDOWNS[self.k] ms = 612 + 18 * math.sin(self.k * 1.7) self.k += 1 return [[0 if i < 0 else int(BINS[i]) for i in sites], ms]