Skip to main content

Transactron

Transactron is a library for Amaranth HDL which makes designing complex digital designs easier. It provides an abstraction for ready/valid handshake signals, automatically generates arbitration circuits, and presents an intuitive, object-oriented-like interface to the circuit designer. The main advantages of using Transactron are:

  • Abstracted handshake signalling makes it easier to design complex, latency-insensitive, pipelined circuits.
  • Object-oriented-like interface allows to encapsulate complex behavior of a module and present a simple interface for its users. The syntax used is friendly for people coming from software development background.
  • Thanks to auto-generated arbitrators and a rich library of reusable components, refactoring circuits is powerful and requires less effort. For example, when constructing pipelines, switching between lock-step, FIFO-coupled or combinational connection is as simple as switching a connector module.

A Transactron module defines a number of methods, which represent actions which can be performed by the circuit. If an action cannot be performed at a given time (e.g. a pop from an empty FIFO queue), the method is marked as not ready. A method can be called by other methods or by transactions, which represent single cycle state changes in a circuit. A given transaction can only be run when every method it calls is ready. When two different transactions call the same method, they are in conflict, which indicates a structural hazard. Transactron ensures that two conflicting transactions never run in the same clock cycle.

Transactron is inspired by Bluespec and its concept of guarded atomic actions. However, while Bluespec requires to follow its paradigm strictly down to simple register assignments, Transactron's abstractions are intended to be used at module boundaries, while the actual logic is written in plain Amaranth. Transactron is just a library and, as such, allows smooth interoperation with plain Amaranth HDL code.

A short video introduction to the Transactron library and its concepts is available here (ORConf 2025).

State of the project

The library is in alpha stage of development, but is already well tested because it serves a foundation for the Coreblocks out-of-order RISC-V CPU.

Documentation

The documentation is automatically generated using Sphinx. It includes a tutorial, which demonstrates how to start developing hardware using Transactron.

Community

We have a community IRC channel - #coreforge at libera.chat bridged with Matrix #coreforge:fossi-chat.org. You are welcome to join and share feedback, ask questions, or discuss the development of Coreforge Foundation projects :)

Contributing

Set up the development environment following the project documetation.

External contributors are welcome to submit pull requests for simple contributions directly. For larger changes, please discuss your plans with us through the issues page or the discussions page first. This way, you can ensure that the contribution fits the project and will be merged sooner.

License

This project is three-clause BSD licensed.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transactron-0.11.0.tar.gz (197.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transactron-0.11.0-py3-none-any.whl (151.2 kB view details)

Uploaded Python 3

File details

Details for the file transactron-0.11.0.tar.gz.

File metadata

  • Download URL: transactron-0.11.0.tar.gz
  • Upload date:
  • Size: 197.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for transactron-0.11.0.tar.gz
Algorithm Hash digest
SHA256 95c3aa86549b12b6bf9276f00d53f824e17daacc0496cf90c3d2a049bc6d879f
MD5 7a84e21be89f3bdc63106d6dd8943fca
BLAKE2b-256 4ef427da9325a4e874fbe693770389d3cd104bf63f59bec60eb389b5652ad1a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for transactron-0.11.0.tar.gz:

Publisher: publish-to-pypi.yml on kuznia-rdzeni/transactron

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file transactron-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: transactron-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 151.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for transactron-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c035541cba5a6b232ba3bc6a7bc2d9bdf73e345a4f47c8f69c5d1cb87bb36ac4
MD5 18d5d4c9a81a609dd8d598d4c89b49c1
BLAKE2b-256 12f94712aa3d792903113a8fd9a351b4d8c055979d0ee23204c83b4eaeca4b48

See more details on using hashes here.

Provenance

The following attestation bundles were made for transactron-0.11.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on kuznia-rdzeni/transactron

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.13.1

2 files

0.13.0

2 files

0.12.0

2 files

This release

0.11.0 This release

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page