def test_pragma():
    harness.test_pragma(
        target,
        [
            "HLS_UNROLL_LOOP(COMPLETE, 4,",
            "HLS_PIPELINE_LOOP(HARD_STALL, 2,",
            "HLS_MAP_TO_REG_BANK(A)",
        ],
    )
Esempio n. 2
0
def test_pragma():
    harness.test_pragma(target, [
        "#pragma HLS unroll factor=4", "#pragma HLS pipeline II=2",
        "#pragma HLS array_partition variable=A block dim=2 factor=2"
    ])
Esempio n. 3
0
def test_pragma():
    harness.test_pragma(target, ["#pragma unroll 4", "#pragma ii 2"], False)