Elixir HLS makes FPGA circuits from functions written in Elixir
Elixir HLS 0.1.0 is a new tool that compiles Elixir functions into SystemVerilog circuits for FPGAs, enabling unified software and hardware development.
summary is enough It provides a clear overview of a novel hardware-software co-design tool, making a full read unnecessary unless you plan to build with FPGAs immediately.
summary
Elixir HLS allows developers to write functions in Elixir using defhls that execute on both a CPU and as an FPGA circuit. The tool translates these functions into SystemVerilog using LLVM's CIRCT compiler infrastructure, simulating them against Elixir semantics to ensure correctness. Version 0.1.0 supports integer operations, state, tables, memories, and streams, targeting hardware like the Sipeed Tang Primer 25K. This approach aims to bridge software and hardware design by letting engineers prototype and partition systems within a single language.
key points
- defhls functions run as standard Elixir code on the CPU and compile down to SystemVerilog circuits for FPGA execution.
- The compiler simulates every generated circuit against its Elixir specification using Icarus Verilog and CIRCT to guarantee matching behavior.
- Version 0.1.0 supports integers with explicit bit-widths like u8 and s16, local state, fixed loops, and stream processing primitives.
who should read it
Embedded systems engineers and Elixir developers interested in hardware acceleration or FPGA co-design.
discussion warm
consensus
Commenters find the project fascinating and ambitious, noting parallels to other high-level hardware description languages and the appeal of doing hardware-software partitioning in a single ecosystem.
pushback
Some skeptics question the utility of mapping high-level procedural languages to low-level silicon when HDLs are explicitly designed to optimize parallel hardware structures.
I think that it is a language to care a lot. In Elixir (Erlang/BEAM under the hood) you build a system from independent processes that communicate through message passing. As long as the behaviour of a process does not change, using Elixir HLS is a way of doing embedded SW/HW partitioning in "one language".
You first build your system using Elixir, find the critical processes, and after migrate those to HW (FPGAs)using Elixir HLS.
Very interesting!
It highlights the practical workflow value of migrating critical Elixir processes to hardware FPGAs without changing languages.
Generated by an LLM from the article and thread. Check the sources before relying on it.