A custom nibble-oriented CPU designed in Verilog, specifically for decimal arithmetic, implemented to build a scientific calculator. It includes a custom ISA, FSM, CORDIC for trig functions, an assembler, and a multi-platform simulation/debugging framework.
Raw Developer Origin & Technical Request
Hacker News
May 21, 2026
The core question: how did HP's scientific calculators actually work at the gate level? That rabbit hole led to building one from scratch.The architectural decision everything else follows from: a decimal calculator should store numbers as BCD — one decimal digit per 4-bit nibble. A standard byte-oriented CPU (Z80, 6502) fights that layout constantly. So I designed a small custom CPU in Verilog where 4 bits is the natural data width and memory is nibble addressable.What the project covers:- Custom CPU: Harvard architecture, 12-bit ISA, 8-state execution
FSM, hardware stack guard with a FAULT state for microcode debugging- CORDIC for trig functions, verified to 14 significant digits- Two-pass assembler in Python (~700 lines)- Verilator + Qt framework: same Verilog source runs in simulation,
as a desktop GUI debugger, as WebAssembly, and on real hardware- Scripting language on top of the microcode for adding functions
without touching hardware- Custom PCB (EasyEDA/JLCPCB), battery, charging circuitWrite-up: baltazarstudios.comHackaday hackaday.com/2026/05/13/build-...
Developer Debate & Comments
Frequently Asked Questions
Market intelligence mapped to A custom nibble-oriented CPU designed in Verilog, specifically for decimal arithmetic, implemented to build a scientific calculator. It includes a custom ISA, FSM, CORDIC for trig functions, an assembler, and a multi-platform simulation/debugging framework..
What is the technical positioning of A custom nibble-oriented CPU designed in Verilog, specifically for decimal arithmetic, implemented to build a scientific calculator. It includes a custom ISA, FSM, CORDIC for trig functions, an assembler, and a multi-platform simulation/debugging framework.?
How is the developer community reacting to A custom nibble-oriented CPU designed in Verilog, specifically for decimal arithmetic, implemented to build a scientific calculator. It includes a custom ISA, FSM, CORDIC for trig functions, an assembler, and a multi-platform simulation/debugging framework.?
Which technical concepts are associated with A custom nibble-oriented CPU designed in Verilog, specifically for decimal arithmetic, implemented to build a scientific calculator. It includes a custom ISA, FSM, CORDIC for trig functions, an assembler, and a multi-platform simulation/debugging framework.?
Are developers creating tools for A custom nibble-oriented CPU designed in Verilog, specifically for decimal arithmetic, implemented to build a scientific calculator. It includes a custom ISA, FSM, CORDIC for trig functions, an assembler, and a multi-platform simulation/debugging framework.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like Python and WebAssembly by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics