cbadc 0.4.0__py3-none-any.whl
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.
- cbadc/__init__.py +99 -0
- cbadc/__version__.py +3 -0
- cbadc/circuit.py +960 -0
- cbadc/delsig.py +777 -0
- cbadc/estimator.py +794 -0
- cbadc/fom.py +165 -0
- cbadc/frontend.py +3199 -0
- cbadc/noise.py +296 -0
- cbadc/simulation.py +958 -0
- cbadc/snr.py +1012 -0
- cbadc-0.4.0.dist-info/METADATA +90 -0
- cbadc-0.4.0.dist-info/RECORD +14 -0
- cbadc-0.4.0.dist-info/WHEEL +4 -0
- cbadc-0.4.0.dist-info/licenses/LICENCE +674 -0
cbadc/__init__.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"""State-space modelling, simulation, and measurement of A/D converters.
|
|
2
|
+
|
|
3
|
+
:class:`Frontend` holds the clocked ``A, B, C, D`` model. Simulation returns
|
|
4
|
+
decisions, inputs, and a digital-twin readout. :mod:`circuit` provides gm-C
|
|
5
|
+
and active-RC realizations; :mod:`noise`, :mod:`estimator`, :mod:`snr`, and
|
|
6
|
+
:mod:`fom` support analysis. :mod:`delsig` is an optional synthesis bridge.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import TYPE_CHECKING
|
|
10
|
+
|
|
11
|
+
from . import circuit, estimator, fom, frontend, noise, snr
|
|
12
|
+
from .__version__ import __version__
|
|
13
|
+
from .circuit import ActiveRC, GmC
|
|
14
|
+
from .estimator import StateSpaceFilter, WienerFilter
|
|
15
|
+
from .frontend import (
|
|
16
|
+
DAC,
|
|
17
|
+
SOS,
|
|
18
|
+
Constant,
|
|
19
|
+
Discretization,
|
|
20
|
+
Exp,
|
|
21
|
+
Filter,
|
|
22
|
+
Frontend,
|
|
23
|
+
Pole,
|
|
24
|
+
Poly,
|
|
25
|
+
Samples,
|
|
26
|
+
Sinusoid,
|
|
27
|
+
StateSpace,
|
|
28
|
+
cascade,
|
|
29
|
+
parallel,
|
|
30
|
+
)
|
|
31
|
+
from .noise import (
|
|
32
|
+
combine_densities,
|
|
33
|
+
discrete_process_noise_cov,
|
|
34
|
+
kTC_rms,
|
|
35
|
+
ota_density,
|
|
36
|
+
per_state_intensity,
|
|
37
|
+
positive_semidefinite,
|
|
38
|
+
resistor_density,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
if TYPE_CHECKING:
|
|
42
|
+
from . import delsig
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def __getattr__(name: str):
|
|
46
|
+
"""Load the optional delta-sigma bridge only when requested.
|
|
47
|
+
|
|
48
|
+
Parameters
|
|
49
|
+
----------
|
|
50
|
+
name : str
|
|
51
|
+
Package attribute name to resolve.
|
|
52
|
+
|
|
53
|
+
Returns
|
|
54
|
+
-------
|
|
55
|
+
module
|
|
56
|
+
Lazily imported optional ``delsig`` module.
|
|
57
|
+
"""
|
|
58
|
+
if name == "delsig":
|
|
59
|
+
from importlib import import_module
|
|
60
|
+
|
|
61
|
+
return import_module(".delsig", __name__)
|
|
62
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
__all__ = [
|
|
66
|
+
"ActiveRC",
|
|
67
|
+
"Constant",
|
|
68
|
+
"DAC",
|
|
69
|
+
"Discretization",
|
|
70
|
+
"Exp",
|
|
71
|
+
"Filter",
|
|
72
|
+
"Frontend",
|
|
73
|
+
"GmC",
|
|
74
|
+
"Pole",
|
|
75
|
+
"Poly",
|
|
76
|
+
"SOS",
|
|
77
|
+
"Samples",
|
|
78
|
+
"Sinusoid",
|
|
79
|
+
"StateSpace",
|
|
80
|
+
"StateSpaceFilter",
|
|
81
|
+
"WienerFilter",
|
|
82
|
+
"__version__",
|
|
83
|
+
"cascade",
|
|
84
|
+
"combine_densities",
|
|
85
|
+
"circuit",
|
|
86
|
+
"delsig",
|
|
87
|
+
"discrete_process_noise_cov",
|
|
88
|
+
"estimator",
|
|
89
|
+
"fom",
|
|
90
|
+
"frontend",
|
|
91
|
+
"kTC_rms",
|
|
92
|
+
"noise",
|
|
93
|
+
"ota_density",
|
|
94
|
+
"parallel",
|
|
95
|
+
"per_state_intensity",
|
|
96
|
+
"positive_semidefinite",
|
|
97
|
+
"resistor_density",
|
|
98
|
+
"snr",
|
|
99
|
+
]
|
cbadc/__version__.py
ADDED