Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/FAN_ATPGPublic template

FAN (fan-out-oriented) ATPG (Automatic Test Pattern Generation) and Fault Simulation command line tool

License

NotificationsYou must be signed in to change notification settings

NTU-LaDS-II/FAN_ATPG

Repository files navigation

FAN ATPG

version 2023
Laboratory of Dependable Systems, Graduate Institute of Electronics Engineering, National Taiwan University, Taiwan


FAN (fan-out-oriented) ATPG (Automatic Test Pattern Generation) and Fault Simulation command line tool

Youtube Tutorial »

User Guide »

This tool's main algorithm is implemented based on the following paper:
Fujiwara and Shimono, "On the Acceleration of Test Generation Algorithms," in IEEE Transactions on Computers, vol. C-32, no. 12, pp. 1137-1144, Dec. 1983.

Table Contents

  1. Introduction
  2. Directory Structure
  3. Environment Requisites
  4. Usage
  5. Experimental Result
  6. Revision History
  7. Authors
  8. References
  9. Contact
  10. License

Introduction

This project is a FAN (fan-out-oriented)[1] ATPG (Automatic Test Pattern Generation) and Fault Simulation command line tool.

This project includes the implementation of

  1. Fault Collapsing
  2. Parallel Fault Fault Simulation
  3. Parallel Pattern Fault Simulation
  4. Automatic Test Pattern Generation
  5. Static Test Compression
  6. Dynamic Test Compression
  7. Writing pattern in different format:
    -STIL : Support Fault Simulation with the commercial toolTetraMAX
    -ASCII : Support Fault Simulation with the commercial toolFastScan
    -.pat : Support Fault Simulation with this toolFAN_ATPG
  8. Multiple Fault Orderings
    Note: This feature is now moved to branchMFO, should be integrated as an additional command line opption in the future.
    This is a heuristic we implemented in v2023. It tries a rational number of fault list orderings that differ to one another as much as possible with rational run time. With different fault list orderings, we choose the fault list ordering that generate test pattern set with the highest Fault Coverage and the lowest Test Length (if same Fault Coverage).

We make this project open source in the hope of helping anyone who is learning ATPG. If you have any suggestion for the source code or new features for this project, feel free to fork this repo and create a pull request. Any contribution to this project would be very much appreciated!

We would also be extremely grateful if you star this project!

[back to top]

Directory Structure

  • bin/ : Binary - Store binaries after compilation
  • include/ : Store header files included in and copied frompkg/
  • lib/ : Library - Store library binaries after compilation
  • mod_netlist/,netlist/ : Store the benchmark circuits[2]
  • pat/ : Patterns - Store the patterns generated by ATPG
  • pkg/ : Package - All of the source code
    • common/ : Common Linux command line instructions support
    • core/ : Main ATPG algorithm and the Fault Simulation procedure
    • fan/ : The ATPG commands and entry point of the program
    • interface/ : The interface for reading benchmark circuits
  • rpt/ : Report - Store the report after ATPG or Fault Simulation
  • script/ : Scripts for running ATPG and Fault Simulation
  • techlib/ : The cell libraries for benchmark circuits
  • utility/ : The utilities files, e.g. convertSTIL to.pat
  • ATPG_UserGuide.pdf : The User Guide
  • copyHeader.sh : Copy header files frompkg/ toinclude/
  • Makefile : The top makefile for the whole project
  • common.mk : Define the project layout forMakefile, e.g. directory structure, C++ version, Lex&Yacc.
  • info.mk : Define package name, type and dependency, e.g.fan,libcommon.a
  • rule.mk : Define rules for make targets, which folder the binary should be generated or copied to.

[back to top]

Environment Requisites

Prerequisites

  • Operating System :Linux
  • Compiler :Support std C++11
  • Other tools :Bison, Lex

Requisites Installation

sudo apt install bisonsudo apt install flex

Check requisites Installation

bison --versionlex --version

[back to top]

Usage

Installation

After the following commands are executed, an executable binaryfan will be generated under./bin/opt/.

  1. Clone the repo
    git clone https://github.com/NTU-LaDS-II/FAN_ATPG.git
  2. Change directory
    cd FAN_ATPG/
  3. Compile
    make

