From cb3d938753a6c22640bdb0befefd236300be9937 Mon Sep 17 00:00:00 2001 From: Sebastian Holzapfel Date: Sat, 23 Nov 2024 18:42:36 +0100 Subject: [PATCH] Rationale: add note on Q notation selected --- text/0041-fixed-point.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/0041-fixed-point.md b/text/0041-fixed-point.md index f5d1689..14afe85 100644 --- a/text/0041-fixed-point.md +++ b/text/0041-fixed-point.md @@ -110,8 +110,8 @@ TBD - There's two slightly different [Q notation](https://en.wikipedia.org/wiki/Q_(number_format)) definitions, namely whether the bit counts includes the sign bit or not. - Not having the sign bit included seems more common, and has the advantage that a number has the same fractional precision whether `i_bits` is 0 or not. - - Having the sign bit included is the dominant notation in the audio ASIC world (citation needed, comment from samimia-swks@). As of now, this RFC uses this notation as it is also a little simpler to reason about the size of underlying storage on constructing an `SQ`. - While Q notation names the signed type `Q`, it's more consistent for Amaranth to use `SQ` since other Amaranth types defaults to unsigned. + - vk2seb@: Having the sign bit included is the dominant notation in the audio ASIC world (citation needed, comment from samimia-swks@). As of now, this RFC uses this notation as it is also a little simpler to reason about the size of underlying storage on constructing an `SQ`. ## Prior art [prior-art]: #prior-art