From 2c743df736d4031c60bdd89437a4e839e2e82c76 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Nov 2018 03:56:49 +0000 Subject: [PATCH] add some arbitrary math into example --- pipestage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pipestage.py b/pipestage.py index 91087a0..4ec0da0 100644 --- a/pipestage.py +++ b/pipestage.py @@ -66,16 +66,16 @@ class SimplePipelineExample(SimplePipeline): self.n = ~self._loopback def stage1(self): - self.n = self.n + self.n = self.n + 1 def stage2(self): - self.n = self.n + self.n = self.n << 1 def stage3(self): - self.n = self.n + self.n = ~self.n def stage4(self): - self._pipe.sync += self._loopback.eq(self.n) + self._pipe.sync += self._loopback.eq(self.n + 3) class PipeModule(Module): def __init__(self): -- 2.30.2