Forum Discussion

host's avatar
host
Icon for Occasional Contributor rankOccasional Contributor
2 years ago

Simulating JTAG to Avalon

Hello,

I'm using the JTAG to Avalon IP in my design.
In the lab, the IP will be controlled by a JTAG link.

But how can I simulate it ?
How can I provide it user stimulus in simulation ?
For example, generate a write command in simulation to address 0x0 ?

1 Reply

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,

    You'll need to use BFM simulation. This tutorial document link https://forums.parallax.com/discussion/download/110606/altera_jtag_to_avalon_mm_tutorial.pdf under section 3.5.3 JTAG-to-Avalon-MM Master probably can clear your doubt.

    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.