Skip to content

Noir01/advent-of-fpga-2025

Repository files navigation

Advent of FPGA 2025

My solutions for Advent of FPGA 2025, written in OCaml using Hardcaml.

Building

This project uses the oxcaml compiler and Jane Street's opam repository.

Prerequisites

  • opam 2.x
  • System dependencies: libgmp-dev, libffi-dev, pkg-config, zlib1g-dev

On Ubuntu/Debian:

sudo apt-get install libgmp-dev libffi-dev pkg-config zlib1g-dev

Setup

  1. Add the oxcaml opam repository:
opam repo add ox https://github.com/oxcaml/opam-repository.git
  1. Create a switch with the oxcaml compiler:
opam switch create . ocaml-variants.5.2.0+ox
  1. Install dependencies:
opam install . --deps-only

Build

dune build

Run tests

dune runtest

Run on manual inputs

First, populate inputs/. Make sure the file names are in the format day{DD}.txt. Then run dune exec bin/run_day{DD}.exe. Replace DD with your day.

About

My attempt at solving Advent of Code on a FPGA!

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages