from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.alu.input_stage import ALUInputStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.input_stage import ALUInputStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.alu.main_stage import ALUMainStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.main_stage import ALUMainStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.alu.output_stage import ALUOutputStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.output_stage import ALUOutputStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
unsigned)
from nmutil.pipemodbase import PipeModBase
from soc.decoder.power_enums import InternalOp
-from soc.alu.pipe_data import ALUInputData
+from soc.fu.alu.pipe_data import ALUInputData
from soc.decoder.power_enums import CryIn
# output stage
from nmigen import (Module, Signal, Cat, Repl, Mux, Const)
from nmutil.pipemodbase import PipeModBase
-from soc.alu.pipe_data import ALUInputData, ALUOutputData
+from soc.fu.alu.pipe_data import ALUInputData, ALUOutputData
from ieee754.part.partsig import PartitionedSignal
from soc.decoder.power_enums import InternalOp
# register
from nmigen import (Module, Signal, Cat, Repl)
from nmutil.pipemodbase import PipeModBase
-from soc.alu.pipe_data import ALUInputData, ALUOutputData
+from soc.fu.alu.pipe_data import ALUInputData, ALUOutputData
from ieee754.part.partsig import PartitionedSignal
from soc.decoder.power_enums import InternalOp
from nmigen import Signal, Const
from nmutil.dynamicpipe import SimpleHandshakeRedir
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from ieee754.fpcommon.getop import FPPipeContext
from nmutil.singlepipe import ControlBase
from nmutil.pipemodbase import PipeModBaseChain
-from soc.alu.input_stage import ALUInputStage
-from soc.alu.main_stage import ALUMainStage
-from soc.alu.output_stage import ALUOutputStage
+from soc.fu.alu.input_stage import ALUInputStage
+from soc.fu.alu.main_stage import ALUMainStage
+from soc.fu.alu.output_stage import ALUOutputStage
class ALUStages(PipeModBaseChain):
def get_chain(self):
from soc.decoder.isa.all import ISA
-from soc.alu.pipeline import ALUBasePipe
-from soc.alu.alu_input_record import CompALUOpSubset
-from soc.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.pipeline import ALUBasePipe
+from soc.fu.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.pipe_data import ALUPipeSpec
import random
class TestCase:
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.alu.input_stage import ALUInputStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.branch.br_input_record import CompBROpSubset
+from soc.fu.alu.input_stage import ALUInputStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.branch.br_input_record import CompBROpSubset
from soc.decoder.power_enums import InternalOp
import unittest
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.logical.main_stage import LogicalMainStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.logical.main_stage import LogicalMainStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
unsigned)
from nmutil.pipemodbase import PipeModBase
from soc.decoder.power_enums import InternalOp
-from soc.alu.pipe_data import ALUInputData
+from soc.fu.alu.pipe_data import ALUInputData
from soc.decoder.power_enums import CryIn
from nmigen import (Module, Signal, Cat, Repl, Mux, Const, Array)
from nmutil.pipemodbase import PipeModBase
-from soc.branch.pipe_data import BranchInputData, BranchOutputData
+from soc.fu.branch.pipe_data import BranchInputData, BranchOutputData
from soc.decoder.power_enums import InternalOp
from soc.decoder.power_fields import DecodeFields
from nmigen import Signal, Const
from ieee754.fpcommon.getop import FPPipeContext
from soc.decoder.power_decoder2 import Data
-from soc.alu.pipe_data import IntegerData
+from soc.fu.alu.pipe_data import IntegerData
class BranchInputData(IntegerData):
from nmutil.singlepipe import ControlBase
from nmutil.pipemodbase import PipeModBaseChain
-from soc.branch.main_stage import BranchMainStage
+from soc.fu.branch.main_stage import BranchMainStage
class BranchStages(PipeModBaseChain):
def get_chain(self):
from soc.decoder.isa.all import ISA
-from soc.branch.pipeline import BranchBasePipe
-from soc.branch.br_input_record import CompBROpSubset
-from soc.alu.pipe_data import ALUPipeSpec
+from soc.fu.branch.pipeline import BranchBasePipe
+from soc.fu.branch.br_input_record import CompBROpSubset
+from soc.fu.alu.pipe_data import ALUPipeSpec
import random
from nmigen import (Module, Signal, Cat, Repl, Mux, Const, Array)
from nmutil.pipemodbase import PipeModBase
-from soc.cr.pipe_data import CRInputData, CROutputData
+from soc.fu.cr.pipe_data import CRInputData, CROutputData
from soc.decoder.power_enums import InternalOp
from soc.decoder.power_fields import DecodeFields
from nmigen import Signal, Const
from ieee754.fpcommon.getop import FPPipeContext
-from soc.alu.pipe_data import IntegerData
+from soc.fu.alu.pipe_data import IntegerData
class CRInputData(IntegerData):
from nmutil.singlepipe import ControlBase
from nmutil.pipemodbase import PipeModBaseChain
-from soc.cr.main_stage import CRMainStage
+from soc.fu.cr.main_stage import CRMainStage
class CRStages(PipeModBaseChain):
def get_chain(self):
from soc.decoder.isa.all import ISA
-from soc.cr.pipeline import CRBasePipe
-from soc.alu.alu_input_record import CompALUOpSubset
-from soc.alu.pipe_data import ALUPipeSpec
+from soc.fu.cr.pipeline import CRBasePipe
+from soc.fu.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.pipe_data import ALUPipeSpec
import random
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.logical.bperm import Bpermd
+from soc.fu.logical.bperm import Bpermd
import unittest
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.alu.input_stage import ALUInputStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.input_stage import ALUInputStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.logical.main_stage import LogicalMainStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.logical.main_stage import LogicalMainStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
unsigned)
from nmutil.pipemodbase import PipeModBase
from soc.decoder.power_enums import InternalOp
-from soc.alu.pipe_data import ALUInputData
+from soc.fu.alu.pipe_data import ALUInputData
from soc.decoder.power_enums import CryIn
from nmigen import (Module, Signal, Cat, Repl, Mux, Const, Array)
from nmutil.pipemodbase import PipeModBase
-from soc.logical.pipe_data import ALUInputData
-from soc.alu.pipe_data import ALUOutputData
+from soc.fu.logical.pipe_data import ALUInputData
+from soc.fu.alu.pipe_data import ALUOutputData
from ieee754.part.partsig import PartitionedSignal
from soc.decoder.power_enums import InternalOp
from soc.countzero.countzero import ZeroCounter
from nmigen import Signal, Const
from ieee754.fpcommon.getop import FPPipeContext
-from soc.alu.pipe_data import IntegerData
+from soc.fu.alu.pipe_data import IntegerData
class ALUInputData(IntegerData):
from nmutil.singlepipe import ControlBase
from nmutil.pipemodbase import PipeModBaseChain
-from soc.alu.input_stage import ALUInputStage
-from soc.logical.main_stage import LogicalMainStage
-from soc.alu.output_stage import ALUOutputStage
+from soc.fu.alu.input_stage import ALUInputStage
+from soc.fu.logical.main_stage import LogicalMainStage
+from soc.fu.alu.output_stage import ALUOutputStage
class LogicalStages(PipeModBaseChain):
def get_chain(self):
from soc.decoder.isa.all import ISA
-from soc.logical.pipeline import LogicalBasePipe
-from soc.alu.alu_input_record import CompALUOpSubset
-from soc.alu.pipe_data import ALUPipeSpec
+from soc.fu.logical.pipeline import LogicalBasePipe
+from soc.fu.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.pipe_data import ALUPipeSpec
import random
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.shift_rot.main_stage import ShiftRotMainStage
-from soc.alu.pipe_data import ALUPipeSpec
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.shift_rot.main_stage import ShiftRotMainStage
+from soc.fu.alu.pipe_data import ALUPipeSpec
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from soc.decoder.power_enums import InternalOp
import unittest
unsigned)
from nmutil.pipemodbase import PipeModBase
from soc.decoder.power_enums import InternalOp
-from soc.shift_rot.pipe_data import ShiftRotInputData
+from soc.fu.shift_rot.pipe_data import ShiftRotInputData
from soc.decoder.power_enums import CryIn
# output stage
from nmigen import (Module, Signal, Cat, Repl, Mux, Const)
from nmutil.pipemodbase import PipeModBase
-from soc.alu.pipe_data import ALUOutputData
-from soc.shift_rot.pipe_data import ShiftRotInputData
+from soc.fu.alu.pipe_data import ALUOutputData
+from soc.fu.shift_rot.pipe_data import ShiftRotInputData
from ieee754.part.partsig import PartitionedSignal
from soc.decoder.power_enums import InternalOp
-from soc.shift_rot.rotator import Rotator
+from soc.fu.shift_rot.rotator import Rotator
from soc.decoder.power_fields import DecodeFields
from soc.decoder.power_fieldsn import SignalBitRange
from nmigen import Signal, Const
from nmutil.dynamicpipe import SimpleHandshakeRedir
-from soc.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.alu_input_record import CompALUOpSubset
from ieee754.fpcommon.getop import FPPipeContext
-from soc.alu.pipe_data import IntegerData
+from soc.fu.alu.pipe_data import IntegerData
class ShiftRotInputData(IntegerData):
from nmutil.singlepipe import ControlBase
from nmutil.pipemodbase import PipeModBaseChain
-from soc.shift_rot.input_stage import ShiftRotInputStage
-from soc.shift_rot.main_stage import ShiftRotMainStage
-from soc.alu.output_stage import ALUOutputStage
+from soc.fu.shift_rot.input_stage import ShiftRotInputStage
+from soc.fu.shift_rot.main_stage import ShiftRotMainStage
+from soc.fu.alu.output_stage import ALUOutputStage
class ShiftRotStages(PipeModBaseChain):
def get_chain(self):
from nmigen import (Elaboratable, Signal, Module, Const, Cat,
unsigned, signed)
-from soc.shift_rot.rotl import ROTL
+from soc.fu.shift_rot.rotl import ROTL
# note BE bit numbering
def right_mask(m, mask_begin):
from nmigen.back.pysim import Simulator, Delay, Settle
from nmigen.test.utils import FHDLTestCase
from nmigen.cli import rtlil
-from soc.alu.maskgen import MaskGen
+from soc.fu.alu.maskgen import MaskGen
from soc.decoder.helpers import MASK
import random
import unittest
from soc.decoder.isa.all import ISA
-from soc.shift_rot.pipeline import ShiftRotBasePipe
-from soc.alu.alu_input_record import CompALUOpSubset
-from soc.alu.pipe_data import ALUPipeSpec
+from soc.fu.shift_rot.pipeline import ShiftRotBasePipe
+from soc.fu.alu.alu_input_record import CompALUOpSubset
+from soc.fu.alu.pipe_data import ALUPipeSpec
import random
class TestCase: