Skip to content

Commit

Permalink
fix index.rst Stream example
Browse files Browse the repository at this point in the history
The code seems to be copied from the connectFrom (<<) method which is the inverse method of >> that is described here.
  • Loading branch information
typingArtist authored Dec 1, 2023
1 parent 445e9eb commit fe63468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/SpinalHDL/Foreword/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ With SpinalHDL you can call a user-defined task/procedure on a bus like that:
// Define an operator to connect the left operand (this) to the right operand (that)
def >>(that: Stream[T]): Unit = {
this.valid := that.valid
that.ready := this.ready
this.payload := that.payload
that.valid := this.valid
this.ready := that.ready
that.payload := this.payload
}
// Return a Stream connected to this via a FIFO of depth elements
Expand Down

0 comments on commit fe63468

Please sign in to comment.