Subject: Interrupts for IO
From: Kevin Cameron (Kevin.Cameron@nsc.com)
Date: Tue Dec 17 2002 - 10:49:07 PST
I was wondering if anyone else is interested in interrupt handling? I would
like to be able to signal the simulator with an interrupt and turn that into
an event.
The reason for wanting this functionality is that calls to C which read descriptors
can block indefinitely, so it's preferable to do such calls on interrupt when data
is available (indicated by a SIGIO interrupt).
I think the easy way to do it is to handle the interrupt in user C code and then
use PLI/VPI to trigger an event in SV, the problem is that some calls have to
be guaranteed to be MT-safe.
Is there a PLI/VPI call to trigger an event? (I don't have the manuals handy)
Kev.
-- National Semiconductor, Tel: (408) 721 3251 2900 Semiconductor Drive, Mail Stop D3-500, Santa Clara, CA 95052-8090
This archive was generated by hypermail 2b28 : Tue Dec 17 2002 - 10:49:06 PST