Here I’m going to demonstrate how to use ModelSim to test out the Virtual JTAG design that I showed in my previous post.
If you’re new to ModelSim with Quartus II, I recommend you look at a post I made awhile back which serves as a quick crash course: Using ModelSim with Quartus II and the DE0-Nano
Quartus II
The first step is to open the Virtual JTAG project we created in the previous post.Here is the top-level schematic:
Adding vJTAG Stimulus
The next step is to setup the stimulus for the Virtual JTAG block which is done by using the vJTAG’s megafunction wizard.First double click the vJTAG
block to launch the wizard:
Now keep clicking
Next>
until you get to the
General > Stimulation Stimuli
tab.
Add in the stimulus as I’ve shown in the image below which is simulating both the Instruction Register (IR), and th