Altera_Forum
Honored Contributor
14 years agoPolling or interrupt on a custom module signal???
Hi,
I've design a Nios system in which I insert my custom module interfacing it using the slave MM wrapper. This custom block receives a start command and sends 32 bit data (values from 32 to 126) to Nios II continuously, setting also a ready flag when data is ready. I tried to do polling on this ready flag to know when I could read 32 bit data...but I saw data are wrong without order... Is it possible that when I try to read the data register of my custom module, using the macro (data=IORD(BASE,OFFSET)), its value has changed....???? Could I gain something using interrupt instead of polling??? Regards