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
float
arguments to tasks from Python to a SystemVerilog task that takesreal
arguments.Currently, this is not implemented, or not properly handled (please correct me if I am wrong).
Inside
gen_sv_class.py
the functionspy2sv_func
andsv2py_func
have declared the PyObjects corresponding toctypes.c_double
asreal
. I assume they should be assignedPyFloat_AsDouble
andPyFloat_FromDouble
, respectively.This would probably require tweaking
py_object.svh
andpytf.py
a 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.so
cannot 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