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):