Skip to content

Commit

Permalink
Merge pull request #223 from andreasWallner/repeat_operator
Browse files Browse the repository at this point in the history
Add documentation for #* operator
  • Loading branch information
Dolu1990 authored Oct 20, 2023
2 parents 22b7e4c + c6e1a70 commit e160aa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/SpinalHDL/Data types/Int.rst
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ to use the return values to assign to the original signal.
* - x ## y
- Concatenate, x->high, y->low
- Bits(w(x) + w(y) bits)
* - x #* n
- Repeat x n-times
- Bits(w(x) * n bits)
* - x @@ y
- Concatenate x:T with y:Bool/SInt/UInt
- T(w(x) + w(y) bits)
Expand Down
3 changes: 3 additions & 0 deletions source/SpinalHDL/Data types/bits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ to use the return values to assign to the original signal.
* - x ## y
- Concatenate, x->high, y->low
- Bits(w(x) + w(y) bits)
* - x #* n
- Repeat x n-times
- Bits(w(x) * n bits)
* - x.resize(y)
- Return a resized representation of x, if enlarged, it is extended with zero
padding at MSB as necessary, y: Int
Expand Down
3 changes: 3 additions & 0 deletions source/SpinalHDL/Data types/bool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ Misc
* - x ## y
- Concatenate, x->high, y->low
- Bits(w(x) + w(y) bits)
* - x #* n
- Repeat x n-times
- Bits(n bits)


.. code-block:: scala
Expand Down

0 comments on commit e160aa3

Please sign in to comment.