How aucohl/fault works
Fault is a command-line design-for-test toolchain for hardware netlists. Users invoke its CLI to generate ATPG patterns, cut designs, synthesize, assemble outputs, generate TAP/JTAG logic, or stitch scan chains. The README documents this broader capability set; sampled entry-point and source-index evidence supports the dispatch and several implementation links. The graph preserves distinct design parsing, scan construction, synthesis, and simulation/test-vector responsibilities. Some command internals were not sampled, so undocumented links are omitted.
Main entry points: main.swift Fault CLI · chain.swift Scan stitching · Simulation.swift Simulation · atpg.swift ATPG
Components 19
CLI commands
- Fault CLI
Sources/Fault/Entries/main.swift - ATPG
Sources/Fault/Entries/atpg.swift - Design cutting
Sources/Fault/Entries/cut.swift - Scan stitching
Sources/Fault/Entries/chain.swift - TAP generation
Sources/Fault/Entries/tap.swift - Synthesis command
Sources/Fault/Entries/synth.swift - Assembly command
Sources/Fault/Entries/asm.swift
Design and scan
- Netlist model
Sources/Fault/Module.swift - Boundary scan cells
Sources/Fault/BoundaryScanRegister.swift - Scan configuration
Sources/Fault/SCLConfiguration.swift - JTAG logic
Sources/Fault/JTAGStrings.swift
Test generation
- Simulation
Sources/Fault/Simulation.swift - Test vectors
Sources/Fault/TestVector.swift - Vector generators
Sources/Fault/TVGenerator.swift - Vector compaction
Sources/Fault/Compaction.swift
Synthesis and support
- Synthesis scripts
Sources/Fault/Synthesis.swift - Thread pool
Sources/CThreadPool/thpool.c - Thread pool API
Sources/CThreadPool/include/thpool.h
Other components
- Engineer
Connections 23
- Engineer → Fault CLI: invokes
Readme.md - Fault CLI → ATPG: dispatches
Sources/Fault/Entries/main.swift - Fault CLI → Design cutting: dispatches
Sources/Fault/Entries/main.swift - Fault CLI → Synthesis command: dispatches
Sources/Fault/Entries/main.swift - Fault CLI → Assembly command: dispatches
Sources/Fault/Entries/main.swift - Fault CLI → TAP generation: dispatches
Sources/Fault/Entries/main.swift - Fault CLI → Scan stitching: dispatches
Sources/Fault/Entries/main.swift - ATPG → Netlist model: uses
Sources/Fault/Entries/atpg.swift - ATPG → Test vectors: uses
Sources/Fault/Entries/atpg.swift - Design cutting → Netlist model: parses
Sources/Fault/Entries/cut.swift - Design cutting → Scan configuration: reads
Sources/Fault/Entries/cut.swift - Scan stitching → Netlist model: parses
Sources/Fault/Entries/chain.swift - Scan stitching → Boundary scan cells: creates
Sources/Fault/Entries/chain.swift - Scan stitching → Scan configuration: reads
Sources/Fault/Entries/chain.swift - Scan stitching → Synthesis scripts: uses
Sources/Fault/Entries/chain.swift - TAP generation → Synthesis scripts: uses
Sources/Fault/Entries/tap.swift - Synthesis command → Synthesis scripts: generates scripts
Sources/Fault/Entries/synth.swift - TAP generation → JTAG logic: uses
- Simulation → Test vectors: uses
Sources/Fault/Simulation.swift - Simulation → Vector generators: uses
Sources/Fault/Simulation.swift - Simulation → Vector compaction: uses
- Vector generators → Test vectors: produces
Sources/Fault/TVGenerator.swift - Thread pool → Thread pool API: implements
Sources/CThreadPool/thpool.c