Forum Discussion

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

How to trigger the Reset signal

Hi,

Because the FPGA development board is installed on a remote machine, I have no access to the physical buttons on board, is there any other way to raise the reset signal after downloading the configuration code? Or is the reset signal raised automatically every time a new configuration code is downloaded?

Thanks

6 Replies

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

    I presume you are talking about JTAG indirect programming of AS or AP configuration memory?

    "Initiate configuration after programming" is an option that can be either checked or unchecked in the programmer tool. The initiate through JTAG is equivalent to asserting nConfig in hardware.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I presume you are talking about JTAG indirect programming of AS or AP configuration memory?

    "Initiate configuration after programming" is an option that can be either checked or unchecked in the programmer tool. The initiate through JTAG is equivalent to asserting nConfig in hardware.

    --- Quote End ---

    Thanks FvM, could you specify a bit more on this? I see there's this "Initiate configuration after programming" option in the programmer, but what else needs to be done in order to raise the reset signal after programming?

    "The initiate through JTAG is equivalent to asserting nConfig in hardware" I figure out nConfig signal begins the configuration cycle, but I don't understand the connection between this nConfig signal and raising the reset signal. Could you please explain more?

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

    I presonnaly add in my vhdl code a ram of 1 bit that is pre-loaded with the value 1.

    A little process checks if the value is 1 (so after programming or power cycling from the epcs128),

    if the value is 1, I assert the internal reset of my design and clear the bit in the ram.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I realize that the original question is somewhat vague. Generally, the power-on-reset will be triggered after configuration, setting internal RAM and registers to there programmed initial state. If your design uses an explicite asynchronous reset signal, the power-on-reset state of registers will be usually identical to the state programmed for the asynchronous reset. In so far, the you get almost the same state by POR without asserting the external reset signal.

    A problem arises with those design parts that require the reset released synchronously with the clock, e.g. state machines or counters that are at risk to fall into illegal states otherwise. In this case a particular self-reset may be necessary. To reduce the risk of metastable states, it's often implemented as a down counter that releases the global reset after several clock cycles. If the global clock is fed by a PLL, the reset may be derived from it's locked signal.