ASCII / Hex / Base64 Encoder
Encode and decode between UTF-8/ASCII text, hexadecimal, binary, and Base64 with byte-by-byte inspection. Built for Number Systems & Architecture, this workbench updates the byte stream inspector and scalar readouts in real time as parameters change.
Technical Reference & Equations
- IEEE 754 Single-Precision Value:
(-1)^s \times (1.\text{fraction})_2 \times 2^{E - 127}(1 sign bit, 8 biased exponent bits (bias 127), 23 mantissa fraction bits.) - Set-Associative Cache Address Split:
\text{Offset} = \log_2(B), \quad \text{Index} = \log_2\left(\frac{C}{B \cdot W}\right), \quad \text{Tag} = A - \text{Index} - \text{Offset}(A: address bits, C: cache bytes, B: block size, W: ways of associativity.) - Amdahls Law:
S_{\text{overall}} = \frac{1}{(1 - p) + \frac{p}{s}}(p: parallelizable fraction, s: speedup of the enhanced portion.)
View full Number Systems & Architecture Formula Sheet | Constants Table
Related Number Systems & Arch Calculators
- Base & Two’s Complement Converter: Convert between Binary, Octal, Decimal, Hex, and signed 8/16-bit Two’s Complement with interactive bit toggles.
- IEEE-754 Single-Precision Float: Toggle sign, 8-bit exponent, and 23-bit mantissa bits interactively and inspect hex encoding.
- Bitwise ALU Simulator: Evaluate AND, OR, XOR, NOT, arithmetic/logical shifts, and flag bits across aligned bit registers.
- CPU Cache Address Slicer: Slice any 32-bit memory address into Tag, Set Index, and Block Offset bits.
- Amdahl’s Law Speedup Curve: Plot theoretical parallel speedup against processor core count and serial bottleneck limits.
- 5-Stage RISC Pipeline & Data Hazard Simulator: Trace IF, ID, EX, MEM, WB cycle timelines for MIPS/RISC-V instructions with EX/MEM forwarding paths, RAW data hazards, load-use stalls, and CPI.