Forum Discussion

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

Nios Halt

Hi. Is ther a way to Halt NIOS processor with user instruction and wait till for examle uart interrupt will wake CPU up.

I am trying to prevent any bus activity during sencitive analog mesurment.

Thanks Sergey.

2 Replies

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

    You can create a multi-cycle custom instruction that stalls until an interrupt arrives. This will stall the entire Nios II pipeline and will eventually stop all activity. It doesn't stop immediately when you stall the pipeline because it might still be finishing pending cache line transfers (an I-cache fill or a D-cache writeback of a line).

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

    --- Quote Start ---

    originally posted by james@Apr 27 2006, 11:45 PM

    you can create a multi-cycle custom instruction that stalls until an interrupt arrives. this will stall the entire nios ii pipeline and will eventually stop all activity. it doesn't stop immediately when you stall the pipeline because it might still be finishing pending cache line transfers (an i-cache fill or a d-cache writeback of a line).

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14795)

    --- quote end ---

    --- Quote End ---

    Thank you very much for the idia. This is new to me . How do i go about it.

    Sergey