Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTutorial: Using the USB-Blaster as an SOPC/Qsys Avalon-MM master
Hi all,
I've put together a tutorial on how to use the Altera JTAG-to-Avalon-MM master and Altera Verification IP Avalon-MM BFM Master under both SOPC builder and Qsys. http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_mm_tutorial.pdf (http://www.ovro.caltech.edu/%7edwh/correlator/pdf/altera_jtag_to_avalon_mm_tutorial.pdf) http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_mm_tutorial.zip (http://www.ovro.caltech.edu/%7edwh/correlator/pdf/altera_jtag_to_avalon_mm_tutorial.zip) The tutorial walks the user through the creation of an SOPC or Qsys system design, and provides scripts that automate the re-generation of the system. The tutorial shows how to simulate using Modelsim-ASE, and shows how to communicate with the hardware using System Console, quartus_stp, and then how to run a TCP/IP server under System Console or quartus_stp, and then communicate with that server from client code written in Tcl/Tk (a simple GUI) and a command-line C interface. Let me know if you like it, or have feedback/suggestions on how to improve the document. Cheers, Dave119 Replies
- Altera_Forum
Honored Contributor
Very interesting reading!
- Altera_Forum
Honored Contributor
I created a page on the AlteraWiki. That should make it easier to find.
http://www.alterawiki.com/wiki/using_the_usb-blaster_as_an_sopc/qsys_avalon-mm_master_tutorial Any idea how I can add search keywords to the wiki? It would be nice if search terms like "JTAG-to-Avalon-MM master" linked to the wiki page. Cheers, Dave - Altera_Forum
Honored Contributor
If I remember correctly the keywords derived from the page title.
- Altera_Forum
Honored Contributor
--- Quote Start --- If I remember correctly the keywords derived from the page title. --- Quote End --- And the title is non-editable once you create the page ... oh the joys of wiki's :) I see a block with links to "Categories" on the bottom of some pages. Any idea on how to add something like that? I'll see if I can find a wiki page that has some instructions. Thanks! Cheers, Dave - Altera_Forum
Honored Contributor
These are the categories to choose from: http://www.alterawiki.com/wiki/special:categories
You can add your page to one of those categories by clicking the little [c] icon in the editor, this page has more details: http://www.alterawiki.com/wiki/help:editing#create_a_new_page - Altera_Forum
Honored Contributor
--- Quote Start --- You can add your page to one of those categories by clicking the little [c] icon in the editor --- Quote End --- It appears to be broken. Rather than popping up a list of categories to select from, it pops up a window with an HTML error message. I've attached the error message generated from the Sandbox test page, so its not something specific to the page I created. I don't see any links on the Wiki pages to anyone who might be able to help with this. Suggestions? Cheers, Dave - Altera_Forum
Honored Contributor
The wiki category icon is in fact broken.
You can add a category in the wikitext mode manually. Add the following text to the bottom: [[Category:Qsys]] - Altera_Forum
Honored Contributor
--- Quote Start --- The wiki category icon is in fact broken. --- Quote End --- Does anyone know how to fix it? --- Quote Start --- You can add a category in the wikitext mode manually. Add the following text to the bottom: [[Category:Qsys]] --- Quote End --- Cool! Thanks for editing the page. Cheers, Dave - Altera_Forum
Honored Contributor
I find it very useful tutorial. The explanation throughout the material provides readers a more comprehensive understanding about designing with Qsys, SOPC. I could not generate in Qsys but will try to make it done soon then continue learning whole tutorial. Thanks for your contribution.
- Altera_Forum
Honored Contributor
Hi,
I'm following the Altera JTAG-to-Avalon-MM Tutorial, version 1.0 from March 14, 2012. I'm using Quartus webedition 10.1 no SP installed. I also uses the corresponding free Modelsim version 6.6c The reason I uses 10.1 is that I have a Cyclone 1 board. Cyclone 1 is not supported in Quartus 11 and higher. I'm following the document and follow the SOPC flow, as QSys is not recommended for this version according to the document I can follow the document but run into a problem on page 19. There it says: - Run the simulation --- Quote Start --- VSIM> vsim -t ps +nowarnTFMPC sopc_system_jtag_master_tb --- Quote End --- This gives an error in Modelsim --- Quote Start --- # Loading work.altera_avalon_st_pipeline_base# ** Error: (vsim-3043) c:/temp/altera_jtag_to_avalon_mm_tutorial/hdl/sopc_system/test/sopc_system_jtag_master_tb.sv(122): Unresolved reference to 'jtag_master_inst' in dut.the_jtag_master.jtag_master_inst.# Region: /sopc_system_jtag_master_tb# Error loading design Modelsim> --- Quote End --- When I go to this file and line 122 it says:
When I search on VTAP it says at line 36 the following:line 117: // -------------------------------------------------------- line 118: // JTAG reset line 119: // -------------------------------------------------------- line 120: // line 121: $display(" * Reset the JTAG controller"); line 122: `VTAP.reset_jtag_state;
By commenting the 11.1sp1 define (line 38) and un-commenting the 10.0 version (line 45) it works. (Just sharing information sofar for solving this problem) When I then do the next line --- Quote Start --- VSIM> do $TUTORIAL/hdl/sopc_system/scripts/sopc_system_jtag_master_tb.do --- Quote End --- it gives an error on the jtag_master signals:line 36: // Quartus 11.1sp1 line 37: // --------------- line 38: `define VTAP dut.the_jtag_master.jtag_master_inst.jtag_phy_embedded_in_jtag_master.normal.jtag_dc_streaming.jtag_streaming.node line 39: line 40: // Quartus 10.0 line 41: // ------------ line 42: // The component hierarchy is slightly different for Quartus versions line 43: // earlier than 11.1sp1. The sopc_system_jtag_master_tb.do script line 44: // JTAG master nodes also change names. line 45: //`define VTAP dut.the_jtag_master.jtag_master.normal.altera_jtag_avalon_master_pli_off_inst.the_altera_jtag_avalon_master_jtag_interface_pli_off.altera_jtag_avalon_master_jtag_interface_pli_off.normal.jtag_dc_streaming.jtag_streaming.node
Is this a quartus 10.1 specific error? Or is this an error in the defined waves in the do-file? Rgds, Kimberley# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_write'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 9# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_read'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 10# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_address'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 11# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_byteenable'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 12# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_writedata'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 13# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_readdata'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 14# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_waitrequest'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 15# ** Error: (vish-4014) No objects found matching '/sopc_system_jtag_master_tb/dut/the_jtag_master/master_readdatavalid'.# Executing ONERROR command at macro c:\temp\altera_jtag_to_avalon_mm_tutorial\hdl\sopc_system\scripts\sopc_system_jtag_master_tb.do line 16- TWatt3
New Contributor
Does anyone know where I can get the zip file for this tutorial? The original link does not work?
Thanks.