POPL 2027
Sun 10 - Sat 16 January 2027 Mexico City, Mexico

This tutorial introduces Anvil, a hardware description language for writing safe and efficient hardware designs. It also introduces PACT, an extension to Anvil that will appear at POPL 2027. Anvil uses lifetimes and borrowing to express timing requirements. PACT uses session types to describe component communication and check communication safety. We will introduce their programming models and type systems, and explain how their guarantees apply when components are composed.

The three-hour tutorial begins with hardware concepts and Anvil’s programming model. Participants write a simple arithmetic processor with a small buffer cache. They also use Anvil and PACT to implement designs such as hardware routers. We will demonstrate the Anvil language server and playground, and discuss ongoing work on Anvil. No hardware design experience is required; we will introduce the necessary concepts. The tutorial is intended for programming language enthusiasts as well as hardware designers interested in writing safe hardware designs.