-from soc.fu.alu.test.test_pipe_caller import ALUTestCase
-from soc.fu.logical.test.test_pipe_caller import LogicalTestCase
-from soc.fu.shift_rot.test.test_pipe_caller import ShiftRotTestCase
-from soc.fu.cr.test.test_pipe_caller import CRTestCase
-from soc.fu.branch.test.test_pipe_caller import BranchTestCase
-from soc.fu.ldst.test.test_pipe_caller import LDSTTestCase
-
-
-def setup_i_memory(imem, startaddr, instructions):
- mem = imem
- print ("insn before, init mem", mem.depth, mem.width, mem)
- for i in range(mem.depth):
- yield mem._array[i].eq(0)
- startaddr //= 4 # assume i-mem is 32-bit wide
- for insn, code in instructions:
- print ("instr: %06x 0x%x %s" % (4*startaddr, insn, code))
- yield mem._array[startaddr].eq(insn)
- startaddr += 1
-
-
-class TestRunner(FHDLTestCase):
- def __init__(self, tst_data):
- super().__init__("run_all")
- self.test_data = tst_data
-
- def run_all(self):
- m = Module()
- comb = m.d.comb
- go_insn_i = Signal()
-
- m.submodules.issuer = issuer = TestIssuer()
- imem = issuer.imem.mem
- core = issuer.core
- pdecode2 = core.pdecode2
- l0 = core.l0
-
- comb += issuer.go_insn_i.eq(go_insn_i)
-
- # nmigen Simulation
- sim = Simulator(m)
- sim.add_clock(1e-6)
-
- def process():
-
- for test in self.test_data:
- print(test.name)
- program = test.program
- self.subTest(test.name)
- sim = ISA(pdecode2, test.regs, test.sprs, test.cr, test.mem,
- test.msr)
- gen = program.generate_instructions()
- instructions = list(zip(gen, program.assembly.splitlines()))
+from openpower.test.alu.alu_cases import ALUTestCase
+from openpower.test.div.div_cases import DivTestCases
+from openpower.test.logical.logical_cases import LogicalTestCase
+from openpower.test.shift_rot.shift_rot_cases import ShiftRotTestCase
+from openpower.test.cr.cr_cases import CRTestCase
+from openpower.test.branch.branch_cases import BranchTestCase
+# from soc.fu.spr.test.test_pipe_caller import SPRTestCase
+from openpower.test.ldst.ldst_cases import LDSTTestCase
+from openpower.simulator.test_sim import (GeneralTestCases, AttnTestCase)
+# from openpower.simulator.test_helloworld_sim import HelloTestCases