Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6197713

Browse files
authoredMar 26, 2025··
Update AFix.rst
1 parent 61fce79 commit 6197713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎source/SpinalHDL/Data types/AFix.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ For example:
4343

4444
``AFix.U(12 bits)`` will have a range of 0 to 4095.
4545

46-
``AFix.SQ(8 bits, 4 bits)`` will have a range of -4096 (-256) to 4095 (255.9375)
46+
``AFix.SQ(8 bits, 4 bits)`` will have a range of -256 (internaly -4096*2^-4) to 255.9375 (internaly 4095*2^-4)
4747

48-
``AFix.U(8 exp, 4 exp)`` will have a range of 0 to 256
48+
``AFix.U(8 exp, 4 exp)`` will have a range of 0 to 240 (internaly 15*2^4)
4949

5050

5151
Custom range ``AFix`` values can be created be directly instantiating the class.

0 commit comments

Comments
 (0)
Please sign in to comment.