Skip to content

Xcelium is not happy with real data types #31

@joecrop

Description

@joecrop

When trying to work with real values, for example:

@hif.api
class TbInitiator(object):
    @hif.imp
    async def setv(self, voltage: ctypes.c_double):
        pass

The c_double type gets resolved to real in systemverilog and the 'real' keyword is used in some decorations. Xcelium is bombing on this, I think, because 'real' is a reserved keyword. If I use a datatype other than real, I no longer get the compilation error.

               real __voltage = pyhdl_if::real(pyhdl_if::PyTuple_GetItem(args, 0));
                                              |
xmvlog: *E,ILLPREF (hdl_call_if_api.svh,74|46): Illegal syntax for a package reference name (real).

Can the library be changed to use a different keyword that is not reserved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions