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
def set_cu_input(cu, idx, data):
cr = test.cr
print ("cr reg", hex(cr))
for i in range(8):
- cri = (cr>>(j*4)) & 0xf
+ cri = (cr>>(i*4)) & 0xf
print ("cr reg", hex(cri), i,
core.regs.cr.regs[i].reg.shape())
yield core.regs.cr.regs[i].reg.eq(cri)
suite.addTest(TestRunner(ShiftRotTestCase.test_data))
suite.addTest(TestRunner(LogicalTestCase.test_data))
suite.addTest(TestRunner(ALUTestCase.test_data))
+ suite.addTest(TestRunner(BranchTestCase.test_data))
runner = unittest.TextTestRunner()
runner.run(suite)