From: Luke Kenneth Casson Leighton Date: Wed, 17 Apr 2019 06:46:12 +0000 (+0100) Subject: clarify pipe mode comments X-Git-Tag: ls180-24jan2020~1225 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=878888f1eabcc8ed7bd80087aa3a84faf9ee7ed4;p=ieee754fpu.git clarify pipe mode comments --- 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)