HHDL

1 program Added 2026-03-05T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: Haskell Hardware Design Language, Haskell Hardware Description Language
Provenance: commit 941974f462 · authored 2026-03-05T12:45:05+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)
LLM (this repo) · 1

Related languages

JHDL (0.57)VHDL (0.57)AHDL (0.55)PSHDL (0.49)WDL (0.37)

LLM-contributed programs

Running Sum (Accumulator)

Provenance: commit 941974f462 · authored 2026-03-05T12:45:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.hs · added: 2026-03-05T12:00:00Z
{-# LANGUAGE TypeFamilies, TypeOperators, FlexibleContexts, DoRec #-}
{-# LANGUAGE DeriveDataTypeable, NoImplicitPrelude, TemplateHaskell #-}
{-# LANGUAGE UndecidableInstances #-}

module Hardware.HHDL.Examples.RunningSum where

import Data.Word

import Hardware.HHDL

import Hardware.HHDL.Examples.Clock
import Hardware.HHDL.Examples.SimpleSum

-------------------------------------------------------------------------------
-- Running polymorphic sum, ie, accumulator.
-- Demonstrates registers.

runningSumRec :: (Show a, ClockAllowed c clks, BitRepr a, Arith a) => Clocked clks (Wire c a :. Nil) (Wire c a :. Nil)
runningSumRec = mkClocked "runningSum" $ \(a :. Nil) -> do
	rec
		sum <- register (fromIntegerLit 0) nextSum
		(nextSum :. Nil) <- instantiate simpleSum (a :. sum :. Nil)
	return $ sum :. Nil

runningSumRecVHDLText = writeHDLText VHDL (runningSumRec :: Clocked (Clk :. Nil) (Wire Clk Word8 :. Nil) (Wire Clk Word8 :. Nil))
	(\s -> putStrLn s >> writeFile "runningSum.vhdl" s)

test = runningSumRecVHDLText

Contribute — propose a file extension

Tell us where to find evidence about HHDL (mapped to pl/hhdl). 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/HHDL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← HGFTSNOA hhvm →