Site icon Hardware Design and Verification

Difference between interrupt and exception in computer architecture ?

Exceptions and interrupts are unexpected events that disrupt the normal flow of instruction execution, when it occurs following things happens

To return from a handler, your processor may perform the following actions:

Still have some differences, lets see that

 

1. Interrupt9 (devices like the hard disk, graphics card, I/O ports, etc). is an as asynchronous event that is normally generated by hardware( devices like the hard disk, graphics card, I/O ports, etc) not in sync with processor instruction execution where Exceptions are synchronous events generated when processor detects any predefined condition(overflow, underflow, nan) while executing instructions.

2. Interrupts are handled by the processor after finishing the current instruction, exceptions on the other hand are divided into three kinds.

Exit mobile version