- Be sure to connect the DE10-nano board with the USB Blaster II cable (next to HDMI port).
- Add SignalTap II support to your core project with:
File> New File ...> Verification / Debugging Files> SignalTap II Logic Analyzer File.
- Configure SignalTap II:
a) Give your instance a name with Instance Manager.
b) Configure the signals (Setup Tab). Important the clock used to capture the signals in each sample: in my case I chose emu: emu | CLK_50M and a sampling depth of 1K
c) Add the signals you want to debug on the left: double-click and add the signals from the Node Finder: in my case I used the SignalTap II: post-fitting filter and added the signals from my core module:
| sys_top | emu: emu | rndmnkiii_core: kon2cpu |
d) Establish the trigger conditions for capturing signals that interest you and the data that you are going to capture. Disable everything that is not necessary as you will reduce the consumption of logical resources in the FPGA.
e) Save the changes in the STP file with the SignalTap configuration.
f) Recompile the project. Note that compilation time will increase compared to a project without SignalTap support.
g) Open SignalTap window from Quartus:Tools> SignalTap II Logic Analyzer
h) In JTAG Chain Configuration make sure that the hardware is detected correctly:
Hardware: DE-SoC [USB-1]
Device: @ 2: 5CSEBA6 ...
With SOF Manager select the file to record in the FPGA, in my case is in the quartus proyectfolder:Code: Select all
output_files
and then press the Program Device button.Code: Select all
kon2_core.sof
If everything was correct, a message should appear at the top: "JTAG ready".
- VERY IMPORTANT: if your core loads a ROM file either directly or through MRA, it is very important to place this file (as uncompressed ROM) in the / fat directory of the SD card and that its name matches that of the SOF file generated by Quartus. In my case:
This can be generated with the console tool mra:
Code: Select all
kon2_core.rom
and the kon2_core.zip compressed roms.Code: Select all
mra kon2_core.mra
if not it will not load the rom it is question when you execute the capture with SignalTap.
- Now from SignalTap II Window should be appears a message at the top showing: Ready to acquire. Open the Data Tab and from Processing Menu you can run: Start Analysis, Stop Analysis and the captured signals will show in this window. See attachment image as an example of capture.
- Every time you modify the signals to capture, the trigger conditions or modify the main configuration, you will have to recompile the project. So spend some time making all the necessary adjustments for your capture and save the changes before to recompile.