# 扫描链

扫描链是一种可配置的移位寄存器，由数字集成电路自身的触发器构建而成，使测试设备能够通过少量外部引脚控制和观测芯片的内部状态。<sup>[1](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)</sup> 正常工作时，触发器执行其系统功能；在测试模式下，它们以菊花链方式连接，从而可以移入测试激励并移出捕获的响应。扫描设计之所以存在，是因为时序电路的内部状态点原本难以触及：其目标是实现时序电路完全或接近完全的可控性与可观测性，并且它已成为固定故障（信号永久固定为0或1的故障）测试的首选可测性设计（DFT）技术。<sup>[2](https://parts.jpl.nasa.gov/asic/Sect.3.3.html)</sup><sup> • </sup><sup>[3](https://vlsicad.ucsd.edu/Publications/Conferences/164/c164.pdf)</sup>

| 关键事实 | 数值 |
|---|---|
| 每个触发器的硬件成本 | 一个额外的多路复用器将D触发器转换为扫描触发器<sup>[4](https://users.ece.utexas.edu/~mcdermot/vlsi1/main/lectures/lecture_17.pdf)</sup> |
| 额外引脚（单链） | 典型的扫描信号为scan_in、scan_out、scan_clk和scan_enable；需要多少专用引脚取决于时钟方案以及信号是共享还是复用<sup>[5](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)</sup> |
| 测试周期长度 | 单独加载和卸载一个测试向量需要N个移入周期、1个捕获周期和N个移出周期，共2N + 1个周期；当移出与下一向量的移入重叠时，稳态下每向量的开销为N + 1个周期<sup>[6](https://tayloredge.com/reference/Interface/jtag000.pdf)</sup><sup> • </sup><sup>[7](https://anysilicon.com/overview-and-dynamics-of-scan-testing/)</sup><sup> • </sup><sup>[21](https://lo.unisa.edu.au/pluginfile.php/3833761/mod_glossary/attachment/40824/seuring2009introduction1.pdf)</sup> |
| 故障覆盖率（28 nm ASIC案例） | 固定故障98.5%，跳变故障94.2%<sup>[8](https://www.ijisae.org/index.php/IJISAE/article/download/7808/6826/13239)</sup> |
| 面积开销 | 一项案例研究中平均3.7%；按公式计算，10万门和2千个触发器时为6.7%<sup>[8](https://www.ijisae.org/index.php/IJISAE/article/download/7808/6826/13239)</sup><sup> • </sup><sup>[9](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)</sup> |
| 时序开销 | 约两个门延迟的多路复用器延迟；某一案例中关键路径增加约4.2%<sup>[9](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)</sup><sup> • </sup><sup>[8](https://www.ijisae.org/index.php/IJISAE/article/download/7808/6826/13239)</sup> |
| 标准化 | 内部扫描无标准；边界扫描标准化为IEEE 1149.1（JTAG）<sup>[1](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)</sup> |

## 工作原理

每个触发器通过在其D输入端前放置一个2:1多路复用器而转换为扫描触发器。多路复用器在扫描使能（SE）线的控制下，在正常系统数据和移入信号之间进行选择。<sup>[1](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)</sup><sup> • </sup><sup>[5](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)</sup> 在正常模式下，触发器照常工作；在扫描模式下，它们表现为一个移位寄存器，其内容可以被移出，新值可以被移入。<sup>[4](https://users.ece.utexas.edu/~mcdermot/vlsi1/main/lectures/lecture_17.pdf)</sup>

其收益在于时序测试变成了组合测试。由于触发器状态从链上完全可控且可观测，自动测试向量生成（ATPG）只需推理扫描单元之间的组合逻辑。这种结构化方法在20世纪70年代末获得了广泛接受，当时人们已经认识到时序电路的测试生成算法无法应对VLSI设计日益增长的复杂性。<sup>[10](https://paginas.fe.up.pt/~jmf/hibu2k2/contents/sdt/sdt-sadft.htm)</sup>

## 实施方法

核心流程对每个测试向量分为三个阶段。<sup>[11](https://www.eng.auburn.edu/~nelson/courses/elec5250_6250/slides/Test_DFT.pdf)</sup>

1. **移入。** 断言扫描使能（SE = 1），通过scan_in引脚将测试向量移入链中，每个时钟周期移入一位；测试向量也可以施加到主输入端。<sup>[11](https://www.eng.auburn.edu/~nelson/courses/elec5250_6250/slides/Test_DFT.pdf)</sup><sup> • </sup><sup>[12](https://www.ijert.org/research/comprehensive-study-of-popular-vlsi-test-scan-architecture-IJERTV6IS110186.pdf)</sup>
2. **捕获。** 取消断言扫描使能（SE = 0）并施加一个功能时钟周期，使扫描单元捕获来自组合逻辑块的测试响应。<sup>[12](https://www.ijert.org/research/comprehensive-study-of-popular-vlsi-test-scan-architecture-IJERTV6IS110186.pdf)</sup>
3. **移出。** 重新断言扫描使能，将捕获的内容通过scan_out移出以供验证，同时下一向量紧随其后移入。<sup>[11](https://www.eng.auburn.edu/~nelson/courses/elec5250_6250/slides/Test_DFT.pdf)</sup>

由于操作受输入/输出限制，一条n个触发器的链运行一次测试需要\( 2 \cdot n - 1 \)个时钟周期；等价地说，对于具有N个触发器的电路，\( 2 \cdot N - 1 \)个周期的状态转移问题被缩减为N个周期。<sup>[6](https://tayloredge.com/reference/Interface/jtag000.pdf)</sup><sup> • </sup><sup>[10](https://paginas.fe.up.pt/~jmf/hibu2k2/contents/sdt/sdt-sadft.htm)</sup>

## 起源

扫描的发明是为了使设计组合化并简化测试生成，因为芯片的规模已超出随机生成或验证套件测试所能覆盖的范围；状态元件以菊花链方式连接，以提供设计内部的激励点和观测点。<sup>[13](https://www.design-reuse.com/article/58339-the-history-and-future-of-scan-design/)</sup> 可查证的文献记录包括IBM的LSSD专利，该专利引用美国专利3,783,254、3,761,695和3,784,907，以及论文《面向大规模集成电路可测试性的逻辑设计结构》作为LSSD的现有技术。<sup>[14](https://www.freepatentsonline.com/4298980.html)</sup> NASA喷气推进实验室的ASIC指南记录了一种称为“扫描路径”的可测性设计技术，其目标与LSSD相同，但使用边沿敏感的双时钟锁存器时钟方案，而非LSSD的电平敏感特性。<sup>[2](https://parts.jpl.nasa.gov/asic/Sect.3.3.html)</sup>

## 变体

扫描链架构包括多路复用D扫描设计、时钟扫描设计、电平敏感扫描设计（LSSD）、增强扫描设计和低功耗扫描设计。<sup>[15](https://www.ee.ncu.edu.tw/jfli/public_html/soctest/lecture/ch04.pdf)</sup>

**多路复用D与LSSD。** 多路复用D单元即上述多路复用器加触发器。LSSD是IBM的结构化DFT规范，它通过使扫描单元电平敏感来增强扫描设计，使稳态响应与电路和导线延迟无关。<sup>[2](https://parts.jpl.nasa.gov/asic/Sect.3.3.html)</sup>

**部分扫描。** 仅将一部分存储元件替换为扫描单元，这降低了面积和延迟开销并缩短了测试长度，但未扫描的触发器需要时序ATPG；当部分设计是异步的且不可扫描时，或在面积或性能约束下，会选择此方案。<sup>[12](https://www.ijert.org/research/comprehensive-study-of-popular-vlsi-test-scan-architecture-IJERTV6IS110186.pdf)</sup><sup> • </sup><sup>[5](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)</sup>

**多链与压缩。** 多条独立链为每个寄存器提供各自的移位、加载和时钟控制，而并行链共享一组控制信号，解决了长链的问题。<sup>[12](https://www.ijert.org/research/comprehensive-study-of-popular-vlsi-test-scan-architecture-IJERTV6IS110186.pdf)</sup> 扫描压缩在扫描输入和扫描输出处添加组合逻辑，将小型扫描接口转换为多条内部链，减少测试数据量和测试应用时间，因为移位所需的时钟周期数等于最长链的长度。<sup>[13](https://www.design-reuse.com/article/58339-the-history-and-future-of-scan-design/)</sup>

**边界扫描。** IEEE Std 1149.1-2013（修订IEEE Std 1149.1-2001）为数字集成电路及混合信号器件的数字部分定义了测试访问端口和边界扫描架构。<sup>[16](https://ftp.libre-soc.org/JTAG_IEEE-Std-1149.1-2001.pdf)</sup> 与边界扫描不同，内部扫描测试不存在标准。<sup>[1](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)</sup>

## 应用

扫描加ATPG是结构化制造测试的主力。在一项28 nm ASIC案例研究中，它达到了98.5%的固定故障覆盖率和94.2%的跳变故障覆盖率；在一个工业64位处理器核（0.35 µm，约40万晶体管，4600个触发器）中，使用固定故障算法的ATPG实现了100%的测试覆盖率和99.81%的故障覆盖率。<sup>[8](https://www.ijisae.org/index.php/IJISAE/article/download/7808/6826/13239)</sup><sup> • </sup><sup>[5](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)</sup> 在代尔夫特理工大学的一个实例中，扫描转换将故障覆盖率从70.0%提高到99.1%，故障效率从70.9%提高到100.0%，并将200 MHz SUN Ultra II上的ATPG CPU时间从5,533秒缩短到5秒。<sup>[9](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)</sup>

**开销。** 一般的门开销估算公式为\( [4 \cdot n_{\mathrm{ff}} / (n_{\mathrm{g}} + 10 \cdot n_{\mathrm{ff}})] \times 100\% \)，对于10万门和2千个触发器给出6.7%。<sup>[9](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)</sup> 多路复用器在组合路径中增加约两个门延迟。<sup>[9](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)</sup> 商业EDA工具如DFT Compiler和Encounter DFT Architect可自动完成扫描链插入。<sup>[1](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)</sup>

## 局限与替代方案

**移位和捕获期间的功耗。** 所有扫描单元在移位期间同时翻转，导致过大的测试功耗，有损坏电路的风险。<sup>[12](https://www.ijert.org/research/comprehensive-study-of-popular-vlsi-test-scan-architecture-IJERTV6IS110186.pdf)</sup> 过大的捕获功耗导致配电网络中的IR压降，增加被敏化路径上的延迟，使响应被错误捕获，产生过度杀灭，即好芯片被判为故障。<sup>[17](https://www.jstage.jst.go.jp/article/transinf/E97.D/10/E97.D_2014EDP7039/_pdf)</sup>

**时序与未知值。** 扫描触发器替换增加了多路复用器延迟，可能导致建立和保持失败，由扫描拼接后的静态时序分析捕获；小的扫描路径延迟和时钟偏斜可能导致竞争条件，大的扫描路径延迟则迫使使用较慢的扫描时钟。<sup>[5](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)</sup><sup> • </sup><sup>[9](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)</sup> 来自总线、非扫描状态元件、嵌入式存储器和时序敏感路径的未知值（X）可能在压缩器处掩盖错误，而单个X就会破坏逻辑BIST签名。<sup>[18](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/2004/dac04/pdffiles/p934.pdf)</sup>

**替代方案。** [内建自测试](https://www.edgepedia.org/zh/built-in-self-test)（BIST）更安全，因为它不需要可见的扫描链，但相比基于扫描的DFT，它产生更多开销且故障覆盖率更低。<sup>[19](https://www.cs.york.ac.uk/rts/docs/DAC-1964-2005/papers/2005/dac05/pdffiles/p135.pdf)</sup> JTAG和边界扫描针对制造后的电路板，补充而非替代内部扫描。<sup>[5](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)</sup>

**安全性。** 基于扫描的攻击已攻破包括AES、DES和RSA在内的密码算法，暴露了密钥，这推动了安全扫描链设计。<sup>[20](http://dl.acm.org/doi/10.1145/3803849)</sup> 2024年IACR TCHES的一篇论文展示了通过光学探测从扫描链中提取敏感数据，将基于扫描的DFT视为物理侧信道攻击面。<sup>[1](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)</sup>

## References

1. [Sensitive Data Extraction by Optical Probing of Scan Chains (IACR TCHES 2024, full paper)](https://ches.iacr.org/2024/papers-issue-4/4_84.pdf)
2. [JPL ASIC Guide, Section 3.3: Scan Design](https://parts.jpl.nasa.gov/asic/Sect.3.3.html)
3. [Layout-aware scan chain synthesis for improved path delay fault coverage (ICCAD-2003)](https://vlsicad.ucsd.edu/Publications/Conferences/164/c164.pdf)
4. [Lecture 17: Introduction to Design For Testability (DFT) & Manufacturing Test (UT Austin)](https://users.ece.utexas.edu/~mcdermot/vlsi1/main/lectures/lecture_17.pdf)
5. [High Degree of Testability Using Full Scan Chain and ATPG, An Industrial Perspective](https://scialert.net/fulltext/index.php?doi=jas.2009.2613.2618)
6. [Scan Testing and JTAG (lecture notes)](https://tayloredge.com/reference/Interface/jtag000.pdf)
7. [Introduction to Chip Scan Chain Testing](https://anysilicon.com/overview-and-dynamics-of-scan-testing/)
8. [Scan-based DFT case study of a 32-bit RISC core (IJISAE)](https://www.ijisae.org/index.php/IJISAE/article/download/7808/6826/13239)
9. [Module 11: Digital DFT and Scan Design (TU Delft OCW)](https://ocw.tudelft.nl/wp-content/uploads/Module_11_Digital_DFT_and_Scan_Design.pdf)
10. [Introduction to DFT Techniques in Digital Circuits (FEUP, 2002)](https://paginas.fe.up.pt/~jmf/hibu2k2/contents/sdt/sdt-sadft.htm)
11. [Test and DFT slides (Auburn University ELEC 5250/6250)](https://www.eng.auburn.edu/~nelson/courses/elec5250_6250/slides/Test_DFT.pdf)
12. [Comprehensive Study of Popular VLSI Test Scan Architecture (IJERT)](https://www.ijert.org/research/comprehensive-study-of-popular-vlsi-test-scan-architecture-IJERTV6IS110186.pdf)
13. [The history and future of scan design (Design & Reuse)](https://www.design-reuse.com/article/58339-the-history-and-future-of-scan-design/)
14. [LSI Circuitry conforming to level sensitive scan design (LSSD) rules and method of testing same - IBM (US Patent 4,298,980)](https://www.freepatentsonline.com/4298980.html)
15. [Chapter 4: Digital Test Architectures (NCU ARES Lab, Jin-Fu Li)](https://www.ee.ncu.edu.tw/jfli/public_html/soctest/lecture/ch04.pdf)
16. [IEEE Std 1149.1-2001, Standard Test Access Port and Boundary-Scan Architecture](https://ftp.libre-soc.org/JTAG_IEEE-Std-1149.1-2001.pdf)
17. [Low-Power Logic BIST / test power safety paper (IEICE Trans. Inf. & Syst., 2014)](https://www.jstage.jst.go.jp/article/transinf/E97.D/10/E97.D_2014EDP7039/_pdf)
18. [Scalable Selector Architecture for X-Tolerant Deterministic BIST (DAC 2004)](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/2004/dac04/pdffiles/p934.pdf)
19. [Secure Scan: A Design-for-Test Architecture for Crypto Chips (DAC 2005)](https://www.cs.york.ac.uk/rts/docs/DAC-1964-2005/papers/2005/dac05/pdffiles/p135.pdf)
20. [Evolution of Obfuscation-Based Scan Design Techniques (ACM Computing Surveys)](http://dl.acm.org/doi/10.1145/3803849)
21. [lo.unisa.edu.au](https://lo.unisa.edu.au/pluginfile.php/3833761/mod_glossary/attachment/40824/seuring2009introduction1.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 工程与制造 › 电气与电子工程 › Circuits and signal processing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/scan-chain

English original: https://www.edgepedia.org/scan-chain
