Design Philosophy
This is an much more efficient implementation of canal. It is rewritten from scratch to utilize kratos’ efficient hardware generator framework.
Original canal description copied below:
In canal, the hardware is represented as a directed graph (DiGraph). In principle each node in the graph will be turn into a hardware component based on the property of the node. The edge will be transformed into a wire.
One thing to notice is that staged generation happens on the graph level. That is, passes have to be operated on the DiGraph, rather than the hardware generator itself. This allows better analysis and reduce the computation overhead since magma is slow when constructing large hardware. In canal, different bit width routing network will have different DiGraph by design. This allows us to share the common passes on different DiGraph while constructing on the same interconnect
How to install
pip install kcanal
Relationship with CGRA_PNR (Thunder/Cyclone)
The internal DiGraph representation is identical to Cyclone. Due to the requirement of pure-Python implementation, canal re-implemented the graph representation with more utility functions. The PnR information is interchangeable with Thunder and Cyclone and thus can be used in place route directly.
There is a python utility package called archipelago, that can take Interconnect object in canal and perform place and route directly. To install archipelago, you can use
pip install archipelago
It will use pre-built Python native wheels to speed up place and route.
Release files for kcanal 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kcanal-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / kcanal-0.0.1-py3-none-any.whl
| Download URL | kcanal-0.0.1-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aed27858544770d5829d15ae8b1a93f70f02846be39a9c8a81eef6cc2ae58c65
|
|
BLAKE2b-256 checksum How to use checksums |
b667e614cebc38c49c2496dd40b4fa22920f37416196e299b9a58e34c7dc4f1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|