Difference between revisions of "Qsys USB BLASTER Jtag-avalon-MM"

From ArmadeusWiki
Jump to: navigation, search
(New page: == Introduction == It's possible to access avalon-MM bus with an USB-Blaster connected to jtag. To do that a special ip-core must be instanciated in Qsys and a system console must be laun...)
 
Line 1: Line 1:
 +
[[Category: FPGA]]
 +
[[Category: Quartus]]
 +
[[Category: USB-Blaster]]
 +
 
== Introduction ==
 
== Introduction ==
  
Line 7: Line 11:
  
 
== Access avalon-MM registers ==
 
== Access avalon-MM registers ==
 +
 +
* Launch Systemp console in Quartus :
 +
<pre>
 +
tools -> System debugging tools -> system console
 +
</pre>
 +
 +
* Connect to USB-BLaster JTAG-avalon-MM instance :
 +
<pre>
 +
% set masters [get_service_paths master]
 +
% set master [lindex $masters 0]
 +
% open_service master $master
 +
</pre>
 +
* Write 32bits value
 +
<pre>
 +
% master_write_32 $master 0x4 0xdeadbeef
 +
</pre>
 +
* Read 32bits value
 +
<pre>
 +
% master_read_32 $master 0x0 2
 +
</pre>

Revision as of 17:10, 31 March 2015


Introduction

It's possible to access avalon-MM bus with an USB-Blaster connected to jtag. To do that a special ip-core must be instanciated in Qsys and a system console must be launched in Quartus.

Instanciate Jtag-avalon-MM

Access avalon-MM registers

  • Launch Systemp console in Quartus :
tools -> System debugging tools -> system console
  • Connect to USB-BLaster JTAG-avalon-MM instance :
% set masters [get_service_paths master]
% set master [lindex $masters 0]
% open_service master $master
  • Write 32bits value
% master_write_32 $master 0x4 0xdeadbeef
  • Read 32bits value
% master_read_32 $master 0x0 2