From: Luke Kenneth Casson Leighton Date: Fri, 5 Apr 2019 22:57:14 +0000 (+0100) Subject: add experiment override of i_ready test X-Git-Tag: ls180-24jan2020~1330 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1d31e98e4c9de7745b4db3f566d089e48752287;p=ieee754fpu.git add experiment override of i_ready test --- diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 02b82352..f88907e1 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -233,6 +233,13 @@ class NextControl: return self.s_o_valid return self._o_valid + def i_ready_logic(self): + """ public-facing API: receives indication that transmit is possible + """ + if self.stage_ctl: + return self.i_ready & self.s_o_valid + return self.i_ready + def connect_to_next(self, nxt): """ helper function to connect to the next stage data/valid/ready. data/valid is passed *TO* nxt, and ready comes *IN* from nxt.