From 878888f1eabcc8ed7bd80087aa3a84faf9ee7ed4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 17 Apr 2019 07:46:12 +0100 Subject: [PATCH] clarify pipe mode comments --- src/add/queue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add/queue.py b/src/add/queue.py index 015c357e..e52ab5e9 100644 --- a/src/add/queue.py +++ b/src/add/queue.py @@ -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) -- 2.30.2