├── .buildkite └── ci.yml ├── .github └── workflows │ └── linux.yml ├── .gitignore ├── .gitmodules ├── .readthedocs.yaml ├── CHANGELOG.md ├── LICENSE ├── README.rst ├── conftest.py ├── docs ├── .gitignore ├── Makefile ├── advanced │ ├── internal.rst │ ├── oop.rst │ ├── systemverilog.rst │ └── verilator.rst ├── basics.rst ├── conf.py ├── index.rst └── install.rst ├── pysv ├── CMakeLists.txt ├── __init__.py ├── codegen.py ├── compile.py ├── frame.py ├── function.py ├── model.py ├── pyast.py ├── snippets │ ├── buffer_impl.cc │ ├── call_class_func.cc │ ├── check_interpreter.cc │ ├── create_class_func.cc │ ├── cxx_object_base.cc │ ├── finalize_runtime.cc │ ├── get_local_object.cc │ ├── import_global.cc │ ├── include_header.hh │ ├── initialize_guard.cc │ ├── load_class_defs.cc │ ├── pysv_object_base.sv │ ├── runtime_values.cc │ └── sys_path.cc ├── types.py └── util.py ├── setup.py └── tests ├── gold ├── test_generate_cxx_binding.cc ├── test_generate_cxx_code.cc ├── test_generate_cxx_code_class.cc ├── test_generate_cxx_function.cc ├── test_generate_dpi_header.sv └── test_generate_sv_binding.sv ├── test_codegen.py ├── test_compile.py ├── test_function.py ├── test_model.py ├── test_sim.py ├── test_util.py └── vectors ├── box_filter.sv ├── test_export_dpi.sv ├── test_sv_boxfilter.sv ├── test_sv_object_funcs.sv ├── test_sv_object_funcs_2.sv ├── test_sv_return_reference.sv ├── test_tensorflow.sv ├── test_verilator_array.cc ├── test_verilator_array.sv ├── test_verilator_boxfilter.cc ├── test_verilator_return_ref.cc └── test_verilator_return_ref.sv /.buildkite/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/.buildkite/ci.yml -------------------------------------------------------------------------------- /.github/workflows/linux.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/.github/workflows/linux.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/.gitmodules -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/LICENSE -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/README.rst -------------------------------------------------------------------------------- /conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/conftest.py -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | _build 2 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/advanced/internal.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/advanced/internal.rst -------------------------------------------------------------------------------- /docs/advanced/oop.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/advanced/oop.rst -------------------------------------------------------------------------------- /docs/advanced/systemverilog.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/advanced/systemverilog.rst -------------------------------------------------------------------------------- /docs/advanced/verilator.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/advanced/verilator.rst -------------------------------------------------------------------------------- /docs/basics.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/basics.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/install.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/docs/install.rst -------------------------------------------------------------------------------- /pysv/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/CMakeLists.txt -------------------------------------------------------------------------------- /pysv/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/__init__.py -------------------------------------------------------------------------------- /pysv/codegen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/codegen.py -------------------------------------------------------------------------------- /pysv/compile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/compile.py -------------------------------------------------------------------------------- /pysv/frame.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/frame.py -------------------------------------------------------------------------------- /pysv/function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/function.py -------------------------------------------------------------------------------- /pysv/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/model.py -------------------------------------------------------------------------------- /pysv/pyast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/pyast.py -------------------------------------------------------------------------------- /pysv/snippets/buffer_impl.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/buffer_impl.cc -------------------------------------------------------------------------------- /pysv/snippets/call_class_func.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/call_class_func.cc -------------------------------------------------------------------------------- /pysv/snippets/check_interpreter.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/check_interpreter.cc -------------------------------------------------------------------------------- /pysv/snippets/create_class_func.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/create_class_func.cc -------------------------------------------------------------------------------- /pysv/snippets/cxx_object_base.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/cxx_object_base.cc -------------------------------------------------------------------------------- /pysv/snippets/finalize_runtime.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/finalize_runtime.cc -------------------------------------------------------------------------------- /pysv/snippets/get_local_object.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/get_local_object.cc -------------------------------------------------------------------------------- /pysv/snippets/import_global.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/import_global.cc -------------------------------------------------------------------------------- /pysv/snippets/include_header.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/include_header.hh -------------------------------------------------------------------------------- /pysv/snippets/initialize_guard.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/initialize_guard.cc -------------------------------------------------------------------------------- /pysv/snippets/load_class_defs.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/load_class_defs.cc -------------------------------------------------------------------------------- /pysv/snippets/pysv_object_base.sv: -------------------------------------------------------------------------------- 1 | class PySVObject; 2 | chandle pysv_ptr; 3 | endclass -------------------------------------------------------------------------------- /pysv/snippets/runtime_values.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/runtime_values.cc -------------------------------------------------------------------------------- /pysv/snippets/sys_path.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/snippets/sys_path.cc -------------------------------------------------------------------------------- /pysv/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/types.py -------------------------------------------------------------------------------- /pysv/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/pysv/util.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/setup.py -------------------------------------------------------------------------------- /tests/gold/test_generate_cxx_binding.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/gold/test_generate_cxx_binding.cc -------------------------------------------------------------------------------- /tests/gold/test_generate_cxx_code.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/gold/test_generate_cxx_code.cc -------------------------------------------------------------------------------- /tests/gold/test_generate_cxx_code_class.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/gold/test_generate_cxx_code_class.cc -------------------------------------------------------------------------------- /tests/gold/test_generate_cxx_function.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/gold/test_generate_cxx_function.cc -------------------------------------------------------------------------------- /tests/gold/test_generate_dpi_header.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/gold/test_generate_dpi_header.sv -------------------------------------------------------------------------------- /tests/gold/test_generate_sv_binding.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/gold/test_generate_sv_binding.sv -------------------------------------------------------------------------------- /tests/test_codegen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/test_codegen.py -------------------------------------------------------------------------------- /tests/test_compile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/test_compile.py -------------------------------------------------------------------------------- /tests/test_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/test_function.py -------------------------------------------------------------------------------- /tests/test_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/test_model.py -------------------------------------------------------------------------------- /tests/test_sim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/test_sim.py -------------------------------------------------------------------------------- /tests/test_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/test_util.py -------------------------------------------------------------------------------- /tests/vectors/box_filter.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/box_filter.sv -------------------------------------------------------------------------------- /tests/vectors/test_export_dpi.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_export_dpi.sv -------------------------------------------------------------------------------- /tests/vectors/test_sv_boxfilter.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_sv_boxfilter.sv -------------------------------------------------------------------------------- /tests/vectors/test_sv_object_funcs.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_sv_object_funcs.sv -------------------------------------------------------------------------------- /tests/vectors/test_sv_object_funcs_2.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_sv_object_funcs_2.sv -------------------------------------------------------------------------------- /tests/vectors/test_sv_return_reference.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_sv_return_reference.sv -------------------------------------------------------------------------------- /tests/vectors/test_tensorflow.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_tensorflow.sv -------------------------------------------------------------------------------- /tests/vectors/test_verilator_array.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_verilator_array.cc -------------------------------------------------------------------------------- /tests/vectors/test_verilator_array.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_verilator_array.sv -------------------------------------------------------------------------------- /tests/vectors/test_verilator_boxfilter.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_verilator_boxfilter.cc -------------------------------------------------------------------------------- /tests/vectors/test_verilator_return_ref.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_verilator_return_ref.cc -------------------------------------------------------------------------------- /tests/vectors/test_verilator_return_ref.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kuree/pysv/HEAD/tests/vectors/test_verilator_return_ref.sv --------------------------------------------------------------------------------