From: Luke Kenneth Casson Leighton Date: Fri, 23 Nov 2018 03:56:49 +0000 (+0000) Subject: add some arbitrary math into example X-Git-Url: https://git.libre-soc.org/?p=rv32.git;a=commitdiff_plain;h=2c743df736d4031c60bdd89437a4e839e2e82c76 add some arbitrary math into example --- 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):