Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.5%) to scientific vocabulary
Keywords
Repository
design and verification of asynchronous circuits
Basic Info
- Host: GitHub
- Owner: broccolimicro
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Homepage: https://broccolimicro.io
- Size: 9.94 MB
Statistics
- Stars: 40
- Watchers: 5
- Forks: 0
- Open Issues: 25
- Releases: 28
Topics
Metadata Files
README.md
Loom

Loom is a compiler for Quasi-Delay Insensitive (QDI) asynchronous circuits. While the core compilation kernel is still a work in progress, it can reliably compile a wire-level specification without state-conflicts down to a cell-mapped spice netlist and automatically generated custom cell layouts that are mostly DRC and LVS clean. There is currently limited functionality to solve state-conflicts which is under active development. See the Development Status section for more details.
Table of Contents
Install
This install script downloads the appropriate binaries for your system and places them in /usr/local (or C:\Program Files (x86)\Loom on windows)
curl -sL https://raw.githubusercontent.com/broccolimicro/loom/refs/heads/main/install.sh | sudo bash
Example
Write your functional specification.
wchb1b.cog
region 1 {
L.f- and L.t-
await L.e
while {
L.f+ xor L.t+
await ~L.e
L.f- and L.t-
await L.e
}
} and {
L.e+ and R.f- and R.t-
await R.e & ~L.f & ~L.t
while {
await R.e & L.f {
R.f+
} or await R.e & L.t {
R.t+
}
L.e-
await ~R.e & ~L.f & ~L.t
R.f- and R.t-
L.e+
}
} and region 1 {
R.e+
await ~R.f & ~R.t
while {
await R.f | R.t
R.e-
await ~R.f & ~R.t
R.e+
}
}
Compile your functional specification to production rules.
$ lm build -r wchb1b.cog
$ cat wchb1b.prs
require driven, stable, noninterfering
@_12&R.t<1>|_Reset<3>&L.t<3>&R.e<3>->v3-
@_13&~R.t<1>|~_Reset<1>|~L.t<2>&~R.e<2>->v3+
@_12&R.f<1>|_Reset<3>&L.f<3>&R.e<3>->v2-
@_13&~R.f<1>|~_Reset<1>|~L.f<2>&~R.e<2>->v2+
_Reset<3>&v0<3>&L.e'1<3>->v1- {v0}
~_Reset<1>|~v0<1>|~L.e'1<1>->v1+
_Reset<3>&v1<3>&L.e'1<3>->v0- {v1}
~_Reset<1>|~v1<1>|~L.e'1<1>->v0+
R.f'1<1>|R.t'1<1>->R.e'1-
~R.t'1<2>&~R.f'1<2>->R.e'1+
v3<1>->R.t-
~v3<1>->R.t+
v2<1>->R.f-
~v2<1>->R.f+
R.f<1>|R.t<1>->L.e-
~R.t<2>&~R.f<2>->L.e+
v1<1>->L.t'1-
~v1<1>->L.t'1+
v0<1>->L.f'1-
~v0<1>->L.f'1+
Vdd<0.1>->_12- [weak]
~GND<0.1>->_13+ [weak]
Or do layout.
$ lm build wchb1b.cog
$ klayout wchb1b.gds
Loom also supports a process calculus called Hand-Shaking Expansions (HSE)
wchb1b.hse ``` R.f-,R.t-,L.e+; [R.e&~L.f&~L.t]; *[[ R.e & L.f -> R.f+ [] R.e & L.t -> R.t+ ]; L.e-; [~R.e&~L.f&~L.t]; R.f-,R.t-; L.e+ ]||
(L.f-,L.t-; [L.e]; *[[1->L.f+:1->L.t+]; [~L.e]; L.f-,L.t-; [L.e]]|| R.e+; [~R.f&~R.t]; *[[R.f|R.t]; R.e-; [~R.f&~R.t]; R.e+])'1 ```
Build and Install
Linux
Install dependencies
sudo apt install ninja-build libqhull-dev libgraphviz-dev opencl-headers ocl-icd-opencl-dev mesa-opencl-icd
Clone the repository
git clone https://github.com/broccolimicro/loom.git
cd loom
git submodule update --init --recursive
Build
make linux
Install
sudo dpkg -i lm-linux.deb
Windows
Install dependencies
pacman -Syu --noconfirm
pacman -S --needed --noconfirm base-devel
pacman -S --needed --noconfirm msys2-runtime-devel
pacman -S --needed --noconfirm mingw-w64-x86_64-toolchain
pacman -S --needed --noconfirm mingw-w64-x86_64-dlfcn
pacman -S --needed --noconfirm mingw-w64-x86_64-cmake
pacman -S --needed --noconfirm mingw-w64-x86_64-ninja
pacman -S --needed --noconfirm mingw-w64-x86_64-qhull
pacman -S --needed --noconfirm mingw-w64-x86_64-zlib
pacman -S --needed --noconfirm mingw-w64-x86_64-graphviz
pacman -S --needed --noconfirm mingw-w64-x86_64-opencl-headers
pacman -S --needed --noconfirm mingw-w64-x86_64-opencl-clhpp
pacman -S --needed --noconfirm mingw-w64-x86_64-opencl-icd
pacman -S --needed --noconfirm zip
pacman -S --needed --noconfirm curl
Clone the repository
git clone https://github.com/broccolimicro/loom.git
cd loom
git submodule update --init --recursive
Build
make windows
Install
unzip lm-windows.zip -d "C:\\Program Files (x86)"
export PATH="C:\\Program Files (x86)\\Loom\\bin:$PATH"
Mac OS
Install dependencies
brew install cmake ninja qhull graphviz curl opencl-headers opencl-clhpp-headers ocl-icd
Clone the repository
git clone https://github.com/broccolimicro/loom.git
cd loom
git submodule update --init --recursive
Build
make macos
Install
tar -xzvf lm-macos.tar.gz
cp lm-macos/bin/lm /usr/local/bin
cp lm-macos/share/tech /usr/local/share
chmod +x /usr/local/bin/lm
chown -R root:staff /usr/local/share/tech
chmod -R ug+rw /usr/local/share/tech
Run Tests
To generate test binaries and then run the tests
make test
make check
Development Status (July 17, 2025)
Synthesis
- Templating (0%) parameterize your module specifications.
- Modules (60%) be able to break up your circuit into modules and construct larger systems.
- Process Decomposition (0%) Break large processes up into pipeline stages.
- Handshake Expansion (20%) Expand channel actions into handshake protocols and multi-bit operations into transitions on wires.
- Handshake Reshuffling (0%) Reorder transitions to simplify the state space, simplify implementation, and improve performance.
- State Elaboration (90%) Explore every state and record the state space.
- State Variable Insertion (80%) Deconflict states by inserting transitions. This results in a complete state encoding.
- The current implementation is not yet able to solve every possible encoding problem. There are some transition insertion locations it can't see yet. It's also fairly slow on larger circuits since the current implementation requires a full re-elaboration of the state space between each new state variable insertion. There are fixes for both of these problems planned.
- Guard Weakening (100%) Generate production rules that implement that state space.
- Bubble Reshuffling (90%) Move inverters off of isochronic forks to protect the isochronic fork assumption. This algorithm is no longer needed as this process is taken care of by state variable insertion now. However, this is left in to help with manual compilation.
- This doesn't always correctly identify isochronic forks in the production rule set. This is because a literal can show up in a guard, but that doesn't mean the guard acknowledges any transitions on that literal.
- Device Level Sizing (100%) Size the transistors in a production rule set.
- Gate Level Sizing (0%) Size the gates using logical effort.
- Netlist Synthesis (100%) Generate a spice netlist from a production rule set.
- Cell Generation (100%) Break large subcircuits into cells for cell-layout.
- Cell Layout (96%) Generate the layouts for those cells.
- Placement (20%) Place the cells to start the layout of larger subcircuits.
- Routing (0%) Route paths finish the layout of larger subcircuits.
Simulation
- CHP Simulator (50%) Simulate channel actions and multi-bit operations in a control flow language.
- Still has false positive instability errors. Need to implement quantifier elimination with cylindrical algebraic decomposition to be able to test whether expressions are tautilogically true/false to correctly handle guards.
- HSE Simulator (100%) Simulate transitions on wires in a control flow language.
- PR Simulator (90%) Digital simulation of the gates and wires as represented by production rules.
- There's a bug associated with timing assumptions in this simulator.
- Spice Simulator Tie-in (0%) Tie a spice simulator to the binary so that you can simulate at any level.
- Co-simulation of all levels (0%) Cosimulate the behavioral spec against the wire-level spec, the digital circuit behavior, and the analog circuit behavior.
Visualization
- CHP and HSE (100%) Render the petri-nets representing CHP or HSE processes.
- State Space (0%) Render the state space of HSE or PRS.
- Transistor Networks (0%) Render transistor diagrams of the production rule set.
- Waveforms (100%) Export to VCD for viewing in GTKWave.
- Event Rule (0%) Debug your system using an event rule representation instead of waveforms.
Owner
- Name: broccolimicro
- Login: broccolimicro
- Kind: organization
- Repositories: 1
- Profile: https://github.com/broccolimicro
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Bingham" given-names: "Ned" orcid: "https://orcid.org/0000-0001-9701-9143" - family-names: "Kramer" given-names: "Nicholas" - family-names: "Manohar" given-names: "Rajit" orcid: "https://orcid.org/0000-0001-8211-6602" title: "Loom: Compiler for Asynchronous Circuits" doi: 10.5281/zenodo.13992088 date-released: 2024-10-25 url: "https://github.com/broccolimicro/loom"
GitHub Events
Total
- Create event: 16
- Release event: 15
- Issues event: 28
- Watch event: 23
- Issue comment event: 6
- Member event: 1
- Push event: 150
- Pull request event: 31
Last Year
- Create event: 16
- Release event: 15
- Issues event: 28
- Watch event: 23
- Issue comment event: 6
- Member event: 1
- Push event: 150
- Pull request event: 31
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: 14 days
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.17
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: 14 days
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.17
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- nbingham1 (21)
- mi-and-core (1)
Pull Request Authors
- nbingham1 (16)