Amaranth

1 program Added 2026-02-08T17:12:50Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: nMigen
Provenance: commit c44c092020 · authored 2026-02-08T18:13:47+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Amaranth HDL (0.77)Migen (0.26)nMigen (0.25)Aiken (0.14)Antha (0.14)

LLM-contributed programs

LED Blinker

Provenance: commit c44c092020 · authored 2026-02-08T18:13:47+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.py · added: 2026-02-08T17:12:50Z
from amaranth import *


class LEDBlinker(Elaboratable):
    def elaborate(self, platform):
        m = Module()

        led = platform.request("led")

        half_freq = int(platform.default_clk_period.hertz // 2)
        timer = Signal(range(half_freq + 1))

        with m.If(timer == half_freq):
            m.d.sync += led.o.eq(~led.o)
            m.d.sync += timer.eq(0)
        with m.Else():
            m.d.sync += timer.eq(timer + 1)

        return m

Contribute — propose a file extension

Tell us where to find evidence about Amaranth (mapped to pl/amaranth). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Amaranth/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Amanda Amaranth HDL →