Attached the tutorial design file jtag_to_avalon_mm.zip below for your reference. May refer to the example testbench sopc_system_jtag_master_tb.sv and execute the run_simulation.tcl with simulator.
Simulation result as below screenshot:
If you encounter compilation error in simulator, remember to temporarily comment out some lines (if else statements) in ../sopc_system/simulation/submodules/altera_avalon_st_jtag_interface.v like below screenshot in order for altera_jtag_sld_node (node) to link with sopc_system_jtag_master_tb.sv:
Thanks,
Best Regards,
Sheng
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer.