Forum Discussion
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)...
Altera_Forum
Honored Contributor
14 years agoI tried to insert a "go" input signal in my custom block. When a 32bit data is ready, custom block sets "ready" signal to '1' and waits without sending other data until nios II polling on this "ready signal" and asserts "go" signal to '1' when it finishes to read 32bit data from custom block. So custom block sets "ready" signal to '0' and re-begins to send another 32bit data and so on.
In this way I succeed in getting my correct data....but I think this is an inefficient procedure....as regards data rate, and cpu performance... Regards