Forum Discussion

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

Random reset in Nios II

Can someone tell me what can basically cause a software random reset in Nios II?

Thanks.

Carid

12 Replies

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

    Thanks. So when software reset occurs, will it cause the stack to die?

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

    A cpu reset probably only changes the program counter and disables any mmu! The other registers might be reset, M9K memory is unlikely to be affected and the contents of external memory are extremely unlikely to change.

    Of course, once the processor is executing code again, it will change registers and memory.

    So any data in the old stack will remain until overwriten, but the stack pointer will be unknown (written to by the reset code).

    One thing I've not looked at is whether %r0 is actually writable! It is assumed to read zero - but is a real memory location.