Skip to content

Q8.8 Format

Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Q8.8 Format

Unsigned fixed-point used for exported parameters (export path).

raw_u16 = clamp(value × 256, 0, 65535) as u16
value   = raw_u16 / 256.0
Representation Approx range
Unsigned export encode [0, 255.996] (clamped)
Signed UART stimuli (bridge) [-127.99, 127.99] as i16 BE on the wire

Helpers:

format_q88_hex(0.5);  // "0080"
q88_to_f32(256);      // 1.0

FixedPointEncode::encode_q88 / FpgaParameterExporter::to_q88 implement the unsigned path.

Aligns with silicon-hdl WeightRam / NeuronParamRam Q8.8 memories.


Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: de069cd (main)

Clone this wiki locally