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;") |
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
PyObjectwas undefined:All other declarations use
pyhdl_if::PyObject, and locally modifying the generated code made Xcelium happy.I think the offending line is this:
pyhdl-if/src/hdl_if/impl/call/gen_sv_class.py
Line 408 in 4db735a