In test.py, please change if dut.bdo_ready.value and dut.bdo_valid and dut.bdo_type.value == type: to if int(dut.bdo_ready.value) and int(dut.bdo_valid.value) and int(dut.bdo_type.value) == type: New version rejects the former, resulting in 4/5 failed tests