Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

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

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

Thanks!

/j

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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