PyIBIS-AMI 8.1.0__tar.gz → 9.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyibis_ami-9.1.0/PKG-INFO +108 -0
- pyibis_ami-9.1.0/README.md +68 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/pyproject.toml +7 -1
- pyibis_ami-9.1.0/src/pyibis_ami.egg-info/PKG-INFO +108 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibis_ami.egg-info/SOURCES.txt +13 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibis_ami.egg-info/entry_points.txt +2 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibis_ami.egg-info/requires.txt +3 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/IBIS_AMI_Tester.ipynb +252 -154
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/__init__.py +1 -1
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/__main__.py +1 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/config.py +5 -4
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/generic.ibs.em +16 -22
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/model.py +126 -63
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/parameter.py +3 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/parser.py +77 -52
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/common.py +13 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ibis/file.py +103 -35
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ibis/model.py +35 -20
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ibis/parser.py +131 -56
- pyibis_ami-9.1.0/src/pyibisami/testing/__init__.py +23 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/ami_test_config.py +518 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/ami_tests.py +505 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/ami_tests_helpers.py +262 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/ibis_file_tests.py +142 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/test_defs.py +220 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/test_models.py +165 -0
- pyibis_ami-9.1.0/src/pyibisami/testing/util.py +66 -0
- pyibis_ami-9.1.0/src/pyibisami/tools/__init__.py +5 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/tools/run_notebook.py +96 -38
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/tools/run_tests.py +1 -70
- pyibis_ami-9.1.0/src/pyibisami/util/ami.py +73 -0
- pyibis_ami-9.1.0/src/pyibisami/util/misc.py +19 -0
- pyibis_ami-9.1.0/src/pyibisami/util/plot.py +457 -0
- pyibis_ami-9.1.0/src/pyibisami/util/reportlab.py +130 -0
- pyibis_ami-9.1.0/tests/test_ami_test_config.py +370 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/tests/test_run_tests.py +7 -13
- pyibis_ami-8.1.0/PKG-INFO +0 -133
- pyibis_ami-8.1.0/README.md +0 -96
- pyibis_ami-8.1.0/src/pyibis_ami.egg-info/PKG-INFO +0 -133
- pyibis_ami-8.1.0/src/pyibisami/tools/__init__.py +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/LICENSE +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/MANIFEST.in +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/ami.rst +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/conf.py +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/ibis.rst +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/index.rst +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/install.rst +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/modules.rst +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/docs/source/tools.rst +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/all_taps.run +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/bandwidth.run +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/dummy.em +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/examples.md +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/freq_resp.em +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/impulse.em +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/impulse_response_8ma.txt +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/mode.run +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/stratix4_ami_tx_runs/all_taps.run +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/stratix4_ami_tx_runs/test_results.xml +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/examples/test_results/test_results.xsl +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/setup.cfg +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibis_ami.egg-info/dependency_links.txt +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibis_ami.egg-info/top_level.txt +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/IBIS_AMI_Checker.ipynb +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/__init__.py +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/generic.ami.em +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ami/reserved_parameter_names.py +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/ibis/__init__.py +0 -0
- {pyibis_ami-8.1.0 → pyibis_ami-9.1.0}/src/pyibisami/tools/test_results.xsl +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyibis-ami
|
|
3
|
+
Version: 9.1.0
|
|
4
|
+
Summary: Facilitates working directly with IBIS-AMI DLLs from the Python command prompt.
|
|
5
|
+
Author-email: David Banas <capn.freako@gmail.com>
|
|
6
|
+
Project-URL: Documentation, https://pyibis-ami.readthedocs.io/en/latest/
|
|
7
|
+
Project-URL: Wiki, https://github.com/capn-freako/PyAMI/wiki
|
|
8
|
+
Project-URL: GitHub, https://github.com/capn-freako/PyAMI
|
|
9
|
+
Project-URL: PyPi, https://pypi.org/project/PyIBIS-AMI/
|
|
10
|
+
Keywords: ibis-ami
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
+
Classifier: Topic :: System :: Emulators
|
|
22
|
+
Classifier: Topic :: Utilities
|
|
23
|
+
Requires-Python: <3.13,>=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: chaco>=6.0.0
|
|
27
|
+
Requires-Dist: click>=8.1.3
|
|
28
|
+
Requires-Dist: empy>=3.3.4
|
|
29
|
+
Requires-Dist: importlib_resources
|
|
30
|
+
Requires-Dist: jupyter
|
|
31
|
+
Requires-Dist: lxml-html-clean>=0.4.4
|
|
32
|
+
Requires-Dist: matplotlib>=3.6.1
|
|
33
|
+
Requires-Dist: numpy<1.27,>=1.26
|
|
34
|
+
Requires-Dist: papermill
|
|
35
|
+
Requires-Dist: parsec>=3.15
|
|
36
|
+
Requires-Dist: reportlab>=4.4.10
|
|
37
|
+
Requires-Dist: scipy>=1.9
|
|
38
|
+
Requires-Dist: types-reportlab>=4.4.10.20260223
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
|
|
41
|
+
[](https://results.pre-commit.ci/latest/github/capn-freako/PyAMI/master)
|
|
42
|
+
|
|
43
|
+
# PyIBIS-AMI
|
|
44
|
+
|
|
45
|
+
PyIBIS-AMI is a Python package of tools useful in the development and testing of IBIS-AMI models.
|
|
46
|
+
This library is used in [PyBERT](https://github.com/capn-freako/PyBERT) and also provides three
|
|
47
|
+
command line applications.
|
|
48
|
+
|
|
49
|
+
It can be installed via: `pip install PyIBIS-AMI`.
|
|
50
|
+
|
|
51
|
+
[View API/Developer's Documentation.](https://pyibis-ami.readthedocs.io/en/latest/)
|
|
52
|
+
|
|
53
|
+
## Command Line Tools
|
|
54
|
+
|
|
55
|
+
### IBIS-AMI Model Testing
|
|
56
|
+
|
|
57
|
+
**PyIBIS-AMI Native:**
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
% test-model -h
|
|
61
|
+
Usage: test-model [OPTIONS] IBIS_FILE
|
|
62
|
+
|
|
63
|
+
Options:
|
|
64
|
+
-m, --model TEXT Name of IBIS-AMI model to test.
|
|
65
|
+
-p, --params TEXT Directory containing test configuration sweeps.
|
|
66
|
+
-d, --debug Provide extra debugging information.
|
|
67
|
+
--version Show the version and exit.
|
|
68
|
+
-h, --help Show this message and exit.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**IBIS v8.0:**
|
|
72
|
+
|
|
73
|
+
% check-ami -h
|
|
74
|
+
Usage: check-ami [OPTIONS] IBIS_FILE
|
|
75
|
+
|
|
76
|
+
Run [AMI Test Configuration] blocks embedded in an IBIS file (IBIS 8.0
|
|
77
|
+
§10.11).
|
|
78
|
+
|
|
79
|
+
Parses IBIS_FILE, locates the target model, then calls AMI_Init() (and
|
|
80
|
+
AMI_GetWave() for Time_domain configs) and compares the outputs against the
|
|
81
|
+
golden data files referenced in each [AMI Test Configuration] block.
|
|
82
|
+
|
|
83
|
+
Exits with status 1 if any configuration fails.
|
|
84
|
+
|
|
85
|
+
Options:
|
|
86
|
+
-m, --model-name TEXT Name of the [Model] to test. Required when the .ibs
|
|
87
|
+
file defines more than one model.
|
|
88
|
+
-c, --config TEXT Name of a single [AMI Test Configuration] to run.
|
|
89
|
+
Runs all configs when omitted.
|
|
90
|
+
--tol-ir FLOAT Absolute tolerance for impulse-response comparison.
|
|
91
|
+
[default: 1e-06]
|
|
92
|
+
--tol-wave FLOAT Absolute tolerance for waveform comparison.
|
|
93
|
+
[default: 1e-06]
|
|
94
|
+
-h, --help Show this message and exit.
|
|
95
|
+
|
|
96
|
+
### IBIS-AMI Model Pre-build Configuration
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
ami_config -h
|
|
100
|
+
Usage: ami_config [OPTIONS] PY_FILE
|
|
101
|
+
|
|
102
|
+
Configure IBIS-AMI model C++ source code, IBIS model, and AMI file.
|
|
103
|
+
|
|
104
|
+
py_file: name of model configuration file (*.py)
|
|
105
|
+
|
|
106
|
+
Options:
|
|
107
|
+
-h, --help Show this message and exit.
|
|
108
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
[](https://results.pre-commit.ci/latest/github/capn-freako/PyAMI/master)
|
|
2
|
+
|
|
3
|
+
# PyIBIS-AMI
|
|
4
|
+
|
|
5
|
+
PyIBIS-AMI is a Python package of tools useful in the development and testing of IBIS-AMI models.
|
|
6
|
+
This library is used in [PyBERT](https://github.com/capn-freako/PyBERT) and also provides three
|
|
7
|
+
command line applications.
|
|
8
|
+
|
|
9
|
+
It can be installed via: `pip install PyIBIS-AMI`.
|
|
10
|
+
|
|
11
|
+
[View API/Developer's Documentation.](https://pyibis-ami.readthedocs.io/en/latest/)
|
|
12
|
+
|
|
13
|
+
## Command Line Tools
|
|
14
|
+
|
|
15
|
+
### IBIS-AMI Model Testing
|
|
16
|
+
|
|
17
|
+
**PyIBIS-AMI Native:**
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
% test-model -h
|
|
21
|
+
Usage: test-model [OPTIONS] IBIS_FILE
|
|
22
|
+
|
|
23
|
+
Options:
|
|
24
|
+
-m, --model TEXT Name of IBIS-AMI model to test.
|
|
25
|
+
-p, --params TEXT Directory containing test configuration sweeps.
|
|
26
|
+
-d, --debug Provide extra debugging information.
|
|
27
|
+
--version Show the version and exit.
|
|
28
|
+
-h, --help Show this message and exit.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**IBIS v8.0:**
|
|
32
|
+
|
|
33
|
+
% check-ami -h
|
|
34
|
+
Usage: check-ami [OPTIONS] IBIS_FILE
|
|
35
|
+
|
|
36
|
+
Run [AMI Test Configuration] blocks embedded in an IBIS file (IBIS 8.0
|
|
37
|
+
§10.11).
|
|
38
|
+
|
|
39
|
+
Parses IBIS_FILE, locates the target model, then calls AMI_Init() (and
|
|
40
|
+
AMI_GetWave() for Time_domain configs) and compares the outputs against the
|
|
41
|
+
golden data files referenced in each [AMI Test Configuration] block.
|
|
42
|
+
|
|
43
|
+
Exits with status 1 if any configuration fails.
|
|
44
|
+
|
|
45
|
+
Options:
|
|
46
|
+
-m, --model-name TEXT Name of the [Model] to test. Required when the .ibs
|
|
47
|
+
file defines more than one model.
|
|
48
|
+
-c, --config TEXT Name of a single [AMI Test Configuration] to run.
|
|
49
|
+
Runs all configs when omitted.
|
|
50
|
+
--tol-ir FLOAT Absolute tolerance for impulse-response comparison.
|
|
51
|
+
[default: 1e-06]
|
|
52
|
+
--tol-wave FLOAT Absolute tolerance for waveform comparison.
|
|
53
|
+
[default: 1e-06]
|
|
54
|
+
-h, --help Show this message and exit.
|
|
55
|
+
|
|
56
|
+
### IBIS-AMI Model Pre-build Configuration
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
ami_config -h
|
|
60
|
+
Usage: ami_config [OPTIONS] PY_FILE
|
|
61
|
+
|
|
62
|
+
Configure IBIS-AMI model C++ source code, IBIS model, and AMI file.
|
|
63
|
+
|
|
64
|
+
py_file: name of model configuration file (*.py)
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
-h, --help Show this message and exit.
|
|
68
|
+
```
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyibis-ami"
|
|
7
7
|
description = "Facilitates working directly with IBIS-AMI DLLs from the Python command prompt."
|
|
8
|
-
version = "
|
|
8
|
+
version = "9.1.0"
|
|
9
9
|
authors = [ {name = "David Banas", email = "capn.freako@gmail.com"}
|
|
10
10
|
]
|
|
11
11
|
readme = "README.md"
|
|
@@ -16,11 +16,14 @@ dependencies = [
|
|
|
16
16
|
"empy>=3.3.4",
|
|
17
17
|
"importlib_resources",
|
|
18
18
|
"jupyter",
|
|
19
|
+
"lxml-html-clean>=0.4.4",
|
|
19
20
|
"matplotlib>=3.6.1",
|
|
20
21
|
"numpy>=1.26,<1.27",
|
|
21
22
|
"papermill",
|
|
22
23
|
"parsec>=3.15",
|
|
24
|
+
"reportlab>=4.4.10",
|
|
23
25
|
"scipy>=1.9",
|
|
26
|
+
"types-reportlab>=4.4.10.20260223",
|
|
24
27
|
]
|
|
25
28
|
keywords=["ibis-ami"]
|
|
26
29
|
classifiers=[
|
|
@@ -48,6 +51,8 @@ PyPi = "https://pypi.org/project/PyIBIS-AMI/"
|
|
|
48
51
|
ami-config = "pyibisami.ami.config:main"
|
|
49
52
|
run-tests = "pyibisami.tools.run_tests:main"
|
|
50
53
|
run-notebook = "pyibisami.tools.run_notebook:main"
|
|
54
|
+
test-model = "pyibisami.testing.test_models:main"
|
|
55
|
+
check-ami = "pyibisami.testing.ami_test_config:main"
|
|
51
56
|
|
|
52
57
|
[tool.setuptools.packages.find]
|
|
53
58
|
where = ["src"]
|
|
@@ -118,6 +123,7 @@ publish-url = "https://test.pypi.org/legacy/"
|
|
|
118
123
|
[dependency-groups]
|
|
119
124
|
dev = [
|
|
120
125
|
"m2r2>=0.3.4",
|
|
126
|
+
"mypy>=1.19.1",
|
|
121
127
|
"pytest>=9.0.2",
|
|
122
128
|
"pytest-cov>=7.0.0",
|
|
123
129
|
"pytest-xdist>=3.8.0",
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyibis-ami
|
|
3
|
+
Version: 9.1.0
|
|
4
|
+
Summary: Facilitates working directly with IBIS-AMI DLLs from the Python command prompt.
|
|
5
|
+
Author-email: David Banas <capn.freako@gmail.com>
|
|
6
|
+
Project-URL: Documentation, https://pyibis-ami.readthedocs.io/en/latest/
|
|
7
|
+
Project-URL: Wiki, https://github.com/capn-freako/PyAMI/wiki
|
|
8
|
+
Project-URL: GitHub, https://github.com/capn-freako/PyAMI
|
|
9
|
+
Project-URL: PyPi, https://pypi.org/project/PyIBIS-AMI/
|
|
10
|
+
Keywords: ibis-ami
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
+
Classifier: Topic :: System :: Emulators
|
|
22
|
+
Classifier: Topic :: Utilities
|
|
23
|
+
Requires-Python: <3.13,>=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: chaco>=6.0.0
|
|
27
|
+
Requires-Dist: click>=8.1.3
|
|
28
|
+
Requires-Dist: empy>=3.3.4
|
|
29
|
+
Requires-Dist: importlib_resources
|
|
30
|
+
Requires-Dist: jupyter
|
|
31
|
+
Requires-Dist: lxml-html-clean>=0.4.4
|
|
32
|
+
Requires-Dist: matplotlib>=3.6.1
|
|
33
|
+
Requires-Dist: numpy<1.27,>=1.26
|
|
34
|
+
Requires-Dist: papermill
|
|
35
|
+
Requires-Dist: parsec>=3.15
|
|
36
|
+
Requires-Dist: reportlab>=4.4.10
|
|
37
|
+
Requires-Dist: scipy>=1.9
|
|
38
|
+
Requires-Dist: types-reportlab>=4.4.10.20260223
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
|
|
41
|
+
[](https://results.pre-commit.ci/latest/github/capn-freako/PyAMI/master)
|
|
42
|
+
|
|
43
|
+
# PyIBIS-AMI
|
|
44
|
+
|
|
45
|
+
PyIBIS-AMI is a Python package of tools useful in the development and testing of IBIS-AMI models.
|
|
46
|
+
This library is used in [PyBERT](https://github.com/capn-freako/PyBERT) and also provides three
|
|
47
|
+
command line applications.
|
|
48
|
+
|
|
49
|
+
It can be installed via: `pip install PyIBIS-AMI`.
|
|
50
|
+
|
|
51
|
+
[View API/Developer's Documentation.](https://pyibis-ami.readthedocs.io/en/latest/)
|
|
52
|
+
|
|
53
|
+
## Command Line Tools
|
|
54
|
+
|
|
55
|
+
### IBIS-AMI Model Testing
|
|
56
|
+
|
|
57
|
+
**PyIBIS-AMI Native:**
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
% test-model -h
|
|
61
|
+
Usage: test-model [OPTIONS] IBIS_FILE
|
|
62
|
+
|
|
63
|
+
Options:
|
|
64
|
+
-m, --model TEXT Name of IBIS-AMI model to test.
|
|
65
|
+
-p, --params TEXT Directory containing test configuration sweeps.
|
|
66
|
+
-d, --debug Provide extra debugging information.
|
|
67
|
+
--version Show the version and exit.
|
|
68
|
+
-h, --help Show this message and exit.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**IBIS v8.0:**
|
|
72
|
+
|
|
73
|
+
% check-ami -h
|
|
74
|
+
Usage: check-ami [OPTIONS] IBIS_FILE
|
|
75
|
+
|
|
76
|
+
Run [AMI Test Configuration] blocks embedded in an IBIS file (IBIS 8.0
|
|
77
|
+
§10.11).
|
|
78
|
+
|
|
79
|
+
Parses IBIS_FILE, locates the target model, then calls AMI_Init() (and
|
|
80
|
+
AMI_GetWave() for Time_domain configs) and compares the outputs against the
|
|
81
|
+
golden data files referenced in each [AMI Test Configuration] block.
|
|
82
|
+
|
|
83
|
+
Exits with status 1 if any configuration fails.
|
|
84
|
+
|
|
85
|
+
Options:
|
|
86
|
+
-m, --model-name TEXT Name of the [Model] to test. Required when the .ibs
|
|
87
|
+
file defines more than one model.
|
|
88
|
+
-c, --config TEXT Name of a single [AMI Test Configuration] to run.
|
|
89
|
+
Runs all configs when omitted.
|
|
90
|
+
--tol-ir FLOAT Absolute tolerance for impulse-response comparison.
|
|
91
|
+
[default: 1e-06]
|
|
92
|
+
--tol-wave FLOAT Absolute tolerance for waveform comparison.
|
|
93
|
+
[default: 1e-06]
|
|
94
|
+
-h, --help Show this message and exit.
|
|
95
|
+
|
|
96
|
+
### IBIS-AMI Model Pre-build Configuration
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
ami_config -h
|
|
100
|
+
Usage: ami_config [OPTIONS] PY_FILE
|
|
101
|
+
|
|
102
|
+
Configure IBIS-AMI model C++ source code, IBIS model, and AMI file.
|
|
103
|
+
|
|
104
|
+
py_file: name of model configuration file (*.py)
|
|
105
|
+
|
|
106
|
+
Options:
|
|
107
|
+
-h, --help Show this message and exit.
|
|
108
|
+
```
|
|
@@ -43,8 +43,21 @@ src/pyibisami/ibis/__init__.py
|
|
|
43
43
|
src/pyibisami/ibis/file.py
|
|
44
44
|
src/pyibisami/ibis/model.py
|
|
45
45
|
src/pyibisami/ibis/parser.py
|
|
46
|
+
src/pyibisami/testing/__init__.py
|
|
47
|
+
src/pyibisami/testing/ami_test_config.py
|
|
48
|
+
src/pyibisami/testing/ami_tests.py
|
|
49
|
+
src/pyibisami/testing/ami_tests_helpers.py
|
|
50
|
+
src/pyibisami/testing/ibis_file_tests.py
|
|
51
|
+
src/pyibisami/testing/test_defs.py
|
|
52
|
+
src/pyibisami/testing/test_models.py
|
|
53
|
+
src/pyibisami/testing/util.py
|
|
46
54
|
src/pyibisami/tools/__init__.py
|
|
47
55
|
src/pyibisami/tools/run_notebook.py
|
|
48
56
|
src/pyibisami/tools/run_tests.py
|
|
49
57
|
src/pyibisami/tools/test_results.xsl
|
|
58
|
+
src/pyibisami/util/ami.py
|
|
59
|
+
src/pyibisami/util/misc.py
|
|
60
|
+
src/pyibisami/util/plot.py
|
|
61
|
+
src/pyibisami/util/reportlab.py
|
|
62
|
+
tests/test_ami_test_config.py
|
|
50
63
|
tests/test_run_tests.py
|