Commit e41bd7f7 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

SBA DTX code coverage improvement

parent 6256d892
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -126,7 +126,9 @@ def create_short_testvectors():
        cut_gain = "16.0"
        cut_file = f"{TEST_VECTOR_DIR}/stvFOA{fs}c_cut_{cut_gain}.pcm"
        cut_samples(in_file, cut_file, num_channels, fs + "000", cut_from, cut_len, cut_gain)

        cut_gain = ".004"
        cut_file = f"{TEST_VECTOR_DIR}/stvFOA{fs}c_cut_{cut_gain}.pcm"
        cut_samples(in_file, cut_file, num_channels, fs + "000", cut_from, cut_len, cut_gain)

def main(argv):
    # check for python >= 3.7
+4 −3
Original line number Diff line number Diff line
@@ -170,11 +170,12 @@ def test_spar_foa_enc_system(
    bypass = -1
    sba_order = "+1"
    output_config = "FOA"
    if agc == 1:
    if agc == '1':
        cut_gain = "16.0"
    elif dtx == '1':
        cut_gain = ".004"
    else:
        cut_gain = "1.0"    

    # enc
    spar_foa_enc(
        dut_encoder_frontend,