Synapse

Synapse

Decoupling Protocol, Topology, and Policy for Automated Synthesis of Coherence Controllers

ProtocolMESI
TopologyL1 + L2 + LLC
Policyinclusive, write-back
Synapse
Simulated controllersSLICC for gem5
Available
Hardware controllersvia Chipyard
WIP
Write the three specs once. Synapse composes them into verified controllers; a different design means changing one spec, not rewriting a controller.

Why

Every new architecture needs new coherence controllers: a second socket, an accelerator, a CXL memory pool. Today each one is written by hand, as a state machine full of transient states, then debugged and verified on its own. The protocol, the position in the hierarchy and the cache policy are tangled in the same code, so changing one means starting over.

Synapse keeps the three apart. You write them once, and recombine them for every new design.

How it works

Every coherence controller, whatever its protocol and wherever it sits, reduces to three state machines. The protocol spec provides the client and the manager, the policy spec provides the policy, and the topology spec only says where each controller sits: who is its parent, who are its children.

Client

Asks its parent for data and permissions, like a cache.

Manager

Tracks what its children hold, like a directory.

Policy

Decides when to allocate, update or replace a block.

The three machines speak different languages, and at a bridge the child may speak MESI while the parent speaks CXL. Synapse labels every state and request, in any protocol, with one tuple, ⟨Permission, Data, Coherence⟩, then fuses the transitions whose labels match. The result is one concrete controller, transient states included.

The compiler

  1. Specs

    Written in the Synapse DSL.

    protocoltopologypolicy
  2. Synthesis

    Builds every controller in the topology, then checks deadlock freedom with Murφ and memory consistency with litmus tests.

  3. Code generation

    Emits SLICC controllers and the gem5 simulation setup.

  4. gem5

    Run and measure the design like any hand-written protocol.

Try it

Generate controllers for your own hierarchy with the Synapse generator, or reproduce every experiment in the paper with the artifact.

Generate controllers

git clone https://github.com/NicCarp11/Synapse
cd Synapse
pip install -r requirements.txt
python synapse.py generate specs/topologies/smp.yaml --out out/smp

Python 3.10 or newer. generate writes the SLICC controllers and the gem5 setup of the system; verify model-checks them with CMurphi.

Reproduce the paper

Start with the prebuilt Docker image; the functional test finishes in under a minute.

git clone https://github.com/TUM-DSE/Synapse
cd Synapse
docker pull carpeniem/synapse-artifact-s1_2_3:prebuilt
just shell-s1_2_3-prebuilt

# inside the container
./S1_2_3_experiments/scripts/run-functional.sh

Any x86-64 machine with Docker. Plan for about 12 GB of RAM per concurrent simulation. just is optional: every shortcut maps to a script in the repository.

ACM badge: Artifacts Available v1.1 ACM badge: Artifacts Evaluated, Functional v1.1 ACM badge: Results Reproduced v1.1

Four scenarios from the paper

SMP

Synthesized controllers against gem5's hand-written ones.

Protocols
MESIMOESI
Policy
WB-INCL

NUMA

Which protocol to use across four sockets.

Protocols
MESIMOESIMESIF
Policy
WB-INCLWB-EXCL

Multi-host CXL

Which protocol the bridge between hosts should speak, on YCSB-C.

Protocols
MESIMOESIMESIFCXL
Policy
WB-INCL

Heterogeneous chiplets

Write-back against write-through accelerator chiplets.

Protocols
MESICXL
Policy
WB-INCLWT-INCL

Build on Synapse

Synapse is meant to grow with the people who use it. Every protocol, topology, policy or back end added once composes with everything already there.

Use it

Generate controllers for your own hierarchy, or reproduce the paper with the artifact.

Extend it

Add a protocol, a topology, a policy or a new back end. Hardware controllers through Chipyard are work in progress.

Cite Synapse

Nicolò Carpentieri, Anatole Lefort, David Schall, Julian Pritzi, Pramod Bhatotia. Decoupling Protocol, Topology, and Policy for Automated Synthesis of Coherence Controllers. MICRO 2026, Athens, Greece.

@inproceedings{carpentieri2026synapse,
  title     = {Decoupling Protocol, Topology, and Policy for
               Automated Synthesis of Coherence Controllers},
  author    = {Carpentieri, Nicolo and Lefort, Anatole and Schall, David
               and Pritzi, Julian and Bhatotia, Pramod},
  booktitle = {Proceedings of the 59th IEEE/ACM International
               Symposium on Microarchitecture (MICRO)},
  year      = {2026},
  address   = {Athens, Greece}
}

Synapse builds on prior work by Nicolai Oswald et al. and Anatole Lefort et al.: please cite it too (see Acknowledgments).

Acknowledgments

Synapse builds on ProtoGen, HieraGen and HeteroGen (Nicolai Oswald et al., The University of Edinburgh) and on vCXLGen (Anatole Lefort et al., Technical University of Munich). The Synapse repository is directly derived from their code. The original SLICC back end work was performed by Nicolai Oswald and Theo Olausson at The University of Edinburgh and was used in the HeteroGen publication; it is available on the slicc branch of HeteroGen.

If you use Synapse, please also cite these works: the BibTeX of each is in the repository README.