Automated Generation of Software-Based Self-Test From ATPG Patterns Targeting Transition Delay Faults in the Decode Stage of the RISC-V-Based Microcontrollers
A novel methodology for automatically generating SBSTs oriented to test TDF models in the decoder unit of microprocessors by leveraging already generated scan-based test patterns is presented, demonstrating the effectiveness of transforming scan-based test patterns into correct functional tests while having moderate fault detection capabilities with low manual efforts.
Abstract
Software-Based Self-Tests (SBSTs), grouped in Software Test Library, are functional testing approaches used as a flexible solution during manufacturing tests to enhance the quality of outgoing silicon or online testing, as functional safety mechanisms. While SBSTs have proven to be effective for stuck-at fault testing, their development for transition delay fault models (TDFs) remains challenging, requiring skilled test engineers and time-consuming manual efforts. This paper presents a novel methodology for automatically generating SBSTs oriented to test TDF models in the decoder unit of microprocessors by leveraging already generated scan-based test patterns. The proposed approach analyzes scan-based patterns to extract instructions and register file values, processes this data to create code portions that maintain proper timing for TDF excitation and propagation, and handles generated control-flow instructions. The methodology considers pipeline depth to ensure fault visibility in processor registers and includes proper code relocation through linker scripts. The generated SBST can serve as input for further optimization through genetic or ATPG-driven methods to enhance fault detection capabilities or optimize characteristics such as code size and execution time. Experimental validation is conducted on open-source RISC-V CPU cores such as CV32E40P from the Open Hardware group, the Berkeley Out-of-Order Machine (BOOM), and Rocket core from UCBerkley, synthesized using a 45nm technology library. Experimental results are primarily aiming at maximizing the TDF coverage on the decode unit of the CPUs, since a fault in the decode unit may affect the entire behavior of the CPUs. Afterward, the generated SBST is fault graded on the entire datapath logic of all the CPUs. The experimental results demonstrate the effectiveness of transforming scan-based test patterns into correct functional tests while having moderate fault detection capabilities with low manual efforts compared to manually developed SBSTs.
SynaSpace is a behavior-driven configuration optimization framework for fault detection in logic synthesis tools that focuses on synthesis behavior coverage to guide configuration search, by constructing behavioral representations through joint analysis of synthesis logs and gate-level netlists.
Pei-Yu Zou, Xiao-Chen Li, Yijia Meng et al.· ACM Transactions on Design A...· 0 citations
The application of Large Language Models (LLMs) to embedded firmware development presents unique challenges: domain-specific register-level programming, stringent resource constraints, and the absence of structured validation mechanisms. Existing approaches using direct LLM-assisted coding suffer from hallucinated libr...
Zhen-Zhong Wang· 2026 2nd International Confe...· 0 citations
Test Pattern Generator (TPG) is an essential component in Built-In Self-Test (BIST) architectures, responsible for generating pseudorandom test patterns that can be weighted to improve fault detection efficiency while reducing the dependency on deterministic random number generators. This paper proposes a novel weighte...
Rubeena Begum, Farina Yasmeen· American Journal of AI Cyber...· 0 citations
This paper translates Rust code containing RISC-V inline assembly into pure Rust code by emulating each instruction using a machine model extracted from the official RISC-V Sail ISA specification, and demonstrates how each category is handled by the translation.
Charly Castes, Gurvan Debaussart, Thomas Bourgeat· Proceedings of the 14th Work...· 0 citations
DSpec2Test is presented, a specification-driven test generation tool for Dafny that automatically derives tests from formal specifications, without considering implementation details, and achieves a 93.9% mutation kill rate on a dataset of 131 mutants, outperforming Block's 82.4%, and uniquely killing 17 mutants.
Sofia Vieira Pinto, Álvaro F.Silva, João Pascoal Faria et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.