From a1d31e98e4c9de7745b4db3f566d089e48752287 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 5 Apr 2019 23:57:14 +0100 Subject: [PATCH] add experiment override of i_ready test --- src/add/singlepipe.py | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.30.2