Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasWallner committed Aug 24, 2023
1 parent 8d25a69 commit c5e1d50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 3 additions & 7 deletions source/SpinalHDL/Data types/Int.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
UInt/SInt
=========

Description
-----------

The ``UInt``/``SInt`` types are a vectors of bits interpreted as two's complement unsigned/signed integers.
The ``UInt``/``SInt`` types are vectors of bits interpreted as two's complement unsigned/signed integers.
They can do what ``Bits`` can do, with the addition of unsigned/signed integer arithmetic and comparisons.

Declaration
Expand Down Expand Up @@ -445,8 +442,8 @@ Subdivide details
"""""""""""""""""

Both overloads of ``subdivideIn`` have an optional parameter ``strict`` (i.e. ``subdivideIn(slices: SlicesCount, strict: Boolean = true)``).
If ``strict`` is ``true`` an error will be raised if the input could not be divided evenly. If set to ``false`` the generated pieces may
have varying size if necessary.
If ``strict`` is ``true`` an error will be raised if the input could not be divided into equal parts. If set to ``false`` the last element may
be smaller than the other (equal sized) elements.

.. code-block:: scala
Expand All @@ -472,7 +469,6 @@ have varying size if necessary.
Misc
^^^^

The operations listed below that create hardware signals all create new signals.
In contrast to the bit extraction operations listed above it's not possible
to use the return values to assign to the original signal.

Expand Down
5 changes: 2 additions & 3 deletions source/SpinalHDL/Data types/bits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ Subdivide details
"""""""""""""""""

Both overloads of ``subdivideIn`` have an optional parameter ``strict`` (i.e. ``subdivideIn(slices: SlicesCount, strict: Boolean = true)``).
If ``strict`` is ``true`` an error will be raised if the input could not be divided evenly. If set to ``false`` the generated pieces may
have varying size if necessary.
If ``strict`` is ``true`` an error will be raised if the input could not be divided into equal parts. If set to ``false`` the last element may
be smaller than the other (equal sized) elements.

.. code-block:: scala
Expand All @@ -347,7 +347,6 @@ have varying size if necessary.
Misc
^^^^

The operations listed below that create hardware signals all create new signals.
In contrast to the bit extraction operations listed above it's not possible
to use the return values to assign to the original signal.

Expand Down

0 comments on commit c5e1d50

Please sign in to comment.