class LogicalStages1(PipeModBaseChain):
def get_chain(self):
inp = LogicalInputStage(self.pspec)
+ return [inp]
+
+class LogicalStages2(PipeModBaseChain):
+ def get_chain(self):
main = LogicalMainStage(self.pspec)
- return [inp, main]
+ return [main]
-class LogicalStages2(PipeModBaseChain):
+class LogicalStages3(PipeModBaseChain):
def get_chain(self):
out = LogicalOutputStage(self.pspec)
return [out]
self.pspec = pspec
self.pipe1 = LogicalStages1(pspec)
self.pipe2 = LogicalStages2(pspec)
- self._eqs = self.connect([self.pipe1, self.pipe2])
+ self.pipe3 = LogicalStages3(pspec)
+ self._eqs = self.connect([self.pipe1, self.pipe2, self.pipe3])
def elaborate(self, platform):
m = ControlBase.elaborate(self, platform)
m.submodules.logical_pipe1 = self.pipe1
m.submodules.logical_pipe2 = self.pipe2
+ m.submodules.logical_pipe3 = self.pipe3
m.d.comb += self._eqs
return m