{
  "manifest": {
    "spekkr": 1,
    "id": "onyx/nibble-calculator",
    "name": "Nibble calculator",
    "summary": "A nibble-wide CPU and a scientific calculator in Verilog, checked with a testbench of documented operations, no FPGA required.",
    "keywords": [
      "cpu",
      "verilog",
      "calculator",
      "testbench",
      "nibble"
    ],
    "kind": "HDL",
    "version": "0.2.1",
    "author": {
      "id": "onyx",
      "name": "Onyx"
    },
    "targets": {
      "stack": [
        "Verilog",
        "Icarus",
        "Verilator"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "digits",
          "label": "Decimal digits",
          "default": "8",
          "help": "From 6 to 12, the calculator's significand."
        },
        {
          "key": "stack",
          "label": "Stack depth",
          "default": "4",
          "help": "From 2 to 8, a stack calculator."
        }
      ],
      "options": [
        {
          "key": "trig",
          "label": "Trigonometry",
          "default": true,
          "help": "Sine, cosine, and a documented angle unit."
        },
        {
          "key": "log",
          "label": "Log and exp",
          "default": true,
          "help": "A natural log and an exp, as in the file."
        }
      ],
      "swaps": [
        {
          "key": "sim",
          "label": "Simulator",
          "choices": [
            "icarus",
            "verilator"
          ],
          "default": "verilator",
          "help": "Either must pass the same testbench vectors."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance checks."
      },
      {
        "path": "design.md",
        "about": "The operation vectors, rounding, error flags, and display dumps."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      },
      {
        "path": "reference/preview.py",
        "about": "A reference rendering of the display register for two fixture calculations."
      },
      {
        "path": "reference/preview.html",
        "about": "A working reference preview of the default view, used to make the listing pictures. A build does not have to start from this file."
      },
      {
        "path": "reference/fonts/fonts.css",
        "about": "Webfont faces for the reference preview."
      },
      {
        "path": "reference/fonts/Geist.ttf",
        "about": "Geist variable typeface for the reference preview."
      },
      {
        "path": "reference/fonts/GeistMono.ttf",
        "about": "Geist Mono variable typeface for the reference preview."
      },
      {
        "path": "reference/fonts/Fraunces.ttf",
        "about": "Fraunces variable typeface for the reference preview."
      },
      {
        "path": "reference/fonts/Fraunces-Italic.ttf",
        "about": "Fraunces italic variable typeface for the reference preview."
      }
    ],
    "needs": {
      "permissions": [
        "shell"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/hero.png",
        "shots/loop.webp"
      ]
    },
    "safety": {
      "commands": [
        "install a Verilog simulator, such as Icarus or Verilator"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.2.1",
        "date": "2026-11-14",
        "note": "Add animated loop to the listing shots."
      },
      {
        "version": "0.2.0",
        "date": "2026-11-14",
        "note": "Polished reference preview and new listing shots, including a short loop."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "First version."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "reference/fonts/Fraunces-Italic.ttf": "files/reference/fonts/Fraunces-Italic.ttf",
      "reference/fonts/Fraunces.ttf": "files/reference/fonts/Fraunces.ttf",
      "reference/fonts/Geist.ttf": "files/reference/fonts/Geist.ttf",
      "reference/fonts/GeistMono.ttf": "files/reference/fonts/GeistMono.ttf",
      "reference/fonts/fonts.css": "files/reference/fonts/fonts.css",
      "reference/preview.html": "files/reference/preview.html",
      "reference/preview.py": "files/reference/preview.py",
      "shots/hero.png": "files/shots/hero.png",
      "shots/loop.webp": "files/shots/loop.webp",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "onyx",
  "uploaded": {
    "reference/fonts/Fraunces-Italic.ttf": {
      "bytes": 407304,
      "type": "font/ttf"
    },
    "reference/fonts/Fraunces.ttf": {
      "bytes": 357632,
      "type": "font/ttf"
    },
    "reference/fonts/Geist.ttf": {
      "bytes": 168804,
      "type": "font/ttf"
    },
    "reference/fonts/GeistMono.ttf": {
      "bytes": 173204,
      "type": "font/ttf"
    },
    "shots/hero.png": {
      "bytes": 156716,
      "type": "image/png"
    },
    "shots/loop.webp": {
      "bytes": 2247288,
      "type": "image/webp"
    }
  }
}
