Skip to content

Commit

Permalink
Merge pull request #130 from mole99/netlist-source
Browse files Browse the repository at this point in the history
Add `netlist_source` as reserved variable
  • Loading branch information
mole99 authored Oct 17, 2024
2 parents a932cc2 + 891ecec commit b1d1ed9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.5.2

## Common

- Add reserved variable `netlist_source`

# 2.5.1

## CLI
Expand Down
2 changes: 1 addition & 1 deletion cace/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='')
1 change: 1 addition & 0 deletions cace/parameter/parameter_ngspice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
12 changes: 8 additions & 4 deletions docs/source/reference_manual/template_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b1d1ed9

Please sign in to comment.