Mintwright
Bitwright
Bit-width, Q-format and IEEE 754 engineering calculator. Exact arithmetic.
Bitwright is a calculator for RTL, FPGA and DSP engineers, and for programmers who work at the bit level: the widths, formats and conversions that otherwise take three browser tabs, in one app, computed exactly.
- Two's-complement integers at any width from 1 to 512 bits, with the signed and unsigned readings shown together.
- Integer and fixed-point results are exact at any size. A result with no exact form is computed to 50 significant digits and marked ≈.
Features
NAME = hex lines pasted at once give one row each.
What it does
Widths and formats
- Two's-complement integers at any width from 1 to 512 bits, with the signed and unsigned readings shown together.
- Q-format fixed point in every spelling (
s16q15,sq0.15,q15), with the LSB, the range and the quantization error of each result. - IEEE 754 encode and decode: binary16, bfloat16, tf32, binary32, binary64, binary128, E4M3, E5M2 and any custom
e<E>m<M>shape. - Ten rounding modes and four overflow modes, each named the way your toolchain names it.
- Decimal, hexadecimal, binary and octal at once, and a bit grid up to 512 bits.
Exact arithmetic
No floating-point rounding hides in the arithmetic. Integer and fixed-point results are exact at any size. Results that have no exact form are computed to 50 significant digits and marked ≈.
HDL notation
Verilog operators and idioms as typed in code: part-select x[15:8], concatenation {a, b}, replication {4{a}}, sized literals such as 24'shFF8000, VHDL bit strings such as x"FF"; sext, zext, narrow and bits(x, T); rotates, popcount, clz, ctz, bitrev, bswap.
Functions
Gray, one-hot, alignment, LFSR taps for widths 2 to 32, CRC with nine presets or your own polynomial; clock period, frequency, ppm and a PLL M/N/D solver.
The web edition
The web edition is Bitwright as a web app. It runs in the browser at bitwright.mintwright.app on an iPhone (iOS 17 or later), on Android and on a desk. It installs to the home screen and works offline after the first visit.
Buy
US $9.99, one-time, plus tax where it applies.
- Pay at the checkout.
- Copy the whole licence key from the receipt. Keep that e-mail: it is your record of the key. If it is lost, write to [email protected] from the address you bought with.
- Open the calculator and enter the licence key once. The key is checked on your device and never sent anywhere.
- To use it again, open the calculator the same way, or from its icon once installed. The app remembers the key on that device and opens straight in, online or offline.
Install
- iPhone: tap Share, then Add to Home Screen. If the sheet offers Open as Web App, leave it on. Open the app from the Home Screen and enter the licence key there.
- Android, Chrome: the ⋮ menu, then Add to Home screen or Install (some versions say Install and create shortcut), then Install. The icon opens the app full screen.
- Desk, Chrome or Edge: the Install icon at the right end of the address bar, or the browser's menu, Install. The app then has its own window, a Start menu entry and a desktop shortcut.