예제 #1
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(SP_PLATFORM)

    assert cycles < 27_500
예제 #2
0
def measure(platform, simulator="codegen"):
    return (gate_count(platform.chip)['nands'],
            test_optimal_08.count_pong_instructions(platform),
            test_optimal_08.count_pong_cycles_first_iteration(
                platform, simulator),
            test_optimal_08.count_cycles_to_init(platform, simulator))
예제 #3
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(
        platform=LAZY_PLATFORM)

    assert cycles < 37_500
예제 #4
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(platform=SHIFT_PLATFORM)

    assert cycles < 19_850
예제 #5
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(REG_PLATFORM)

    assert cycles < 19_200
예제 #6
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(REDUCE_PLATFORM)

    # Note: this isn't deterministic, but it
    assert cycles < 20_300
예제 #7
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(platform=EIGHT_PLATFORM)

    assert cycles < 85_000
예제 #8
0
def test_pong_first_iteration():
    cycles = test_optimal_08.count_pong_cycles_first_iteration(
        platform=THREADED_PLATFORM)

    assert cycles < 50_000