[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: VPI in Icarus Verilog




mjarabek@istop.com said:
> 1) When a callback is registered using vpi_register_cb() who allocates/
> owns the memory pointed to by the argument?  The Verilog-1995 standard
> is not clear on this point, except to say that when the callback is
> called the pointer to the cb_data structure is not a pointer to the
> same structure as was passed to the vpi_register_cb() function.

The simulator allocates and manages that memory. It automatically
releases it when the callback memory is no longer needed.


mjarabek@istop.com said:
> 2) Callbacks only seem to happen once, yet the standard implies that
> once a callback has been installed it keeps getting called.

Could I have got that all wrong? I'll have to research this.


mjarabek@istop.com said:
>  I added a call to `dlerror()' and discovered the real error. 

I have the same problem. I'd gladly apply a patch to fix this:-)

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
steve at picturel.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

abuse@xo.com
uce@ftc.gov