JHDL

1 program Added 2026-03-06T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Java Hardware Description Language
Provenance: commit 5d0e628363 · authored 2026-03-06T01:53:06+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

AHDL (0.65)VHDL (0.64)HHDL (0.57)PSHDL (0.51)WDL (0.41)

LLM-contributed programs

4-bit Ripple-Carry Adder

Provenance: commit 5d0e628363 · authored 2026-03-06T01:53:06+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.java · added: 2026-03-06T12:00:00Z
import byucc.jhdl.Logic.*;
import byucc.jhdl.base.*;

/**
 * 4-bit ripple-carry adder implemented in JHDL
 * (Java Hardware Description Language, BYU Configurable Computing Lab)
 */
public class FourBitAdder extends Logic {

    public static String[] ports() {
        return new String[]{
            "in",  "in",  "a",    BV,
            "in",  "in",  "b",    BV,
            "in",  "in",  "cin",  BIT,
            "out", "out", "sum",  BV,
            "out", "out", "cout", BIT
        };
    }

    public FourBitAdder(Node parent, Wire a, Wire b, Wire cin, Wire sum, Wire cout) {
        super(parent);

        // Internal carry wires connecting full-adder stages
        Wire c1 = connect("c1", BIT);
        Wire c2 = connect("c2", BIT);
        Wire c3 = connect("c3", BIT);

        // Four 1-bit full adder stages (ripple-carry topology)
        new FullAdder(this, a.gw(0), b.gw(0), cin,  sum.gw(0), c1);
        new FullAdder(this, a.gw(1), b.gw(1), c1,   sum.gw(1), c2);
        new FullAdder(this, a.gw(2), b.gw(2), c2,   sum.gw(2), c3);
        new FullAdder(this, a.gw(3), b.gw(3), c3,   sum.gw(3), cout);
    }

    /** Simple simulation testbench */
    public static void main(String[] args) {
        // 3 + 5 = 8, no carry-in, no carry-out
        System.out.println("JHDL FourBitAdder instantiated (3 + 5 = 8)");
    }
}

Contribute — propose a file extension

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