Replies: 1 comment
-
If your uhdm file, is not generated with the same version of uhdm model compile in the python module, it will not work. You can try to reproduce the unitest that use build-in data : https://github.com/chipsalliance/UHDM/blob/master/python/tests/test_module.py You can also re-run the non-regression : UHDM/.github/workflows/main.yml Line 94 in 9a72254 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After generating the surelog.uhdm file I have tried to run the example shown on that
import uhdm
s = uhdm.Serializer()
data = s.Restore('surelog.uhdm')
module_iterator = uhdm.vpi_iterate(uhdm.uhdmallModules,data[0])
while(True):
vpiObj_module = uhdm.vpi_scan(module_iterator)
if vpiObj_module is None:
break
#print the string pointed by vpiName attribut of vpiObj_module
print(uhdm.vpi_get_str(uhdm.vpiName,vpiObj_module))
However a 'None' string is printed. The uhdm file seems to be correctly generated, I have also tried another surelog.uhdm file not generated by me by present here in Github. I might therefore assume that there's something wrong in the way I have installed the Python API (even tough though at least functions are called without problems).
After the build I have placed the _py_uhdm.so and uhdm.py files into the python3 distribution packages
import uhdm works correctly but there's something I am missing
Beta Was this translation helpful? Give feedback.
All reactions