zhemao / interrupt_example

An example of how to use Avalon interrupts on the Cyclone V FPGA
13 stars 8 forks source link

Interrupt #3

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi Howard,

What's the difference between what you are doing here and polling? You are going through the loop and constantly checking for the value in the file.

Can this really be considered as interrupt subroutine?

Thanks,

Jack

zhemao commented 9 years ago

The read will block until an interrupt occurs. If I was polling, it would return immediately.