Re: ISSUE:DirectC:DirectC i/f should support mechanism for calling Verilog task/function from a DirectC application


Subject: Re: ISSUE:DirectC:DirectC i/f should support mechanism for calling Verilog task/function from a DirectC application
From: Stickley, John (john_stickley@mentorg.com)
Date: Wed Oct 23 2002 - 09:40:19 PDT


Swapnajit,

For the record, I happen to agree with you here. In the experience
we've
had it makes most sense to keep function calls 0-time in either
direction.

For the DirectC interface I also, would encourage us to restrict non-0
time consumption to C-modules only.

BTW, I also have some proposals for how we might handle instance
specific
function calls as well. I also have suggestions for syntax and handling
of
calls in the C-to-HDL direction. You can expect to see that shortly.

-- johnS

Swapnajit Mittra wrote:

 On Mon, 21 Oct 2002 17:30:56 -0700 "Warmke, Doug" <
doug_warmke@mentorg.com <mailto:doug_warmke@mentorg.com> > writes:

Swapnajit,Some brief comments on your proposal.
We can discuss more at the appropriate time in the meeting or in email.

>
> o If an external C function calls a Verilog task, no
> simulation time must elapse during the execution of that task.
> (This is, because a C function in DirectC is a zero-time event).
> However, no such restriction shall be in place when a Verilog
> task is called from a cmodule.
>

I think this is overly restrictive. It will not work out well if
some implementations want to directly integrate C models
living in a threaded environment (e.g. TestBuilder, SystemC)
together with HDL models. Let's keep an open mind
about making large scale changes to DirectC.

   Doug, I understand your concern. But, can not these C models be
written as cmodules (or be embedded within cmodules) ? I think (Joao,
correct me if I am wrong) a DirectC external C function and a cmodule
to some sense are analogous to a Verilog function and task
respectively. External C functions are 0-time activities whereas
cmodules are not. I would not mind if we change that proposition
(that DirectC external C functions should be 0-time activity), but my
concerns there are: o Whether that will break any other basic
structure of the whole scheme. o Whether we have sufficient time to
undertake this type of fundamental changes. Personally I think we
should rather be late than producing things that are half cooked, but
I know we are working under some tight schedule here.

-- 
Swapnajit Mittra 
Project VeriPage ::: http://www.angelfire.com/ca/verilog
<http://www.angelfire.com/ca/verilog> 

--

This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. __ ______ | \ ______________________/ \__ / \ \ H Dome ___/ | John Stickley E | a __ ___/ / \____ Principal Engineer l | l | \ / Verification Solutions Group | f | \/ ____ Mentor Graphics Corp. - MED C \ -- / / 17 E. Cedar Place a \ __/ / / Ramsey, NJ 07446 p | / ___/ | / / mailto:John_Stickley@mentor.com <mailto:John_Stickley@mentor.com> \ / Phone: (201)818-2585 \ / ---------



This archive was generated by hypermail 2b28 : Wed Oct 23 2002 - 09:47:33 PDT