--- Quote Start ---
For your first design, you can ignore all of these signals, and just wire ir_in to your LEDs, and ir_out to some push buttons. You can then use quartus_stp and device_virtual_ir_shift to write to the LEDs and read from the push buttons.
--- Quote End ---
Hello Dave,
You said thqt ir_in is an input to my design and ir_out is the output from my design.
I don't understand. Why should ir_in connected to LED? Because my design is only to make 4 LED blinking by using 4 bit counter. And I use clock divider to slow the clock that will be fed to the counter. If ir_in is connected to LED, that means the virtual jtag will interfere the "original" design.
So far these are what I've done:
1. Make the original design with verilog and later generate a bdf(block diagram file)
2. Make the vji using megawizard. And only generate bdf file.
3. From this step on, I don't know what should I do. How should I connect the block of my design and virtual jtag block.
How could I know how much width of IR is needed?(page3 of virtual jtag megawizard)
What I know from the pdf you gave me, IR is to define to which data TDI and TDO should connect(though I don't understand that).
Why Altera don't give tutorial about this issue? They only discuss theory and how to use the megawizard not how to apply the megawizard to our design.
Sorry that I'm asking too much.
It's good to hear someone is trying to fill that gap.
Thank you Dave.