Bits access of variables

A

Anton Ng

Guest
Hi All,

I am currently trying to use the Verilog PLI either 1.0 or the VPI
version.

I will need to get the bits value out of a variable. But unfortunately
so far all my attempts have failed.

There is a small note in the IEEE 1364-2001 Verilog language
specification page 642.

"The VPI does not provide access to bits of variables. If a handle to
bit select of a variable is obtained, the object shall be vpiBitSelect
in the simple expression class. The variable containing the bit can be
accessed using vpiParent."

So it does say that VPI cannot be used to access bits of variables.
However it also says that bit select of a variable can be obtains. It is
very contradicting. Anyway, just wondering if anyone has successfully
try to access bit select of an integer variable using acc_ or vpi_
functions in PLI?

Any help or comments would be very appreciated.

Best Rgds,
Anton
 

Welcome to EDABoard.com

Sponsor

Back
Top