Clean Installed Files

make clean

Run ATPG

./bin/opt/fan -f script/fanScripts/atpg_s27.script

Run Fault Simulation

./bin/opt/fan -f script/fanScripts/fsim_s27.script

[back to top]

Experimental Result

  • Fault Coverage (FC) -
    Fault Coverage is the most important statistic for evaluation of an ATPG tool. It indicates how well a circuit could be tested, hence the quality of a test pattern set. The calculation equation by this toolFAN_ATPG is as follow:

    $$FC = {number \ of \ \textbf{\textit{detected}} \ faults \over number \ of \ \textbf{\textit{total}} \ faults} \ * \ 100\%$$
  • Test Length (TL) -
    Under the same Fault Coverage, it is essential to compress the Test Length. The definition of Test Length is thetotal number of test patterns in a test pattern set. Low Test Length is desired in order to reduce test data (ATE cost), test time (test cost) while maintaining the same test quality (FC).

Both Test CompressionOFF

Benchmark CircuitFault Coverage (%)Test Length (#)
s2794.5512
s20897.4346
s51099.1470
s95397.85123
s119698.84183
s123896.36193
s537896.04478
s923494.14647
s1585094.62817
s3593287.581764
s3841795.992428
s3858493.331832

Static Test CompressionOn Dynamic Test CompressionOFF

Benchmark CircuitFault Coverage (%)Test Length (#)
s2794.559
s20897.4336
s51099.1465
s95397.8593
s119698.84155
s123896.36163
s537896.04327
s923494.14475
s1585094.62583
s3593287.58512
s3841795.991565
s3858493.331177

Static & Dynamic Test CompressionON

Benchmark CircuitFault Coverage (%)Test Length (#)
s2794.555
s20897.4329
s51099.1459
s95397.8589
s119698.84134
s123896.36145
s537896.04117
s923494.14156
s1585094.62133
s3593287.5821
s3841796.00105
s3858493.33133

[back to top]

Revision History

  • v2013 - Initial release
  • v2014 - Code modifications
  • v2023 - Code refactor for open source project

[back to top]

Authors

  • Lead Author
    -Lin Hio-Ting

  • Original Authors
    -Lin Hio-Ting, Hsu Po-Ya, Liao Kuan-Yu

  • v2013
    - Han Cheng-You, Chen Ching-Yu, Chiang Kuan-Ying, Wang Ying-Hsu, Chen Po-Hao, Lin Kuo-Yu, Pan Chun-Han, Li Chia-An, Tsai Chia-Ling, Hsu Ling-Yun

  • v2014
    - He Yu-Hao, Cai Zong-Yan, How Bo-Fan, Li Yu-Qing, Huang Guan-Yan, Xiao Zhi-Long, Lin Kun-Wei, Lin Shi-Yao, Chen You-Wei, Li Guan-De

  • v2023
    - Wang Wei-Shen, Chang Hsin-Tzu, Pan Yu-Hung, Liang Zhe-Jia

  • Advisor
    -Professor James Chien-Mo Li

[back to top]

References

  • [1]Fujiwara and Shimono, "On the Acceleration of Test Generation Algorithms," in IEEE Transactions on Computers, vol. C-32, no. 12, pp. 1137-1144, Dec. 1983.
  • [2]Brglez, Franc, David Bryan, and Krzysztof Kozminski. "Combinational profiles of sequential benchmark circuits." 1989 IEEE International Symposium on Circuits and Systems (ISCAS). IEEE, 1989.
  • [3]techlib/mod_nangate45.mdt andtechlib/NangateOpenCellLibrary.v are underTECHLIB_LICENSE

[back to top]

Contact

Wang Wei-Shen -b08901051@ntu.edu.tw

[back to top]

License

Distributed under the MIT License. SeeLICENSE for more information.

[back to top]


Copyright (c) Laboratory of Dependable Systems, Graduate Institute of Electronics Engineering, National Taiwan University, Taiwan. All Rights Reserved.


[8]ページ先頭

©2009-2025 Movatter.jp