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)
Related languages
LLM-contributed programs
LED Blinker
Provenance: commit c44c092020 · authored 2026-02-08T18:13:47+01:00 · agent claude-code · model sonnet · WebSearch enabled
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