Amaranth HDL
1 program
Added 2026-02-27T12:11:32Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: amaranth, nMigen
Provenance: commit c089567fa1 · authored 2026-02-27T13:11:57+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
16-bit Counter
Provenance: commit c089567fa1 · authored 2026-02-27T13:11:57+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
from amaranth import *
from amaranth.lib import wiring
from amaranth.lib.wiring import In, Out
from amaranth.cli import main
class Counter(wiring.Component):
o: Out(1)
def __init__(self, width):
super().__init__()
self.v = Signal(width, init=2**width-1)
def elaborate(self, platform):
m = Module()
m.d.sync += self.v.eq(self.v + 1)
m.d.comb += self.o.eq(self.v[-1])
return m
ctr = Counter(width=16)
if __name__ == "__main__":
main(ctr)