Altera_Forum
Honored Contributor
12 years agoNios II has no sleep/idle/wfi instruction?
My software is event driven, the idle time is spent in a loop polling for new entries in a message queue, which get filled in by my ISRs.
With other controllers, this is the perfect place for a sleep instruction, since any new activity is caused by an external interrupt and would wake up the core. With Nios, I'm missing such instruction. (Luckily my system has a cache, otherwise the core wouldn't stop driving the bus unnecessarily. It would better left free for other masters, plus it creates EMI / needs power.) Is this the way it has to be, or is it e.g. possible to create a custom sleep instruction, or any other common solution? Sorry if this should be RTFM, I've searched without success. Jörg