Skip to content

Bridging from NVC to Python #1371

@Paebbels

Description

@Paebbels

Some time ago, I wrote a generic VHDL language model pyVHDLModel in Python. This model can be produced (instantiated) by a parser like pyVHDLParser or pyGHDL.dom and it can be consumed by tools wanting to work with VHDL. A consumer could be a VHDLDomain for Sphinx.

I would like to discuss if NVC is interested in a NVC to Python bridge?

If so, I have a few questions:

  • Can NVC be compiled as a shared library (*.so/*.dll/*.dylib)?
  • Is there a list of function and parameter descriptions that can be called from Python?
    In GHDL, a Python script auto generates most of the binding files. Then a decorator is used for interfacing.
    @export
    @BindToLibGHDL("files_map__location_to_file")
    def Location_To_File(Location: LocationType) -> SourceFileEntry:
      """
      Convert :obj:`Location` to a source file.
    
      :param Location: Location
      :return:         Source file. Return ``No_Source_File_Entry`` if location is incorrect.
      """
      return 0  # pragma: no cover
  • Can NVC preserve comments for documentation extraction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions