Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17253 Discussions

How do I reset a Stratix IV Dev. board via system console?

Altera_Forum
Honored Contributor II
1,845 Views

I.e., rather than press the button on the board, I want to send a TCL command to cause a reset.  

 

Thanks! 

/j
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
819 Views

 

--- Quote Start ---  

I.e., rather than press the button on the board, I want to send a TCL command to cause a reset.  

 

--- Quote End ---  

 

 

The JTAG-to-Avalon-MM bridge has a reset_request output that you can use as a reset input to your logic. Its discussed in this tutorial 

 

http://www.alterawiki.com/wiki/using_the_usb-blaster_as_an_sopc/qsys_avalon-mm_master_tutorial 

 

I'm pretty sure I just tied it to an LED in the tutorial, but you can use it as a reset source in a real design. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
819 Views

I assume you mean.. 

# Print the list of JTAG commands (commands prefixed with jtag) 

tcl> info commands jtag* 

jtag idcode jtag pulse nconfig jtag read jtag node id jtag node is bytestream 

jtag open jtag resetrequest jtag write jtag node is master jtag send 

jtag print hub info jtag close jtag usercode jtag print node info 

jtag number of nodes 

 

 

thanks 

/j
0 Kudos
Altera_Forum
Honored Contributor II
819 Views

 

--- Quote Start ---  

I assume you mean.. 

# Print the list of JTAG commands (commands prefixed with jtag) 

tcl> info commands jtag* 

jtag idcode jtag pulse nconfig jtag read jtag node id jtag node is bytestream 

jtag open jtag resetrequest jtag write jtag node is master jtag send 

jtag print hub info jtag close jtag usercode jtag print node info 

jtag number of nodes 

 

 

--- Quote End ---  

 

 

Yep, that's the software API to toggle it. You can also issue JTAG low-level commands to get to the register that toggles it. The protocol and testbenches are here 

 

http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_analysis.pdf 

http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_analysis.zip 

 

I'm pretty sure the Tcl script with one of those tutorials has a command that toggles the reset line - it may use the jtag resetrequest command directly. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
819 Views

thanks Dave 

/j
0 Kudos
Reply