self.pspec = pspec
DivPipeCoreSetupStage.__init__(self, pspec.core_config)
+ def ispec(self):
+ """ Get the input spec for this pipeline stage."""
+ return DivPipeInputData(self.pspec)
+
+ def ospec(self):
+ """ Get the output spec for this pipeline stage."""
+ return DivPipeInterstageData(self.pspec)
+
def elaborate(self, platform):
m = DivPipeCoreSetupStage(platform) # XXX TODO: out_do_z logic!
self._elaborate(m, platform)
self.pspec = pspec
DivPipeCoreCalculateStage.__init__(self, pspec.core_config, stage_index)
+ def ispec(self):
+ """ Get the input spec for this pipeline stage."""
+ return DivPipeInterstageData(self.pspec)
+
+ def ospec(self):
+ """ Get the output spec for this pipeline stage."""
+ return DivPipeInterstageData(self.pspec)
+
def elaborate(self, platform):
m = DivPipeCoreCalculateStage(platform) # XXX TODO: out_do_z logic!
self._elaborate(m, platform)
self.pspec = pspec
DivPipeCoreFinalStage.__init__(self, pspec.core_config, stage_index)
+ def ispec(self):
+ """ Get the input spec for this pipeline stage."""
+ return DivPipeInterstageData(self.pspec)
+
+ def ospec(self):
+ """ Get the output spec for this pipeline stage."""
+ return DivPipeOutputData(self.pspec)
+
def elaborate(self, platform):
m = DivPipeCoreCalculateStage(platform) # XXX TODO: out_do_z logic!
self._elaborate(m, platform)
Relevant bugreport: http://bugs.libre-riscv.org/show_bug.cgi?id=99
"""
-from nmigen import Module, Signal, Cat, Elaboratable
+from nmigen import Module, Signal, Cat, Elaboratable, Const
from nmigen.cli import main, verilog
from ieee754.fpcommon.fpbase import (FPNumBaseRecord, Overflow)