code wiki / _hdl_build / nx_nofloat_mxfp8_gate.nx
nx_nofloat_mxfp8_gate.nx
buildroot/runtime/_hdl_build/nx_nofloat_mxfp8_gate.nx
about
nx_nofloat_mxfp8_gate.nx -- gate: MXFP8 (OCP E4M3 + E5M2) dequant to Q16, EXACT known values.
T1 E4M3 normals decode to exact Q16 (1.0, 1.5, 2.0, 0.5, -1.0)
T2 E4M3 subnormal (2^-7) + NaN (E=1111,M=111) -> 0
T3 E5M2 normals decode to exact Q16 (1.0, 1.25, 0.5)
T4 E5M2 subnormal (2^-16) + inf (E=11111,M=0) -> 0
T5 E8M0 shared block scale: same element, scale 2^+1 doubles, 2^-1 halves
T6 block decode: 32-element E4M3 block all decode + bit-identical on a second pass (deterministic)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_nofloat_mxfp8.nxnx_gate_verdict.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 13 | const G8_S0: i64 = 127 // E8M0 scale exponent for 2^0 = 1 |
functions
| 15 | func main() -> i64 |