index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="color-scheme" content="light">
  7. <title>电路板选脚查看器</title>
  8. <link rel="stylesheet" href="app.css">
  9. </head>
  10. <body>
  11. <div class="app-shell" id="app">
  12. <header class="topbar">
  13. <div class="product-block">
  14. <span class="product-mark" aria-hidden="true"></span>
  15. <div>
  16. <div class="product-title">FCB 电路板选脚查看器</div>
  17. <div class="product-meta" id="board-summary">正在载入板数据</div>
  18. </div>
  19. </div>
  20. <div class="search-block">
  21. <label class="search-field" for="board-search">
  22. <span aria-hidden="true">⌕</span>
  23. <input
  24. id="board-search"
  25. type="search"
  26. autocomplete="off"
  27. spellcheck="false"
  28. placeholder="电阻位号 / 阻值 / 网络 · 座子 · ball:R7"
  29. aria-controls="search-results"
  30. aria-autocomplete="list"
  31. >
  32. </label>
  33. <details class="search-help">
  34. <summary>搜索说明</summary>
  35. <div class="search-help-body">
  36. <button type="button" class="help-chip" data-query="R674" title="Reference Designator(器件位号)精确命中电阻">R674</button>
  37. <button type="button" class="help-chip" data-query="R674.1" title="Pad(焊盘)精确命中">R674.1</button>
  38. <button type="button" class="help-chip" data-query="PTC1" title="外设索引:立即定位 PTC1 插座与 FPGA 逻辑管脚">PTC1</button>
  39. <button type="button" class="help-chip" data-query="JTAG" title="外设索引:立即定位 JTAG / SWD 插座与逻辑管脚">JTAG</button>
  40. <button type="button" class="help-chip" data-query="CON140" title="MRDIMM V1.2 Host TTL (Pin1 T11 TX, Pin2 P13 RX;Pin3/4不是GND)">CON140</button>
  41. <button type="button" class="help-chip" data-query="120R" title="当前板上可解析阻值示例(R806=120Ω)">120R</button>
  42. <button type="button" class="help-chip" data-query="0R" title="已解析 0Ω(不含 NC/未装)">0R</button>
  43. <button type="button" class="help-chip" data-query="PUL1" title="裸网络名:精确等于现有 Net 时按 exact net">PUL1</button>
  44. <button type="button" class="help-chip" data-query="net:PUL1" title="Net(网络)显式查询">net:PUL1</button>
  45. <button type="button" class="help-chip" data-query="ball:R7" title="FPGA ball,避免与电阻位号 R7 混淆">ball:R7</button>
  46. <p class="help-glossary">
  47. <button type="button" class="term" data-term="RefDes">RefDes</button>=Reference Designator(器件位号);
  48. <button type="button" class="term" data-term="Net">Net</button>=网络;
  49. <button type="button" class="term" data-term="Pad">Pad</button>=焊盘;
  50. <button type="button" class="term" data-term="PCB">PCB</button>/<button type="button" class="term" data-term="BRD">BRD</button>=板文件;
  51. <button type="button" class="term" data-term="FPGA">FPGA</button>、<button type="button" class="term" data-term="MCU">MCU</button>、<button type="button" class="term" data-term="GPIO">GPIO</button>、<button type="button" class="term" data-term="PWM">PWM</button>、<button type="button" class="term" data-term="UART">UART</button>、<button type="button" class="term" data-term="ADC">ADC</button>、<button type="button" class="term" data-term="JTAG">JTAG</button>、<button type="button" class="term" data-term="CON">CON</button>、<button type="button" class="term" data-term="TP">TP</button>、<button type="button" class="term" data-term="PL">PL</button>。
  52. </p>
  53. <p class="coverage-hint" id="value-coverage-help">阻值覆盖以 board-data.value_coverage 为准;当前示例用 120R(板上真实存在),勿默认假设 4k7 已入库。</p>
  54. </div>
  55. </details>
  56. <div id="search-results" class="search-results" role="listbox" aria-label="搜索结果" hidden></div>
  57. </div>
  58. <div class="status-cluster">
  59. <button id="open-cpld-arch" type="button" class="schematic-top-link cpld-top-btn" title="打开 CPLD 源码架构、各版本通讯方式、片上总线/ERAM/BRAM 与外部电气通信动态多级菜单">
  60. 🧬 CPLD 源码与架构
  61. </button>
  62. <button id="open-peripheral-index" type="button" class="schematic-top-link peripheral-top-btn" title="快速打开外设与接线索引面板(筛选 PTC / FAN / JTAG / UART / 电机 / 限位 / 空余插座,查看每个 Pin 的 FPGA/MCU 逻辑管脚)">
  63. 🔌 外设与接线
  64. </button>
  65. <div class="version-select-cluster">
  66. <select id="board-version-select" class="version-select" title="切换电路板物理视图 (V2.0 主板 / V2.0 风扇板 / V1.2 / V1.1)">
  67. <option value="v2_0" selected>FCB V2.0 (6400 20260914)</option>
  68. <option value="v2_0_fan">FCB_FAN V2.0 (风扇扩展板)</option>
  69. <option value="v1_2">FCB V1.2 (MRDIMM 20260717)</option>
  70. <option value="v1_1">FCB V1.1 (6400 20260625)</option>
  71. </select>
  72. </div>
  73. <div class="version-select-cluster">
  74. <select id="doc-menu-select" class="version-select" title="在线查阅原理图、电气图与深度硬件分析" onchange="if(this.value){window.open(this.value, '_blank'); this.selectedIndex=0;}">
  75. <option value="" selected>📑 硬件图纸 / 分析 ▾</option>
  76. <option value="/schematics/fcb_fpga_mcu_v2_0.pdf">📖 FCB V2.0 原理图 (0902/0717)</option>
  77. <option value="/schematics/6400_v2_0_electrical.pdf">⚡ 温控板测试 V2.0 电气图 (13页)</option>
  78. <option value="/schematics/8000_v1_2_electrical.pdf">⚡ 8000 V1.2 电气图 (10页)</option>
  79. <option value="/docs/FCB_FAN_V2_0_ANALYSIS.md">🔍 V2.0 风扇板与极性深度分析报告</option>
  80. <option value="/schematics/FCB_FPGA+MCU0611.pdf">📖 FCB 历史原理图 (0611)</option>
  81. </select>
  82. </div>
  83. <a id="schematic-top-link" href="/schematics/fcb_fpga_mcu_v2_0.pdf" target="_blank" rel="noopener" class="schematic-top-link" title="在单独标签页查看完整 16 页 FCB V2.0 原理图 PDF">
  84. 📖 原理图
  85. </a>
  86. <button id="toggle-wide-panel" type="button" class="schematic-top-link wide-panel-btn" title="切换右侧详情/架构面板宽度(标准视图 / 宽屏双栏视图)" aria-pressed="false">
  87. ⤢ 宽屏
  88. </button>
  89. <span id="app-status" class="status-badge status-loading" role="status">校验中</span>
  90. <button id="drawer-toggle" class="icon-button drawer-toggle" type="button" title="展开详情" aria-label="展开详情" aria-expanded="true">
  91. <span aria-hidden="true">⌄</span>
  92. </button>
  93. </div>
  94. </header>
  95. <main class="workspace">
  96. <section class="board-pane" aria-label="电路板工作区">
  97. <div id="stale-banner" class="stale-banner" role="alert" hidden></div>
  98. <div class="board-toolbar">
  99. <fieldset id="category-filters" class="segmented filters" aria-label="座子与电阻类别">
  100. <legend class="sr-only">座子与电阻类别</legend>
  101. <label><input type="checkbox" value="CON" checked><span>CON</span></label>
  102. <label><input type="checkbox" value="J" checked><span>J</span></label>
  103. <label><input type="checkbox" value="PL" checked><span>PL</span></label>
  104. <label><input type="checkbox" value="TP" checked><span>TP</span></label>
  105. <label><input type="checkbox" value="R"><span>电阻</span></label>
  106. <label title="显示或隐藏屏蔽固定孔位 (SH1, SH2 等)"><input id="filter-sh" type="checkbox" value="SH"><span>SH孔位</span></label>
  107. </fieldset>
  108. <fieldset id="side-controls" class="segmented side-controls" aria-label="板面正反 / 视角">
  109. <legend class="sr-only">板面正反 / 视角</legend>
  110. <label><input type="radio" name="board-side" value="front" checked><span>正面投影</span></label>
  111. <label><input type="radio" name="board-side" value="back"><span>背面实物(左右镜像)</span></label>
  112. </fieldset>
  113. <fieldset id="layer-controls" class="layer-controls" aria-label="板图图层">
  114. <legend class="sr-only">板图图层</legend>
  115. <label><input type="checkbox" value="mask" checked><span class="swatch swatch-mask"></span>阻焊/板框</label>
  116. <label><input type="checkbox" value="silk" checked><span class="swatch swatch-silk"></span>丝印</label>
  117. <label><input type="checkbox" value="copper" checked><span class="swatch swatch-copper"></span>铜层</label>
  118. <label id="photo-control" class="disabled-control" title="当前版本未配置照片叠层"><input id="photo-layer" type="checkbox" value="photo" disabled><span class="swatch swatch-photo"></span><span id="photo-label">照片未配置</span></label>
  119. </fieldset>
  120. <div class="view-tools" aria-label="视图工具">
  121. <button id="box-zoom-toggle" class="tool-pill-btn" type="button" title="框选放大模式(也可直接按住 Shift+左键拖拽 或 右键拖拽 框选放大)" aria-pressed="false">🔍 框选放大</button>
  122. <button id="zoom-out" class="icon-button" type="button" title="缩小(按住连续缩小)" aria-label="缩小"><span aria-hidden="true">−</span></button>
  123. <button id="zoom-in" class="icon-button" type="button" title="放大(按住连续放大)" aria-label="放大"><span aria-hidden="true">+</span></button>
  124. <button id="reset-view" class="icon-button" type="button" title="重置适配全板视图 (快捷键 0)" aria-label="重置视图"><span aria-hidden="true">↺</span></button>
  125. </div>
  126. </div>
  127. <div id="board-viewport" class="board-viewport">
  128. <canvas id="board-layer-canvas" class="board-layer-canvas" aria-hidden="true" hidden></canvas>
  129. <svg id="board-svg" role="img" aria-label="电路板视图" tabindex="0" preserveAspectRatio="xMidYMid meet">
  130. <g id="asset-layers" aria-hidden="true">
  131. <image id="layer-mask" href="/generated/board-mask-edge.svg" preserveAspectRatio="none"></image>
  132. <image id="layer-copper" href="/generated/board-copper.svg" preserveAspectRatio="none"></image>
  133. <image id="layer-silk" href="/generated/board-silkscreen.svg" preserveAspectRatio="none"></image>
  134. <image id="layer-photo" preserveAspectRatio="none" hidden></image>
  135. </g>
  136. <g id="net-layer" aria-hidden="true"></g>
  137. <g id="hotspot-layer"></g>
  138. <g id="pin-layer"></g>
  139. <g id="selection-layer" aria-hidden="true"></g>
  140. </svg>
  141. <canvas id="board-fast-canvas" class="board-fast-canvas" aria-hidden="true"></canvas>
  142. <div id="box-zoom-marquee" class="box-zoom-marquee" aria-hidden="true" hidden></div>
  143. <div id="board-minimap-wrap" class="board-minimap-wrap" hidden>
  144. <div class="minimap-header">
  145. <span>🦅 全局鹰眼导航 (点击/拖拽定位)</span>
  146. <span id="minimap-zoom-badge">100%</span>
  147. </div>
  148. <canvas id="board-minimap" class="board-minimap" width="220" height="44"></canvas>
  149. </div>
  150. <div id="zoom-hud-dock" class="zoom-hud-dock" aria-label="画布快捷缩放控制栏">
  151. <button id="hud-box-zoom" type="button" class="hud-btn hud-box-btn" title="框选放大模式(也可直接用 右键拖拽 或 Shift+左键拖拽 框选区域放大)" aria-pressed="false">🔍 框选</button>
  152. <button id="hud-zoom-out" type="button" class="hud-btn hud-step-btn" title="缩小(按住可连续平滑缩小)" aria-label="缩小">−</button>
  153. <input id="zoom-slider" class="zoom-slider" type="range" min="80" max="3500" step="5" value="100" title="拖动滑块丝滑无级缩放 (80% ~ 3500%)" aria-label="缩放比例滑块">
  154. <button id="hud-zoom-in" type="button" class="hud-btn hud-step-btn" title="放大(按住可连续平滑放大)" aria-label="放大">+</button>
  155. <span id="hud-zoom-value" class="hud-zoom-value" title="滚轮丝滑缩放 · 双击放大 2.2x · Shift+双击缩小 · 右键拖拽框选放大">100%</span>
  156. <div class="hud-presets" role="group" aria-label="倍率预设">
  157. <button type="button" class="hud-preset-btn is-active" data-zoom="1" title="100% 标准全览">1x</button>
  158. <button type="button" class="hud-preset-btn" data-zoom="2" title="200% 倍率">2x</button>
  159. <button type="button" class="hud-preset-btn" data-zoom="4" title="400% 倍率">4x</button>
  160. <button type="button" class="hud-preset-btn" data-zoom="8" title="800% 焊盘级微距">8x</button>
  161. <button type="button" class="hud-preset-btn" data-zoom="16" title="1600% 针脚超微距">16x</button>
  162. <button id="hud-reset-view" type="button" class="hud-preset-btn is-fit" title="重置并适配全板居中 (快捷键 0)">全板</button>
  163. </div>
  164. </div>
  165. <div id="board-loading" class="board-loading" role="status">正在载入 110 个接触点</div>
  166. <div id="board-tooltip" class="board-tooltip" role="tooltip" hidden></div>
  167. <div id="coordinate-rail-x" class="coordinate-rail" aria-hidden="true"><span>0 mm</span><span>215 mm</span><span>430 mm</span></div>
  168. </div>
  169. <footer class="board-footer">
  170. <span id="visible-count">0 个座子</span>
  171. <span class="footer-center-cluster">
  172. <span id="zoom-readout">100%</span>
  173. <button id="perf-mode-toggle" type="button" class="perf-badge" title="点击切换:Rust+WASM 超低资源硬件加速渲染 / 标准 SVG 矢量模式">⚡ Rust+WASM 极速引擎</button>
  174. </span>
  175. <span id="selection-readout">未选择</span>
  176. </footer>
  177. </section>
  178. <aside id="detail-panel" class="detail-panel" aria-label="座子与针脚详情">
  179. <div class="drawer-handle" aria-hidden="true"></div>
  180. <div class="detail-tabs" role="tablist" aria-label="详情视图">
  181. <button id="detail-tab" type="button" role="tab" aria-selected="true" aria-controls="detail-content">座子详情</button>
  182. <button id="peripheral-tab" type="button" role="tab" aria-selected="false" aria-controls="peripheral-content">外设与接线</button>
  183. <button id="cpld-arch-tab" type="button" role="tab" aria-selected="false" aria-controls="cpld-arch-content">🧬 CPLD 架构</button>
  184. <button id="candidate-tab" type="button" role="tab" aria-selected="false" aria-controls="candidate-content">选脚辅助</button>
  185. <button id="schematic-tab" type="button" role="tab" aria-selected="false" aria-controls="schematic-content">图纸/手册</button>
  186. </div>
  187. <section id="detail-content" class="panel-content" role="tabpanel" aria-labelledby="detail-tab"></section>
  188. <section id="peripheral-content" class="panel-content" role="tabpanel" aria-labelledby="peripheral-tab" hidden></section>
  189. <section id="cpld-arch-content" class="panel-content" role="tabpanel" aria-labelledby="cpld-arch-tab" hidden></section>
  190. <section id="candidate-content" class="panel-content" role="tabpanel" aria-labelledby="candidate-tab" hidden>
  191. <div class="candidate-controls">
  192. <label for="capability-select">目标能力</label>
  193. <select id="capability-select">
  194. <option value="uart_tx">UART TX</option>
  195. <option value="uart_rx">UART RX</option>
  196. <option value="pwm">PWM</option>
  197. <option value="gpio_output">GPIO 输出</option>
  198. <option value="gpio_input">GPIO 输入</option>
  199. <option value="tach">转速输入</option>
  200. <option value="fan_tach">风扇转速输入</option>
  201. <option value="presence">在位检测</option>
  202. <option value="gpio">通用 GPIO</option>
  203. </select>
  204. </div>
  205. <div id="candidate-list" class="candidate-list"></div>
  206. </section>
  207. <section id="schematic-content" class="panel-content" role="tabpanel" aria-labelledby="schematic-tab" hidden>
  208. <div class="schematic-panel-body">
  209. <div class="schematic-header-row">
  210. <span class="schematic-title">FCB 电路原理图与版本手册</span>
  211. <a href="/schematics/FCB_FPGA+MCU0611.pdf" target="_blank" rel="noopener" class="schematic-ext-link">打开历史参考 PDF ↗</a>
  212. </div>
  213. <div class="schematic-meta-box">
  214. <div class="schematic-block">
  215. <strong>历史参考图纸与当前板数据的适用范围</strong>
  216. <ul class="schematic-list">
  217. <li>此嵌入PDF是历史参考资料;不能据文件名或本页说明假定与当前板卡版本一致。</li>
  218. <li>当前接线以所选板卡的原生BRD导出数据、生产ADC及实物线束为准。推断路径不代表已测得导通。</li>
  219. <li>当前两个生产目标为6400 V2.0和MRDIMM V1.2;V1.1配置保留作历史参考。</li>
  220. </ul>
  221. </div>
  222. <div class="schematic-block">
  223. <strong>各版本硬件与 Host TTL 串口接线规范</strong>
  224. <ul class="schematic-list">
  225. <li><strong>FAN:</strong>V2.0 Front0..3为腔1..4新风/进风,Rear0..3为排风/出风;CON155接腔1/2、CON154接腔3/4。MRDIMM四路PWM为CON25/8/24/26的pin7。</li>
  226. <li><strong>PTC:</strong>V2.0共24路,第四腔通道18在CON149.19,通道19..23在CON150。MRDIMM四个逻辑占空比分别驱动CON18/27/28/29每腔六路,共24路物理输出。</li>
  227. <li><strong>步进:</strong>MRDIMM轴0..11使用12个缓冲电机座;轴次序和24个限位请看当前项目接线表,不按CON编号顺排。</li>
  228. <li><strong>UART:</strong>V2.0 TTL:CON12.3 TX(K2)、.4 RX(J4);MRDIMM TTL:CON140.1 TX(T11)、.2 RX(P13),.3/.4是GPIO不是地,共地另接CON77.3/4。MRDIMM CON146是12V KEYLED/按键口,不能接TTL。</li>
  229. </ul>
  230. </div>
  231. </div>
  232. <div class="schematic-embed-frame">
  233. <iframe src="/schematics/FCB_FPGA+MCU0611.pdf" title="FCB 原理图预览" class="pdf-viewer-frame"></iframe>
  234. </div>
  235. </div>
  236. </section>
  237. </aside>
  238. </main>
  239. </div>
  240. <script type="module" src="app.js"></script>
  241. </body>
  242. </html>