Skip to main content

NoTcl: Replace Tcl scripting with Python

License NoTcl on PyPI Documentation Status

Many tools, especially in VLSI and digital circuit design, expose their functionality through a custom Tcl interpreter. In order to automate those programs, users are expected to write Tcl scripts. With growing complexity, such Tcl scripts become difficult to maintain and often do not integrate seamlessly into larger software systems.

NoTcl allows Tcl-based tools to be automated using Python instead of Tcl. It wraps each tool in a Python interface, turning it into a library that can be imported, tested, and integrated like any other Python package. Python's module system, testing frameworks, and rich ecosystem make it better suited for complex automation than Tcl scripts. NoTcl handles subprocess management and communication via named pipes, exposing a Python API for calling Tcl commands.

Installation

pip3 install notcl

Quick Start

Define a custom tool by subclassing TclTool:

from notcl import TclTool

class Tclsh(TclTool):
    def cmdline(self):
        return ["tclsh", self.script_name()]

with Tclsh() as t:
    result = t.expr(3, "*", 5)  # Call Tcl commands as Python methods
    print(result)  # 15

    items = t.lreverse([1, 2, 3])  # Automatic type conversion

To dive in deeper, please have a look at the documentation.

  • pydesignflow — A technology- and tool-agnostic micro-framework for constructing FPGA and VLSI design flows in Python. Uses NoTcl to automate Tcl-based EDA tools like Yosys and OpenROAD.

Example Projects

  • RISC-V Lab: An FPGA-based RISC-V design platform and flow for teaching SoC development, using PyDesignFlow to manage hardware synthesis, simulation, and software builds..

License

Copyright 2022 - 2026 Tobias Kaiser

SPDX-License-Identifier: Apache-2.0

Metadata

Release files for notcl 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notcl 0.5.0
File Size Uploaded
notcl-0.5.0.tar.gz 39.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for notcl 0.5.0
File Interpreter ABI Platform
notcl-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.0 kB

Release files / notcl-0.5.0.tar.gz

Download URL notcl-0.5.0.tar.gz
Size 39.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2a938cb2a4538dc61d5de96facee8f3663831bd338c1d895c13b6697b5b17eef
BLAKE2b-256 checksum
How to use checksums
887ed3b8dfea41df5d592772aff5e4cc81af119c8e3cfcd1f4e0611e76977672
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / notcl-0.5.0-py3-none-any.whl

Download URL notcl-0.5.0-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
659a7a05980c195fbb5220a9246e9a5759144e2c23dbfafdd62afad7b9b638ee
BLAKE2b-256 checksum
How to use checksums
93fb755100259156190fbcac77771ff927e8ef04da8e5c157629dcf67af54818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page