Replies: 1 comment 4 replies
-
|
Hi Ali, -Matthew |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Matthew,
I am currently tweaking with pyhdl-if and would like to contribute in a way.
I want to pass
floatarguments to tasks from Python to a SystemVerilog task that takesrealarguments.Currently, this is not implemented, or not properly handled (please correct me if I am wrong).
Inside
gen_sv_class.pythe functionspy2sv_funcandsv2py_funchave declared the PyObjects corresponding toctypes.c_doubleasreal. I assume they should be assignedPyFloat_AsDoubleandPyFloat_FromDouble, respectively.This would probably require tweaking
py_object.svhandpytf.pya small bit.Until now, I have installed pyhdl-if using PyPi and it worked perfectly.
Now, I have cloned the repo and installed it locally, but cannot run my Python testbenches because the shared library
libpyhdl_if.socannot be found when runningPYTHONPATH=$(pwd) make.Can you help me run testbenches from a local pyhdl-if? I would like to try and implement passing the float arguments and test it if you don't mind ;)
Appreciate the help!
Beta Was this translation helpful? Give feedback.
All reactions