Subject: Re: ISSUE:DirectC:DirectC i/f should support mechanism for calling Verilog task/function from a DirectC application
From: Michael McNamara (mac@verisity.com)
Date: Wed Oct 23 2002 - 10:24:27 PDT
Kevin Cameron x3251 writes:
> The issue of elapsed time has to do with saving the C routine's
> call-stack i.e. if you call any C routine from the simulator kernel
> then you (usually) have to return from that routine to continue
> simulating. If the C routine calls a task that suspends it cannot
> return. The work-around is to not use the CPU stack for saving
> context (cmodule?) or use multiple stacks (which is usually very
> ineffecient because of the CPU context switching overhead [SystemC?]).
>
> That's why it's better to write your functions in SV rather than
> calling external C routines :-)
>
Well said.
-mac
This archive was generated by hypermail 2b28 : Wed Oct 23 2002 - 10:28:09 PDT