| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <!doctype html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="light">
- <title>电路板选脚查看器</title>
- <link rel="stylesheet" href="app.css">
- </head>
- <body>
- <div class="app-shell" id="app">
- <header class="topbar">
- <div class="product-block">
- <span class="product-mark" aria-hidden="true"></span>
- <div>
- <div class="product-title">FCB 电路板选脚查看器</div>
- <div class="product-meta" id="board-summary">正在载入板数据</div>
- </div>
- </div>
- <div class="search-block">
- <label class="search-field" for="board-search">
- <span aria-hidden="true">⌕</span>
- <input
- id="board-search"
- type="search"
- autocomplete="off"
- spellcheck="false"
- placeholder="电阻位号 / 阻值 / 网络 · 座子 · ball:R7"
- aria-controls="search-results"
- aria-autocomplete="list"
- >
- </label>
- <details class="search-help">
- <summary>搜索说明</summary>
- <div class="search-help-body">
- <button type="button" class="help-chip" data-query="R674" title="Reference Designator(器件位号)精确命中电阻">R674</button>
- <button type="button" class="help-chip" data-query="R674.1" title="Pad(焊盘)精确命中">R674.1</button>
- <button type="button" class="help-chip" data-query="PTC1" title="外设索引:立即定位 PTC1 插座与 FPGA 逻辑管脚">PTC1</button>
- <button type="button" class="help-chip" data-query="JTAG" title="外设索引:立即定位 JTAG / SWD 插座与逻辑管脚">JTAG</button>
- <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>
- <button type="button" class="help-chip" data-query="120R" title="当前板上可解析阻值示例(R806=120Ω)">120R</button>
- <button type="button" class="help-chip" data-query="0R" title="已解析 0Ω(不含 NC/未装)">0R</button>
- <button type="button" class="help-chip" data-query="PUL1" title="裸网络名:精确等于现有 Net 时按 exact net">PUL1</button>
- <button type="button" class="help-chip" data-query="net:PUL1" title="Net(网络)显式查询">net:PUL1</button>
- <button type="button" class="help-chip" data-query="ball:R7" title="FPGA ball,避免与电阻位号 R7 混淆">ball:R7</button>
- <p class="help-glossary">
- <button type="button" class="term" data-term="RefDes">RefDes</button>=Reference Designator(器件位号);
- <button type="button" class="term" data-term="Net">Net</button>=网络;
- <button type="button" class="term" data-term="Pad">Pad</button>=焊盘;
- <button type="button" class="term" data-term="PCB">PCB</button>/<button type="button" class="term" data-term="BRD">BRD</button>=板文件;
- <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>。
- </p>
- <p class="coverage-hint" id="value-coverage-help">阻值覆盖以 board-data.value_coverage 为准;当前示例用 120R(板上真实存在),勿默认假设 4k7 已入库。</p>
- </div>
- </details>
- <div id="search-results" class="search-results" role="listbox" aria-label="搜索结果" hidden></div>
- </div>
- <div class="status-cluster">
- <button id="open-cpld-arch" type="button" class="schematic-top-link cpld-top-btn" title="打开 CPLD 源码架构、各版本通讯方式、片上总线/ERAM/BRAM 与外部电气通信动态多级菜单">
- 🧬 CPLD 源码与架构
- </button>
- <button id="open-peripheral-index" type="button" class="schematic-top-link peripheral-top-btn" title="快速打开外设与接线索引面板(筛选 PTC / FAN / JTAG / UART / 电机 / 限位 / 空余插座,查看每个 Pin 的 FPGA/MCU 逻辑管脚)">
- 🔌 外设与接线
- </button>
- <div class="version-select-cluster">
- <select id="board-version-select" class="version-select" title="切换电路板物理视图 (V2.0 主板 / V2.0 风扇板 / V1.2 / V1.1)">
- <option value="v2_0" selected>FCB V2.0 (6400 20260914)</option>
- <option value="v2_0_fan">FCB_FAN V2.0 (风扇扩展板)</option>
- <option value="v1_2">FCB V1.2 (MRDIMM 20260717)</option>
- <option value="v1_1">FCB V1.1 (6400 20260625)</option>
- </select>
- </div>
- <div class="version-select-cluster">
- <select id="doc-menu-select" class="version-select" title="在线查阅原理图、电气图与深度硬件分析" onchange="if(this.value){window.open(this.value, '_blank'); this.selectedIndex=0;}">
- <option value="" selected>📑 硬件图纸 / 分析 ▾</option>
- <option value="/schematics/fcb_fpga_mcu_v2_0.pdf">📖 FCB V2.0 原理图 (0902/0717)</option>
- <option value="/schematics/6400_v2_0_electrical.pdf">⚡ 温控板测试 V2.0 电气图 (13页)</option>
- <option value="/schematics/8000_v1_2_electrical.pdf">⚡ 8000 V1.2 电气图 (10页)</option>
- <option value="/docs/FCB_FAN_V2_0_ANALYSIS.md">🔍 V2.0 风扇板与极性深度分析报告</option>
- <option value="/schematics/FCB_FPGA+MCU0611.pdf">📖 FCB 历史原理图 (0611)</option>
- </select>
- </div>
- <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">
- 📖 原理图
- </a>
- <button id="toggle-wide-panel" type="button" class="schematic-top-link wide-panel-btn" title="切换右侧详情/架构面板宽度(标准视图 / 宽屏双栏视图)" aria-pressed="false">
- ⤢ 宽屏
- </button>
- <span id="app-status" class="status-badge status-loading" role="status">校验中</span>
- <button id="drawer-toggle" class="icon-button drawer-toggle" type="button" title="展开详情" aria-label="展开详情" aria-expanded="true">
- <span aria-hidden="true">⌄</span>
- </button>
- </div>
- </header>
- <main class="workspace">
- <section class="board-pane" aria-label="电路板工作区">
- <div id="stale-banner" class="stale-banner" role="alert" hidden></div>
- <div class="board-toolbar">
- <fieldset id="category-filters" class="segmented filters" aria-label="座子与电阻类别">
- <legend class="sr-only">座子与电阻类别</legend>
- <label><input type="checkbox" value="CON" checked><span>CON</span></label>
- <label><input type="checkbox" value="J" checked><span>J</span></label>
- <label><input type="checkbox" value="PL" checked><span>PL</span></label>
- <label><input type="checkbox" value="TP" checked><span>TP</span></label>
- <label><input type="checkbox" value="R"><span>电阻</span></label>
- <label title="显示或隐藏屏蔽固定孔位 (SH1, SH2 等)"><input id="filter-sh" type="checkbox" value="SH"><span>SH孔位</span></label>
- </fieldset>
- <fieldset id="side-controls" class="segmented side-controls" aria-label="板面正反 / 视角">
- <legend class="sr-only">板面正反 / 视角</legend>
- <label><input type="radio" name="board-side" value="front" checked><span>正面投影</span></label>
- <label><input type="radio" name="board-side" value="back"><span>背面实物(左右镜像)</span></label>
- </fieldset>
- <fieldset id="layer-controls" class="layer-controls" aria-label="板图图层">
- <legend class="sr-only">板图图层</legend>
- <label><input type="checkbox" value="mask" checked><span class="swatch swatch-mask"></span>阻焊/板框</label>
- <label><input type="checkbox" value="silk" checked><span class="swatch swatch-silk"></span>丝印</label>
- <label><input type="checkbox" value="copper" checked><span class="swatch swatch-copper"></span>铜层</label>
- <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>
- </fieldset>
- <div class="view-tools" aria-label="视图工具">
- <button id="box-zoom-toggle" class="tool-pill-btn" type="button" title="框选放大模式(也可直接按住 Shift+左键拖拽 或 右键拖拽 框选放大)" aria-pressed="false">🔍 框选放大</button>
- <button id="zoom-out" class="icon-button" type="button" title="缩小(按住连续缩小)" aria-label="缩小"><span aria-hidden="true">−</span></button>
- <button id="zoom-in" class="icon-button" type="button" title="放大(按住连续放大)" aria-label="放大"><span aria-hidden="true">+</span></button>
- <button id="reset-view" class="icon-button" type="button" title="重置适配全板视图 (快捷键 0)" aria-label="重置视图"><span aria-hidden="true">↺</span></button>
- </div>
- </div>
- <div id="board-viewport" class="board-viewport">
- <canvas id="board-layer-canvas" class="board-layer-canvas" aria-hidden="true" hidden></canvas>
- <svg id="board-svg" role="img" aria-label="电路板视图" tabindex="0" preserveAspectRatio="xMidYMid meet">
- <g id="asset-layers" aria-hidden="true">
- <image id="layer-mask" href="/generated/board-mask-edge.svg" preserveAspectRatio="none"></image>
- <image id="layer-copper" href="/generated/board-copper.svg" preserveAspectRatio="none"></image>
- <image id="layer-silk" href="/generated/board-silkscreen.svg" preserveAspectRatio="none"></image>
- <image id="layer-photo" preserveAspectRatio="none" hidden></image>
- </g>
- <g id="net-layer" aria-hidden="true"></g>
- <g id="hotspot-layer"></g>
- <g id="pin-layer"></g>
- <g id="selection-layer" aria-hidden="true"></g>
- </svg>
- <canvas id="board-fast-canvas" class="board-fast-canvas" aria-hidden="true"></canvas>
- <div id="box-zoom-marquee" class="box-zoom-marquee" aria-hidden="true" hidden></div>
- <div id="board-minimap-wrap" class="board-minimap-wrap" hidden>
- <div class="minimap-header">
- <span>🦅 全局鹰眼导航 (点击/拖拽定位)</span>
- <span id="minimap-zoom-badge">100%</span>
- </div>
- <canvas id="board-minimap" class="board-minimap" width="220" height="44"></canvas>
- </div>
- <div id="zoom-hud-dock" class="zoom-hud-dock" aria-label="画布快捷缩放控制栏">
- <button id="hud-box-zoom" type="button" class="hud-btn hud-box-btn" title="框选放大模式(也可直接用 右键拖拽 或 Shift+左键拖拽 框选区域放大)" aria-pressed="false">🔍 框选</button>
- <button id="hud-zoom-out" type="button" class="hud-btn hud-step-btn" title="缩小(按住可连续平滑缩小)" aria-label="缩小">−</button>
- <input id="zoom-slider" class="zoom-slider" type="range" min="80" max="3500" step="5" value="100" title="拖动滑块丝滑无级缩放 (80% ~ 3500%)" aria-label="缩放比例滑块">
- <button id="hud-zoom-in" type="button" class="hud-btn hud-step-btn" title="放大(按住可连续平滑放大)" aria-label="放大">+</button>
- <span id="hud-zoom-value" class="hud-zoom-value" title="滚轮丝滑缩放 · 双击放大 2.2x · Shift+双击缩小 · 右键拖拽框选放大">100%</span>
- <div class="hud-presets" role="group" aria-label="倍率预设">
- <button type="button" class="hud-preset-btn is-active" data-zoom="1" title="100% 标准全览">1x</button>
- <button type="button" class="hud-preset-btn" data-zoom="2" title="200% 倍率">2x</button>
- <button type="button" class="hud-preset-btn" data-zoom="4" title="400% 倍率">4x</button>
- <button type="button" class="hud-preset-btn" data-zoom="8" title="800% 焊盘级微距">8x</button>
- <button type="button" class="hud-preset-btn" data-zoom="16" title="1600% 针脚超微距">16x</button>
- <button id="hud-reset-view" type="button" class="hud-preset-btn is-fit" title="重置并适配全板居中 (快捷键 0)">全板</button>
- </div>
- </div>
- <div id="board-loading" class="board-loading" role="status">正在载入 110 个接触点</div>
- <div id="board-tooltip" class="board-tooltip" role="tooltip" hidden></div>
- <div id="coordinate-rail-x" class="coordinate-rail" aria-hidden="true"><span>0 mm</span><span>215 mm</span><span>430 mm</span></div>
- </div>
- <footer class="board-footer">
- <span id="visible-count">0 个座子</span>
- <span class="footer-center-cluster">
- <span id="zoom-readout">100%</span>
- <button id="perf-mode-toggle" type="button" class="perf-badge" title="点击切换:Rust+WASM 超低资源硬件加速渲染 / 标准 SVG 矢量模式">⚡ Rust+WASM 极速引擎</button>
- </span>
- <span id="selection-readout">未选择</span>
- </footer>
- </section>
- <aside id="detail-panel" class="detail-panel" aria-label="座子与针脚详情">
- <div class="drawer-handle" aria-hidden="true"></div>
- <div class="detail-tabs" role="tablist" aria-label="详情视图">
- <button id="detail-tab" type="button" role="tab" aria-selected="true" aria-controls="detail-content">座子详情</button>
- <button id="peripheral-tab" type="button" role="tab" aria-selected="false" aria-controls="peripheral-content">外设与接线</button>
- <button id="cpld-arch-tab" type="button" role="tab" aria-selected="false" aria-controls="cpld-arch-content">🧬 CPLD 架构</button>
- <button id="candidate-tab" type="button" role="tab" aria-selected="false" aria-controls="candidate-content">选脚辅助</button>
- <button id="schematic-tab" type="button" role="tab" aria-selected="false" aria-controls="schematic-content">图纸/手册</button>
- </div>
- <section id="detail-content" class="panel-content" role="tabpanel" aria-labelledby="detail-tab"></section>
- <section id="peripheral-content" class="panel-content" role="tabpanel" aria-labelledby="peripheral-tab" hidden></section>
- <section id="cpld-arch-content" class="panel-content" role="tabpanel" aria-labelledby="cpld-arch-tab" hidden></section>
- <section id="candidate-content" class="panel-content" role="tabpanel" aria-labelledby="candidate-tab" hidden>
- <div class="candidate-controls">
- <label for="capability-select">目标能力</label>
- <select id="capability-select">
- <option value="uart_tx">UART TX</option>
- <option value="uart_rx">UART RX</option>
- <option value="pwm">PWM</option>
- <option value="gpio_output">GPIO 输出</option>
- <option value="gpio_input">GPIO 输入</option>
- <option value="tach">转速输入</option>
- <option value="fan_tach">风扇转速输入</option>
- <option value="presence">在位检测</option>
- <option value="gpio">通用 GPIO</option>
- </select>
- </div>
- <div id="candidate-list" class="candidate-list"></div>
- </section>
- <section id="schematic-content" class="panel-content" role="tabpanel" aria-labelledby="schematic-tab" hidden>
- <div class="schematic-panel-body">
- <div class="schematic-header-row">
- <span class="schematic-title">FCB 电路原理图与版本手册</span>
- <a href="/schematics/FCB_FPGA+MCU0611.pdf" target="_blank" rel="noopener" class="schematic-ext-link">打开历史参考 PDF ↗</a>
- </div>
- <div class="schematic-meta-box">
- <div class="schematic-block">
- <strong>历史参考图纸与当前板数据的适用范围</strong>
- <ul class="schematic-list">
- <li>此嵌入PDF是历史参考资料;不能据文件名或本页说明假定与当前板卡版本一致。</li>
- <li>当前接线以所选板卡的原生BRD导出数据、生产ADC及实物线束为准。推断路径不代表已测得导通。</li>
- <li>当前两个生产目标为6400 V2.0和MRDIMM V1.2;V1.1配置保留作历史参考。</li>
- </ul>
- </div>
- <div class="schematic-block">
- <strong>各版本硬件与 Host TTL 串口接线规范</strong>
- <ul class="schematic-list">
- <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>
- <li><strong>PTC:</strong>V2.0共24路,第四腔通道18在CON149.19,通道19..23在CON150。MRDIMM四个逻辑占空比分别驱动CON18/27/28/29每腔六路,共24路物理输出。</li>
- <li><strong>步进:</strong>MRDIMM轴0..11使用12个缓冲电机座;轴次序和24个限位请看当前项目接线表,不按CON编号顺排。</li>
- <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>
- </ul>
- </div>
- </div>
- <div class="schematic-embed-frame">
- <iframe src="/schematics/FCB_FPGA+MCU0611.pdf" title="FCB 原理图预览" class="pdf-viewer-frame"></iframe>
- </div>
- </div>
- </section>
- </aside>
- </main>
- </div>
- <script type="module" src="app.js"></script>
- </body>
- </html>
|