From 891ecece6f7569bdf18d8708a4d9798ba1b703b6 Mon Sep 17 00:00:00 2001 From: mole99 Date: Wed, 16 Oct 2024 15:33:40 +0200 Subject: [PATCH] Add netlist_source as reserved variable --- Changelog.md | 6 ++++++ cace/__version__.py | 2 +- cace/parameter/parameter_ngspice.py | 1 + docs/source/reference_manual/template_format.md | 12 ++++++++---- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Changelog.md b/Changelog.md index 4c6d463..4232295 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,9 @@ +# 2.5.2 + +## Common + +- Add reserved variable `netlist_source` + # 2.5.1 ## CLI diff --git a/cace/__version__.py b/cace/__version__.py index 1f50cca..f79ba7f 100644 --- a/cace/__version__.py +++ b/cace/__version__.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '2.5.1' +__version__ = '2.5.2' if __name__ == '__main__': print(__version__, end='') diff --git a/cace/parameter/parameter_ngspice.py b/cace/parameter/parameter_ngspice.py index 2013f38..6b46ff1 100755 --- a/cace/parameter/parameter_ngspice.py +++ b/cace/parameter/parameter_ngspice.py @@ -326,6 +326,7 @@ def implementation(self): 'templates': os.path.abspath(self.paths['templates']), 'simpath': os.path.abspath(outpath), 'DUT_name': self.datasheet['name'], + 'netlist_source': source, 'N': index, 'DUT_path': os.path.abspath(dutpath), 'PDK_ROOT': get_pdk_root(), diff --git a/docs/source/reference_manual/template_format.md b/docs/source/reference_manual/template_format.md index ecf585b..f20829d 100644 --- a/docs/source/reference_manual/template_format.md +++ b/docs/source/reference_manual/template_format.md @@ -24,10 +24,6 @@ that is substituted by CACE. The syntax follows three essential rules: > The name of the path to simulation files. -- `CACE{random}` - - > A random integer number. - - `CACE{DUT_path}` > The full path to the DUT subcircuit definition netlist. @@ -36,6 +32,10 @@ that is substituted by CACE. The syntax follows three essential rules: > The name of the DUT subcircuit +- `CACE{netlist_source}` + + > The current netlist source such as: schematic, layout, pex or rcx. + - `CACE{PDK_ROOT}` > The path to the directory containing the PDK @@ -49,6 +49,10 @@ that is substituted by CACE. The syntax follows three essential rules: > This is substituted with the simulation index. Most often used as a filename suffix for the output data file. +- `CACE{random}` + + > A random integer number. + - `CACE{cond=value}` For any condition cond, this form indicates that "value" is