I heard from some of you that you like the idea of packname:: and
libname.packname::
Since at the moment SystemVerilog does not allow to have a design refer to
different packages
of the same name, we do not need to specify the libname.packname case.
So I think that the revised proposal would be as
In red are deletion, in blue are new text added.
27.10 vpi_get_str()
REPLACE
The VPI routine vpi_get_str() shall return string property values. The
string shall be placed in a temporary
buffer that shall be used by every call to this routine. If the string is to
be used after a subsequent call, the string
should be copied to another location. Note that a different string buffer
shall be used for string values returned
through the s_vpi_value structure.
The following example illustrates the usage of vpi_get_str().
PLI_BYTE8 *str;
vpiHandle mod = vpi_handle_by_name("top.mod1",NULL);
vpi_printf ("Module top.mod1 is an instance of %s\n",
vpi_get_str(vpiDefName, mod));
WITH
The VPI routine vpi_get_str() shall return string property values. The
string shall be placed in a temporary
buffer that shall be used by every call to this routine. If the string is to
be used after a subsequent call, the string
should be copied to another location. Note that a different string buffer
shall be used for string values returned
through the s_vpi_value structure.
The following example illustrates the usage of vpi_get_str().
PLI_BYTE8 *str;
vpiHandle mod = vpi_handle_by_name("top.mod1",NULL);
vpi_printf ("Module top.mod1 is an instance of %s\n",
vpi_get_str(vpiDefName, mod));
vpiFullName for objects that exist within a compilation unit shall begin
with '$unit::' and therefore may be
ambiguous. vpiFullName for a package shall be the name of the package and
should end with "::"; this syntax
disambiguates between a module and a package of the same name.
vpiFullName for objects that exist in a package shall begin with the name of
the package followed by "::". The separator ::
shall only apear between the package name and the immediately following name
component, the . separator shall be
used in all other cases.
27.19 vpi_handle_by_name()
REPLACE
The VPI routine vpi_handle_by_name() shall return a handle to an object with
a specific name. This function
can be applied to all objects with a fullname property. The name can be
hierarchical or simple. If scope is
NULL, then name shall be searched for from the top level of hierarchy. If a
scope object is provided, then
search within that scope only.
WITH
The VPI routine vpi_handle_by_name() shall return a handle to an object with
a specific name. This function
can be applied to all objects with a fullname property. The name can be
hierarchical or simple. If scope is
NULL, then name shall be searched for from the top level of hierarchy. If a
scope object is provided, then
search within that scope only.
The following items shall not be accessible via vpi_handle_by_name():
- Imported items
- objects that exist within a compilation unit
Received on Thu Dec 16 07:41:31 2004
This archive was generated by hypermail 2.1.8 : Thu Dec 16 2004 - 07:41:34 PST