Verification Interfaces
Categories:
Generated Library Files
Picker can specify the target language for conversion using the --lang
parameter (supported values: cpp, python, java, lua, scala, golang). Since different programming languages use different types of “libraries,” the generated files will vary. For example, Java produces a JAR package, while Python generates a directory. Exporting a library for a specific language with picker requires xcomm support. You can check support status with picker --check
:
A status of “success” means supported, while “fail” means not supported.
C++
For C++, picker generates a shared object (.so
) dynamic library and the corresponding header files. For example:
When using, set the LD path, then #include UT_Adder.hpp
in your test code.
Python
For Python, picker generates a directory (Python modules are represented as directories):
After setting the PYTHONPATH, you can import UT_Adder
in your test code.
Java/Scala
For Java and Scala (JVM-based languages), picker generates the corresponding JAR packages.
Go
For Go, picker generates a directory (similar to Python):
After setting the GOPATH, you can directly import the package.
Verification Interfaces
For DUT verification interfaces, refer to: https://github.com/XS-MLVP/picker/blob/master/doc/API.zh.md
For xspcomm library interfaces, refer to: https://github.com/XS-MLVP/xcomm/blob/master/docs/APIs.cn.md