Skip to content

Non-namespaced use of PyObject in generated .svh #37

@martinpriestley

Description

@martinpriestley

I have had a quick go at reproducing the example code: https://fvutils.github.io/pyhdl-if/sv_api.html#complete-working-example
Using Cadence Xcelium simulator.

When compiling, it complained that PyObject was undefined:

file: counter.sv
    PyObject m_obj;
           |
xmvlog: *E,NOIPRT (counter_api.svh,79|11): Unrecognized declaration 'PyObject' of unknown type, which could be because of an unsupported keyword, a spelling mistake, non-visible type, or missing instance port list '()' [SystemVerilog].

All other declarations use pyhdl_if::PyObject, and locally modifying the generated code made Xcelium happy.

I think the offending line is this:

self.println("PyObject m_obj;")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions