Skip to content

83 add golden waveform testing ala ibis 80#85

Open
capn-freako wants to merge 2 commits into
masterfrom
83-add-golden-waveform-testing-ala-ibis-80
Open

83 add golden waveform testing ala ibis 80#85
capn-freako wants to merge 2 commits into
masterfrom
83-add-golden-waveform-testing-ala-ibis-80

Conversation

@capn-freako
Copy link
Copy Markdown
Owner

Hi David,

This seems a little to easy to believe.
So, would you mind checking it from an unbiased perspective?

I just used Claude Code to implement the change needed for the new Issue #83
It appears to have worked, but I'm skeptical.
(Check the sub-issue #84 for the prompts I used.)
Can you believe this?!

Thanks,
-db

capn-freako and others added 2 commits June 7, 2026 18:15
Implements section 10.11 of the IBIS 8.0 spec, which lets model makers
embed golden input/output data directly in .ibs files so any EDA tool
can verify a model produces its intended output.

- ibis/parser.py: new `ami_tc_param`, `ami_test_config`, and `algo_model`
  parsers; `[Algorithmic Model]` now returns {"executables": [...],
  "test_configs": {...}} instead of a bare executor list
- ibis/model.py: unpack the new dict, expose `test_configs` and
  `executables` properties on `Model`
- testing/ami_test_config.py: `run_ami_test_config()` / `run_all_ami_test_configs()`
  load the referenced files, call AMI_Init (and AMI_GetWave for
  Time_domain), and compare against the golden IR / waveform /
  params_out with configurable tolerances
- tests/: parser fixture + 2 parser tests; 12 runner tests covering
  Statistical pass/fail, Time_domain pass/fail, optional golden IR,
  missing config, and the run_all convenience wrapper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
  2. review test_runs/example_rx/example_rx/pyami_test_def_channel_type_sweep.py to understand how test definitions are written
  3. read section 10.11 of local/ver8_0.pdf to understand the new test we need to add
  4. try ver8_0_sec_10_11.txt
  5. yes, start with the parser extension
  6. continue, but use 'uv run' as a prefix for all Bash commands
  7. now write the test runner
  8. now write a test for the test runner
@capn-freako capn-freako linked an issue Jun 7, 2026 that may be closed by this pull request
@capn-freako capn-freako requested a review from jdpatt June 7, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Golden Waveform Testing ala IBIS 8.0

1 participant