soc.fu.compunits.test package

Submodules

soc.fu.compunits.test.test_alu_compunit module

class soc.fu.compunits.test.test_alu_compunit.ALUTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to ALUFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to ALUFunctionUnit input regspec

soc.fu.compunits.test.test_branch_compunit module

class soc.fu.compunits.test.test_branch_compunit.BranchTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to BranchFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to BranchFunctionUnit input regspec

soc.fu.compunits.test.test_compunit module

class soc.fu.compunits.test.test_compunit.TestRunner(test_data, fukls, iodef, funit, bigendian)

Bases: nmutil.formaltest.FHDLTestCase

execute(cu, l0, instruction, pdecode2, simdec2, test)
run_all()
soc.fu.compunits.test.test_compunit.check_sim_memory(dut, l0, sim, code)
soc.fu.compunits.test.test_compunit.dump_sim_memory(dut, l0, sim, code)
soc.fu.compunits.test.test_compunit.get_cu_output(cu, idx, code)
soc.fu.compunits.test.test_compunit.get_cu_outputs(cu, code)
soc.fu.compunits.test.test_compunit.get_inp_indexed(cu, inp)
soc.fu.compunits.test.test_compunit.get_l0_mem(l0)
soc.fu.compunits.test.test_compunit.set_cu_input(cu, idx, data)
soc.fu.compunits.test.test_compunit.set_cu_inputs(cu, inp)
soc.fu.compunits.test.test_compunit.set_operand(cu, dec2, sim)
soc.fu.compunits.test.test_compunit.setup_test_memory(l0, sim)

soc.fu.compunits.test.test_cr_compunit module

class soc.fu.compunits.test.test_cr_compunit.CRTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to CRFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to CRFunctionUnit input regspec

soc.fu.compunits.test.test_div_compunit module

soc.fu.compunits.test.test_ldst_compunit module

class soc.fu.compunits.test.test_ldst_compunit.LDSTTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to LDSTFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to LDSTFunctionUnit input regspec

soc.fu.compunits.test.test_logical_compunit module

class soc.fu.compunits.test.test_logical_compunit.LogicalTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to LogicalFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to LogicalFunctionUnit input regspec

soc.fu.compunits.test.test_shiftrot_compunit module

class soc.fu.compunits.test.test_shiftrot_compunit.ShiftRotTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to ShiftRotFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to ShiftRotFunctionUnit input regspec

soc.fu.compunits.test.test_spr_compunit module

class soc.fu.compunits.test.test_spr_compunit.SPRTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to SPRFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to SPRFunctionUnit input regspec

soc.fu.compunits.test.test_trap_compunit module

class soc.fu.compunits.test.test_trap_compunit.TrapTestRunner(test_data)

Bases: soc.fu.compunits.test.test_compunit.TestRunner

check_cu_outputs(res, dec2, sim, alu, code)

naming (res) must conform to TrapFunctionUnit output regspec

get_cu_inputs(dec2, sim)

naming (res) must conform to TrapFunctionUnit input regspec

Module contents