From ee093979b52190836370c6f9bf939f4afea5597b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 12 Apr 2019 11:40:30 +0100 Subject: [PATCH] add truth table for PassThroughHandshake --- src/add/singlepipe.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 82ad7062..a6a4bfed 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -764,7 +764,7 @@ class SimpleHandshake(ControlBase): Inputs Temporary Output ------- ---------- ----- - P P N N PiV& ~NiV& N P + P P N N PiV& ~NiR& N P i o i o PoR NoV o o V R R V V R @@ -1017,6 +1017,35 @@ class PassThroughStage(StageCls): class PassThroughHandshake(ControlBase): """ A control block that delays by one clock cycle. + + Inputs Temporary Output Data + ------- ------------------ ----- ---- + P P N N PiV& PiV| NiR| pvr N P (pvr) + i o i o PoR ~PoR ~NoV o o + V R R V V R + + ------- - - - - - - + 0 0 0 0 0 1 1 0 1 1 reg + 0 0 0 1 0 1 0 0 1 0 reg + 0 0 1 0 0 1 1 0 1 1 reg + 0 0 1 1 0 1 1 0 1 1 reg + ------- - - - - - - + 0 1 0 0 0 0 1 0 0 1 reg + 0 1 0 1 0 0 0 0 0 0 reg + 0 1 1 0 0 0 1 0 0 1 reg + 0 1 1 1 0 0 1 0 0 1 reg + ------- - - - - - - + 1 0 0 0 0 1 1 1 1 1 process(in) + 1 0 0 1 0 1 0 0 1 0 reg + 1 0 1 0 0 1 1 1 1 1 process(in) + 1 0 1 1 0 1 1 1 1 1 process(in) + ------- - - - - - - + 1 1 0 0 1 1 1 1 1 1 process(in) + 1 1 0 1 1 1 0 0 1 0 reg + 1 1 1 0 1 1 1 1 1 1 process(in) + 1 1 1 1 1 1 1 1 1 1 process(in) + ------- - - - - - - + """ def elaborate(self, platform): -- 2.30.2