Software reset for the MicroBlaze

Feb 07, 2006 6 Replies

Hey all,



I was wondering how to write a software reset in C-code for the Xilinx Microblaze.



Regards



Karel


Jump to the reset vector ?

You need to generate an OPB reset signal, otherwise your peripherals are not reset.

A single-bit GPIO driven through a pulse widening state machine , with its output tied to the OPB_Rst signal, is one simple way.

John

That would be a hardware reset .. not software :-).... but it depends on what you call a hard reset

Sim> > Jump to the reset vector ?

pseudo-code: disable interrupts jump to address 0 assembly: mts MSR,R0 bra R0

REgrads,

Zara

OK, I'll give you that :) my reading of the question was "how do I initiate a reset from within software".

In Linux land we call it "shutdown -r now"

John

In windoze land .. its called the power switch.. :-)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required