jbush001 / NyuziProcessor

GPGPU microprocessor architecture
Apache License 2.0
2k stars 351 forks source link

Performance counter interrupts #72

Open jbush001 opened 7 years ago

jbush001 commented 7 years ago

Make performance counter have the ability to generate an interrupt when a specific event has occurred some number of times. This allows statistically sampling which routines cause more of that type of event.

There would be a register for the event type, and perhaps one for the interrupt threshold. It would also need a way to reset the counter when the interrupt handler occurred, which could be automatic or driven by software.