<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf" -->

---
title: Elixir HLS makes FPGA circuits from functions written in...
description: Elixir HLS compiles Elixir functions into FPGA circuits using high-level synthesis. A function defined with defhls runs normally on the CPU and also becomes a...
canonical: https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Elixir HLS makes FPGA circuits from functions written in Elixir | daily.dev
og:description: Elixir HLS compiles Elixir functions into FPGA circuits using high-level synthesis. A function defined with defhls runs normally on the CPU and also becomes a...
og:url: https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf
og:image: https://api.daily.dev/og/posts/Tpy9OCZPf.png
og:image:alt: Elixir HLS makes FPGA circuits from functions written in Elixir
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Elixir HLS makes FPGA circuits from functions written in Elixir

**[Hacker News](https://daily.dev/sources/hn)** · 9 min read · 1 upvotes · 0 comments

## Summary

Elixir HLS compiles Elixir functions into FPGA circuits using high-level synthesis. A function defined with defhls runs normally on the CPU and also becomes a circuit, which is simulated against the Elixir function and only used if results match. Version 0.1.0 is an early release supporting integer functions with state, tables, memories and fixed loops, targeting the Sipeed Tang Primer 25K board with AtomVM, with an FM radio demodulator as its working example. Division, floats, and recursion aren't supported yet. It requires Elixir 1.18+, CIRCT 1.160.0, and Icarus Verilog for simulation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/elixir-hls/elixir-hls>

## Questions this post answers

### What is Elixir HLS and what does it let you do with Elixir code on an FPGA?

Elixir HLS is a high-level synthesis tool that turns Elixir functions defined with defhls into FPGA circuits (SystemVerilog) while the same function still runs normally on the CPU. Each generated circuit is simulated against its Elixir function and only used if the results match, making the Elixir code the circuit's specification. Version 0.1.0 supports integer functions with state, tables, memories, and fixed loops.

_Developers exploring hardware synthesis from high-level languages can track early FPGA tooling like this on daily.dev._

### What FPGA board does Elixir HLS 0.1.0 target and what's the example application?

Elixir HLS 0.1.0 targets the Sipeed Tang Primer 25K board running AtomVM. Its working example is an FM radio (atomvm-fm-radio) whose entire demodulator runs inside the FPGA, demonstrating streaming kernels placed via definstance running independently of the CPU.

_Anyone evaluating embedded Elixir and FPGA boards can follow projects like this via daily.dev._

### What Elixir language features are not yet supported by Elixir HLS for circuit synthesis?

Elixir HLS does not yet support division, floating-point numbers, recursion, anonymous functions, exceptions, messages, I/O (raise, receive, IO.puts), or Elixir stream operations that require the whole collection such as Enum.sort or Enum.take. It compiles integers with state, tables, memories, fixed-range loops, and a subset of Stream functions.

_Developers weighing whether Elixir HLS fits a hardware project can check its current limits on daily.dev._

## Similar posts on daily.dev

- [Hologram v0.8.0: Elixir Gets JavaScript Interop](https://daily.dev/posts/hologram-v0-8-0-elixir-gets-javascript-interop-scjyoheic) · ElixirStatus · 12 upvotes · 0 comments
- [Hologram Works. Sponsor What Comes Next.](https://daily.dev/posts/hologram-works-sponsor-what-comes-next--xavht3p32) · Hacker News · 0 upvotes · 0 comments
- [Elixir v1.20.0-rc.0 released](https://daily.dev/posts/elixir-v1-20-0-rc-0-released-dwawfn6o5) · Elixir Forum · 0 upvotes · 0 comments
- [A Live Chiptune Synthesizer in Erlang](https://daily.dev/posts/a-live-chiptune-synthesizer-in-erlang-ymojxunnn) · Erlang Solutions · 0 upvotes · 0 comments
- [Gleam doesn't compile to Erlang source anymore](https://daily.dev/posts/gleam-doesn-t-compile-to-erlang-source-anymore-ljfylvksh) · Gleam · 3 upvotes · 0 comments

---

Tags: [#elixir](https://daily.dev/tags/elixir), [#fpga](https://daily.dev/tags/fpga)

[View this post on daily.dev](https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Elixir HLS makes FPGA circuits from functions written in Elixir","url":"https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf"},"datePublished":"2026-11-23T14:35:48.516Z","dateModified":"2026-11-23T14:36:30.692Z","description":"Elixir HLS compiles Elixir functions into FPGA circuits using high-level synthesis. A function defined with defhls runs normally on the CPU and also becomes a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/92662f15335d456338ad943b25434434?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/92662f15335d456338ad943b25434434?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"elixir,fpga","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Elixir HLS makes FPGA circuits from functions written in Elixir"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/elixir-hls-makes-fpga-circuits-from-functions-written-in-elixir-tpy9oczpf#faq","mainEntity":[{"@type":"Question","name":"What is Elixir HLS and what does it let you do with Elixir code on an FPGA?","acceptedAnswer":{"@type":"Answer","text":"Elixir HLS is a high-level synthesis tool that turns Elixir functions defined with defhls into FPGA circuits (SystemVerilog) while the same function still runs normally on the CPU. Each generated circuit is simulated against its Elixir function and only used if the results match, making the Elixir code the circuit's specification. Version 0.1.0 supports integer functions with state, tables, memories, and fixed loops. Developers exploring hardware synthesis from high-level languages can track early FPGA tooling like this on daily.dev."}},{"@type":"Question","name":"What FPGA board does Elixir HLS 0.1.0 target and what's the example application?","acceptedAnswer":{"@type":"Answer","text":"Elixir HLS 0.1.0 targets the Sipeed Tang Primer 25K board running AtomVM. Its working example is an FM radio (atomvm-fm-radio) whose entire demodulator runs inside the FPGA, demonstrating streaming kernels placed via definstance running independently of the CPU. Anyone evaluating embedded Elixir and FPGA boards can follow projects like this via daily.dev."}},{"@type":"Question","name":"What Elixir language features are not yet supported by Elixir HLS for circuit synthesis?","acceptedAnswer":{"@type":"Answer","text":"Elixir HLS does not yet support division, floating-point numbers, recursion, anonymous functions, exceptions, messages, I/O (raise, receive, IO.puts), or Elixir stream operations that require the whole collection such as Enum.sort or Enum.take. It compiles integers with state, tables, memories, fixed-range loops, and a subset of Stream functions. Developers weighing whether Elixir HLS fits a hardware project can check its current limits on daily.dev."}}]}
```

