from soc.fu.trap.pipeline import TrapBasePipe
from soc.fu.trap.pipe_data import TrapPipeSpec
-from soc.fu.div.pipeline import DIVBasePipe
-from soc.fu.div.pipe_data import DIVPipeSpec
+from soc.fu.div.pipeline import DivBasePipe
+from soc.fu.div.pipe_data import DivPipeSpec
from soc.fu.mul.pipeline import MulBasePipe
from soc.fu.mul.pipe_data import MulPipeSpec
def __init__(self, idx):
super().__init__(ShiftRotPipeSpec, ShiftRotBasePipe, idx)
-class DIVFunctionUnit(FunctionUnitBaseSingle):
+class DivFunctionUnit(FunctionUnitBaseSingle):
fnunit = Function.DIV
def __init__(self, idx):
- super().__init__(DIVPipeSpec, DIVBasePipe, idx)
+ super().__init__(DivPipeSpec, DivBasePipe, idx)
class MulFunctionUnit(FunctionUnitBaseSingle):
fnunit = Function.MUL
'branch': BranchFunctionUnit,
'trap': TrapFunctionUnit,
'spr': SPRFunctionUnit,
- 'div': DIVFunctionUnit,
+ 'div': DivFunctionUnit,
'mul': MulFunctionUnit,
'logical': LogicalFunctionUnit,
'shiftrot': ShiftRotFunctionUnit,
from soc.fu.mul.mul_input_record import CompMULOpSubset
from soc.fu.pipe_data import IntegerData, CommonPipeSpec
-from soc.fu.div.pipe_data import DIVInputData, DivMulOutputData
+from soc.fu.div.pipe_data import DivInputData, DivMulOutputData
from nmigen import Signal
-class MulIntermediateData(DIVInputData):
+class MulIntermediateData(DivInputData):
def __init__(self, pspec):
super().__init__(pspec)
class MulPipeSpec(CommonPipeSpec):
- regspec = (DIVInputData.regspec, DivMulOutputData.regspec)
+ regspec = (DivInputData.regspec, DivMulOutputData.regspec)
opsubsetkls = CompMULOpSubset
from nmigen import (Module, Signal, Mux)
from nmutil.pipemodbase import PipeModBase
-from soc.fu.div.pipe_data import DIVInputData
+from soc.fu.div.pipe_data import DivInputData
from soc.fu.mul.pipe_data import MulIntermediateData
from ieee754.part.partsig import PartitionedSignal
from nmutil.util import eq32
super().__init__(pspec, "mul1")
def ispec(self):
- return DIVInputData(self.pspec) # defines pipeline stage input format
+ return DivInputData(self.pspec) # defines pipeline stage input format
def ospec(self):
return MulIntermediateData(self.pspec) # pipeline stage output format