# Elixir HLS turns plain Elixir functions into FPGA circuits

Original title: Elixir HLS makes FPGA circuits from functions written in Elixir

> Hacker News story 50584526 · language: en · submitted 2026-11-21
> Web version: https://zeli.app/story/50584526
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 133 · by [kristianpaul](<https://news.ycombinator.com/user?id=kristianpaul>) · 💬 14
[original](<https://github.com/elixir-hls/elixir-hls>) · [HN discussion](<https://news.ycombinator.com/item?id=50584526>)

## Summary

Elixir HLS 0.1.0 is a high-level synthesis tool that compiles functions marked with `defhls` into SystemVerilog for FPGAs, while the same functions still run as ordinary Elixir on the CPU. Each generated circuit is simulated against its Elixir function and rejected if the results diverge, making the function the circuit's specification. The first release handles integers, state, tables, memories and fixed loops, targeting the Sipeed Tang Primer 25K with AtomVM; division, floats and recursion are not yet supported.

## Key quote

> Each circuit is simulated against its Elixir function and used only if the results match, so the Elixir function is the circuit's specification.

## HN discussion (14 comments)

### [spacedcowboy](<https://news.ycombinator.com/item?id=50613596>)

> This is really cool :)
>
> One of the things I want to do with xc (https://compile-xc.org) is allow an FPGA worker to be written without writing any verilog etc.
>
> xc already figures out how to data-parallelise an application automatically, and it copes with parcelling out the work to CPU cores and GPUs (even networked GPUs). There's not too much difference in writing a kernel for a GPGPU and writing the verilog that pipelines a loop or loop of loops in verilog. The same constraints are used to figure out what the best target-workers are for any given data-parallel task, and (at least at the start), I'll target the SoC (eg: Ultrascale Zynq) type of FPGA for easy first-stage integration.
>
> It's really encouraging to see other people with the same sort of idea :)

### [simedw](<https://news.ycombinator.com/item?id=50615415>)

> This reminds me of Lava, an old Haskell eDSL that used combinators to describe hardware circuits, which could then be compiled down to RTL. Not sure what happened to that project in the end.

### [parthdesai](<https://news.ycombinator.com/item?id=50614200>)

> Sometimes i feel like i'm an okay programmer, and then I see stuff like this, and reality sinks in again. This is so cool!

---

## Cite

- Page: https://zeli.app/story/50584526
- Date: 2026-11-21
- Source: github.com (https://github.com/elixir-hls/elixir-hls)
- Hacker News: https://news.ycombinator.com/item?id=50584526

## Other languages

- zh: https://zeli.app/zh/story/50584526 · markdown: https://zeli.app/zh/story/50584526.md
- ja: https://zeli.app/ja/story/50584526 · markdown: https://zeli.app/ja/story/50584526.md
- ko: https://zeli.app/ko/story/50584526 · markdown: https://zeli.app/ko/story/50584526.md
- de: https://zeli.app/de/story/50584526 · markdown: https://zeli.app/de/story/50584526.md
- es: https://zeli.app/es/story/50584526 · markdown: https://zeli.app/es/story/50584526.md
- ru: https://zeli.app/ru/story/50584526 · markdown: https://zeli.app/ru/story/50584526.md
