Hello,

I've been playing around some more and abused our camera remote display
server for YUV output from VHDL, see screenshot below.

http://tech.section5.ch/news/?p=130

Updated snapshot of the source is here, it needed quite a few fixes on
the FIFO code:

http://section5.ch/downloads/ghdlex-0.01eval.tgz

Now a few questions to the experienced ADA/VHDL developers:
Currently, I am acquiring a device handle as a VHDL integer and maintain
static pointer tables on the C side for the context pointers of the
devices that are accessed. The VHDL device handle is just used as an
index to address the real handle (i.e. context pointer).
This is not too beautiful. I have tried using access types instead
integers (to deal with true pointers), but they again are not allowed in
functions. So the API below (currently using integer handles) would no
longer work:

function device_set_int(h: netpphandle_t; t: token_t; v: integer)
                return integer;

Does someone have an idea/suggestion how to cover this?
Actually i only need functions to deal with error return codes. They
could be turned into procedures, but having an error code as return
would match the current API better.

Is there any other way, to just pass an anonymous handle around in VHDL?

Cheers,

- Martin

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to