Patent ID: 7058562

Claim:
An apparatus for performing event processing in a mixed-language simulator, the mixed-language simulator utilizing at least one model written in a source code language and at least one model written in a hardware description language (HDL), said at least one source code model and said at least one HDL model being interfaced by source-code-to-HDL-interface code, the apparatus comprising: logic for generating a list of actions to be performed for a given trigger event occurrence and for attempting to process at least some of the listed actions in a source-code-to-HDL-interface domain before performing, for the trigger event occurrence, a context switch from the source-code-to-HDL-interface domain to a source code model domain, the HDL model domain corresponding to execution of said at least one model written in the HDL, the source code model domain corresponding to execution of said at least one model written in the source code language, and the source-code-to-HDL-interface domain corresponding to execution of the source-code-to-HDL-interface code, and wherein by generating said list of actions and attempting to perform at least some of the actions before the context switch is performed, an amount of context switching between the HDL model domain and the source code and interface domains performed during simulation is reduced.