clarify pipe mode comments
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Apr 2019 06:46:12 +0000 (07:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Apr 2019 06:46:12 +0000 (07:46 +0100)
src/add/queue.py

index 015c357e9e9b466bd05b360c41939312477f645f..e52ab5e9eb74cbd516b5b0daa8681023714055b3 100644 (file)
@@ -135,7 +135,8 @@ class Queue(FIFOInterface):
                 with m.If(n_i_ready):
                     m.d.comb += do_enq.eq(0)
 
-        # pipe mode: read-enabled requires writability.
+        # pipe mode: if next stage says it's ready (readable), we
+        #            *must* declare the input ready (writeable).
         if self.pipe:
             with m.If(n_i_ready):
                 m.d.comb += p_o_ready.eq(1)