Simulate and verify
simulate_and_verifyAutomate MAX+PLUS II simulation verification: run headless, parse the .tbl result table, and check outputs against expected values.
Instructions
Run the Simulator headless and return the parsed result table, then optionally check expected output values. This is how simulation verification is automated: MAX+PLUS II writes a plain-text .tbl containing the simulated outputs, so a design can be checked without a human reading a waveform. Note a successful simulation may exit 1 — the verdict comes from the success banner plus the table artifact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scf | No | Stimulus file. Defaults to <project>.scf if present. | |
| tbl | No | Where to write the result table. Defaults to <project>.tbl. | |
| root | No | MAX+PLUS II installation root, for example C:\maxplus2. Defaults to MAXPLUS2_ROOT, then a scan of common paths. | |
| async | No | Run in the background and return a jobId immediately instead of blocking. Use for any compile or simulation that may outrun the client timeout: a client timeout does NOT stop the child process, so a blocking call that is abandoned keeps running with nobody holding the result. Poll with job_status. | |
| expect | No | Expected values, as { "<time>": { "SIGNAL": value } }. Values may be numbers or hex strings like "80". Outputs and buried nodes are both checkable. | |
| project | Yes | Project name (for example "top") or an absolute path to its .acf file. A bare name is resolved against workspace, and is rejected as ambiguous if several projects share it. | |
| timeoutMs | No | Hard timeout in milliseconds. A client timeout is wall-clock and progress does not extend it, so keep this below the client budget. | |
| tolerance | No | Time tolerance in table units when matching expectations (default 0.05). | |
| workspace | No | Directory that a relative project name is resolved against. Defaults to MAXPLUS2_WORKSPACE, then the server working directory. | |
| previewRows | No | How many leading trace rows to return (default 12). |