VPI question

J

Jonathan Bromley

Guest
hi folks,

any VPI gurus out there? The LRM documents things pretty
well, but sometimes there's a "how do I do that" that can't
be easily answered...

I have gotten a VPI object handle to some thing that I
*hope* is a net or variable of integral type (using the
strict LRM definition of "integral type", i.e. a
vector of bit or logic/reg, or a packed struct or array,
or an integer... you know the deal). I would like to
ask the VPI whether it really is of integral type.

Is there a simple VPI query I can use to discover this?
Right now I obtain vpi_get(vpiType, myHandle) and then
painfully look to see whether it's one of the (very
numerous) vpiType constants that is appropriate for
a thing of integral type. Clumsy, and brittle if the
language changes to add new kinds of things that are
also of intgral type.

Thanks in advance
--
Jonathan Bromley
 

Welcome to EDABoard.com

Sponsor

Back
Top