Skip to content

biogitt/PatternConvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PatternConvert

Note: This project was generated by AI — with thanks to GitHub Copilot and Claude Opus.

A Windows desktop tool that converts STIL (Standard Test Interface Language) ATPG pattern files — into the file formats consumed by the NI Semiconductor Test Module (STS):

Output file Format Purpose
.digipatsrc text Digital pattern source (expanded test vectors)
.pinmap XML Pin map (instruments, DUT pins, pin groups)
.digitiming XML Digital timing (time sets, periods, pin edges)
.digipat binary Compiled pattern (when the NI compiler is installed)

The tool also supports the CSV signal-configuration format used by VectorPort, so you can filter, rename and re-order the signals that end up in the generated files.

Features

  • STIL parsing for the ATPG subset emitted by TetraMAX / DFT Compiler — signals, signal groups, timing (WaveformTable), procedures, macros and the pattern block.
  • Signal mapping via the CSV format: keep/remove signals, rename them to DUT pin names, and preserve the mapping file's ordering in the output.
  • Lazy pattern expansion — opening a STIL file only parses the lightweight configuration (signals/groups/timing) so the UI stays responsive; the (potentially huge) pattern block is expanded later, at generation time.
  • Streaming generation — the expanded vectors are streamed straight to disk, so memory stays flat even for patterns with millions of cycles.
  • Progress reporting during generation (line N/total).
  • Validation harness(deleted) (TestValidation) that diffs a freshly generated .digipatsrc against a reference conversion.

Projects

Project Type Description
PatternConversionTool WPF app (.NET 10) The conversion GUI (MVVM).

Solution layout

PatternConvert.slnx
PatternConversionTool/
  Models/        Signal, PatternInfo (VectorRow), SignalGroup, TimingInfo
  Services/      StilParser, SignalConfigService, DigiPatGenerator,
                 PinmapGenerator, TimingGenerator, DigitalPatternCompiler
  ViewModels/    MainViewModel, RelayCommand
  MainWindow.xaml / App.xaml

Requirements

  • .NET 10 SDK (target framework net10.0-windows)
  • Windows (the main app uses WPF and Windows Forms dialogs)

Building

dotnet build PatternConvert.slnx

Or open PatternConvert.slnx in Visual Studio and build.

Running the app

dotnet run --project PatternConversionTool

Typical workflow

  1. Load STIL — opens a STIL file and lists its signals (direction, STIL name). Only the configuration is parsed at this point; the pattern is expanded on generation.
  2. Load CSV — (optional) import a CSV mapping file to filter and rename signals. Signals flagged Remove? == true are excluded; kept signals are listed first, in mapping-file order.
  3. Edit signals — adjust pin name, enabled/remote flags and grouping directly in the grid.
  4. Export CSV — (optional) save the current signal configuration back to a CSV file.
  5. Generate — choose an output folder. The tool writes <name>.digipatsrc, <name>.pinmap and <name>.digitiming, streaming the pattern vectors to disk with a progress indicator.

Signal mapping

License

No license file is currently included in this repository.

About

Convert STIL file to digipatsrc file

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages