From fe6346875cec807a99d20a9204d3f1c5ab01235f Mon Sep 17 00:00:00 2001 From: typingArtist Date: Fri, 1 Dec 2023 20:29:09 +0100 Subject: [PATCH] fix index.rst Stream example The code seems to be copied from the connectFrom (<<) method which is the inverse method of >> that is described here. --- source/SpinalHDL/Foreword/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/SpinalHDL/Foreword/index.rst b/source/SpinalHDL/Foreword/index.rst index a20573f5f55..7f69f87887d 100644 --- a/source/SpinalHDL/Foreword/index.rst +++ b/source/SpinalHDL/Foreword/index.rst @@ -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