Commit 5431b64c authored by Jan Kiene's avatar Jan Kiene
Browse files

fix bug with netsim application

parent d8d7b185
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -496,14 +496,18 @@ def simulate(
    ):
        # call network simulator on REF encoder output
        cmd_opts[1] = f"{ref_out_dir}/{netsim_infile}"
        cmd_opts[2] = f"{ref_out_dir}/{netsim_outfile}"  # ref_out_file
    elif update_ref in [0, 2]:
        # call network simulator on DUT encoder output
        cmd_opts[1] = f"{dut_out_dir}/{netsim_infile}"
        cmd_opts[2] = f"{dut_out_dir}/{netsim_outfile}"  # dut_out_file

    if update_ref == 1 or (update_ref == 2 and not os.path.exists(ref_out_file)):
        cmd_opts[3] = f"{ref_out_dir}/{netsim_tracefile}"
        cmd_opts[2] = f"{ref_out_dir}/{netsim_outfile}"  # ref_out_file
    elif update_ref in [0, 2]:
        cmd_opts[3] = f"{dut_out_dir}/{netsim_tracefile}"
        cmd_opts[2] = f"{dut_out_dir}/{netsim_outfile}"  # dut_out_file

    run(netsim + cmd_opts, check=False)