Bounded STDF V4 decoding and semiconductor test-data analysis in MoonBit
| 分类 | 已支持记录(REC_TYP/REC_SUB) | 状态 |
|---|---|---|
| 文件与审计 | FAR 0/10、ATR 0/20 | 已支持 |
| 批次与汇总 | MIR 1/10、MRR 1/20、PCR 1/30、HBR 1/40、SBR 1/50 | 已支持 |
| 引脚、复测与站点 | PMR 1/60、PGR 1/62、PLR 1/63、RDR 1/70、SDR 1/80 | 已支持 |
| 晶圆 | WIR 2/10、WRR 2/20、WCR 2/30 | 已支持 |
| 芯片 | PIR 5/10、PRR 5/20 | 已支持 |
| 测试汇总 | TSR 10/30 | 已支持 |
| 测试结果 | PTR 15/10、MPR 15/15、FTR 15/20 | 已支持 |
| 程序段 | BPS 20/10、EPS 20/20 | 已支持 |
| 通用数据与文本 | GDR 50/10、DTR 50/30 | 已支持 |
moon build --target js --deny-warn
python tools/generate_demo.py
git clone https://github.com/0607272/MoonSTDF.git
cd MoonSTDF
moon check --target all --deny-warn
moon test --target wasm-gc --deny-warn
moon run examples/demo --target wasm-gc
moon build --target js --deny-warn
node _build/js/debug/build/cmd/main/main.js analyze fixtures/lot-a-le.stdfnode _build/js/debug/build/cmd/main/main.js dump fixtures/v4-all-records-le.stdf --output records.jsonl
node _build/js/debug/build/cmd/main/main.js validate fixtures/v4-all-records-vax.stdfnode _build/js/debug/build/cmd/main/main.js analyze fixtures/lot-a-le.stdf --format html --output lot.html
node _build/js/debug/build/cmd/main/main.js analyze fixtures/lot-a-le.stdf --format csv --output parts.csv
node _build/js/debug/build/cmd/main/main.js analyze fixtures/lot-a-le.stdf --policy last --identity coordinates
node _build/js/debug/build/cmd/main/main.js compare fixtures/lot-a-le.stdf fixtures/lot-b-le.stdf
node _build/js/debug/build/cmd/main/main.js retest fixtures/lot-a-le.stdf fixtures/retest-le.stdf --identity coordinatesmoon build --target js --deny-warn
python tools/build_web.pyfn inspect_file(data : Bytes) -> String raise @moonstdf.StdfError {
let analysis = @moonstdf.analyze(data)
@moonstdf.report_json(analysis)
}moon fmt --check
moon info
git diff --exit-code -- '*.mbti'
moon check --target all --deny-warn
moon build --target wasm --deny-warn
moon test --target wasm --deny-warn
moon build --target wasm-gc --deny-warn
moon test --target wasm-gc --deny-warn
moon build --target js --deny-warn
moon test --target js --deny-warn
python tools/generate_fixtures.py --check
python tools/generate_v4_coverage.py --check
python tools/test_cli.py
python tools/test_v4_coverage.py
python tools/generate_demo.py --check
python tools/build_web.py
python tools/test_web.pypub struct Analyzer {
lot : String
have_mir : Bool
have_mrr : Bool
have_pcr : Bool
count : Int
received : Int
order : ByteOrder?
max_records : Int
max_bytes : Int
closed : Bool
parts : Array[Part]
diagnostics : Array[Diagnostic]
summaries : Array[Summary]
ancillary_records : Array[AncillaryRecord]
unknown : Array[Frame]
groups : Map[String, Int]
wafers : Map[String, String]
pending : Map[String, PendingPart]
defaults : Map[String, TestDefaults]
validator : V4Validator
}pub(all) struct BatchComparison {
before_yield : YieldSummary
after_yield : YieldSummary
tests : Array[TestComparison]
diagnostics : Array[Diagnostic]
} derive(Debug)pub(all) enum GenericValue {
Padding
U1(Int)
U2(Int)
U4(UInt)
I1(Int)
I2(Int)
I4(Int)
R4(Double)
R8(Double)
Text(String)
Binary(Bytes)
Bits(Int, Bytes)
Nibble(Int)
} derive(Debug)pub(all) struct LotInfo {
setup : UInt
start : UInt
station : Int
lot : String
product : String
node : String
tester : String
job : String
} derive(Debug)pub(all) enum Metadata {
Far(Int, Int)
Mir(LotInfo)
Mrr(UInt)
Sdr(Int, Int, Array[Int])
Wir(Int, Int, UInt, String)
Wrr(Int, Int, UInt, UInt, UInt?, String)
Wcr(WaferGeometry)
} derive(Debug)pub(all) struct Part {
lot : String
wafer : String?
result : PartResult
tests : Array[Measurement]
offset : Int
} derive(Debug)pub(all) struct RetestReport {
matched : Int
recovered : Int
still_failed : Int
regressed : Int
unknown : Int
ambiguous : Int
unmatched_before : Int
unmatched_after : Int
transitions : Array[BinTransition]
diagnostics : Array[Diagnostic]
} derive(Debug)pub(all) struct RetestSelection {
parts : Array[Part]
diagnostics : Array[Diagnostic]
duplicates : Int
} derive(Debug)pub(all) struct TestComparison {
signature : TestSignature
before : TestStatistics
after : TestStatistics
mean_delta : Double?
failure_rate_delta : Double?
} derive(Debug)pub(all) struct TestDefaults {
flags : Int?
res_scale : Int?
low_scale : Int?
high_scale : Int?
low : Double?
high : Double?
units : String?
} derive(Debug)pub(all) struct TestRecord {
kind : String
number : UInt
head : Int
site : Int
flags : Int
param_flags : Int
values : Array[Double]
states : Array[Int]
indexes : Array[Int]
text : String
defaults : TestDefaults
} derive(Debug)pub(all) struct TestStatistics {
signature : TestSignature
text : String
executions : Int
passed : Int
failed : Int
unknown : Int
usable_samples : Int
excluded_samples : Int
mean : Double?
stddev : Double?
minimum : Double?
maximum : Double?
below_limit : Int
above_limit : Int
failure_rate : Double?
} derive(Debug)pub struct V4Validator {
closed : Bool
count : Int
received : Int
phase : Int
previous : String
order : ByteOrder?
max_records : Int
max_bytes : Int
counts : Map[String, Int]
diagnostics : Array[Diagnostic]
pins : Map[Int, Bool]
pin_groups : Map[Int, Bool]
sections : Array[Int]
parts : Map[String, Int]
wafers : Map[String, String]
}pub(all) enum V4Value {
MissingField
UnsignedField(UInt)
SignedField(Int)
RealField(Double)
TextField(String)
BytesField(Bytes)
BitsField(Int, Bytes)
ArrayField(Array[V4Value])
GenericField(Array[GenericValue])
} derive(Debug)pub(all) struct ValidationReport {
valid : Bool
record_count : Int
record_counts : Map[String, Int]
diagnostics : Array[Diagnostic]
} derive(Debug)pub(all) struct WaferGeometry {
diameter : Double?
die_height : Double?
die_width : Double?
units : Int
flat : Int
center_x : Int?
center_y : Int?
positive_x : Int
positive_y : Int
} derive(Debug)pub(all) struct YieldSummary {
total : Int
passed : Int
failed : Int
unknown : Int
abnormal : Int
denominator : Int
yield_rate : Double?
} derive(Debug)fn compare_retests(before : Array[Part], after : Array[Part], identity : RetestIdentity) -> RetestReportfn select_retests(parts : Array[Part], policy : RetestPolicy, identity : RetestIdentity) -> RetestSelectionInstall
Download zipBounded STDF V4 decoding and semiconductor test-data analysis in MoonBit