Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIssue with polling in Nios
Hi, I've got a custom component that produces some results from time to time, I want Nios processor to monitor the process by polling and whenever a result is produced, it is written to a exter...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- && is a logical AND, I think you are doing a bit mask so I would use one & instead. --- Quote End --- Yes! I new it but confused one & and two & ((( --- Quote Start --- Also I would declare data as a volatile variable to make sure the compiler doesn't attempt to optimize it away. --- Quote End --- I didn't know about this, so I thank You even more! Here I just found an example with volatile variable to be used with polling. It confirms Your words! http://www.seomastering.com/wiki/volatile_variable