We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fce79 commit 6197713Copy full SHA for 6197713
source/SpinalHDL/Data types/AFix.rst
@@ -43,9 +43,9 @@ For example:
43
44
``AFix.U(12 bits)`` will have a range of 0 to 4095.
45
46
-``AFix.SQ(8 bits, 4 bits)`` will have a range of -4096 (-256) to 4095 (255.9375)
+``AFix.SQ(8 bits, 4 bits)`` will have a range of -256 (internaly -4096*2^-4) to 255.9375 (internaly 4095*2^-4)
47
48
-``AFix.U(8 exp, 4 exp)`` will have a range of 0 to 256
+``AFix.U(8 exp, 4 exp)`` will have a range of 0 to 240 (internaly 15*2^4)
49
50
51
Custom range ``AFix`` values can be created be directly instantiating the class.
0 commit comments