RC RANDOM CHAOS

Elixir HLS: Software functions become FPGA circuits

· via Hacker News

Original source

Elixir HLS makes FPGA circuits from functions written in Elixir

Hacker News →

Elixir HLS is a compiler that transforms Elixir functions into FPGA circuits through high-level synthesis. This approach bypasses traditional hardware design languages like Verilog and VHDL, which require developers to manage individual registers and clock cycles. Instead, developers write ordinary Elixir functions that run on both the CPU and hardware, with the CPU version serving as the circuit’s specification—compilation fails if results diverge.

The first release (0.1.0) supports integer computations with state, memory tables, and fixed loops, targeting the Sipeed Tang Primer 25K FPGA running AtomVM. A working FM radio demodulator demonstrates circuits executing entirely on hardware. The tool compiles to SystemVerilog and validates against the reference Elixir function. Streams, GPIO pins, and devices can feed data directly into circuits without CPU involvement. Early limitations include no support for floating-point operations, division, or recursion; the developers have published documentation and reference examples to help adoption.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.