Skip to content

Non-C DPI-C libraries #97

@Timmmm

Description

@Timmmm

If I'm not mistaken, dvsim supports building DPI-C libraries by adding files with file_type: cppSource (example here).

To be honest I couldn't follow the labyrinth of Python packages to the place that actually takes effect (in Edalize?) so I'm not 100% sure how it works...

Anyway I would like to use a DPI-C library that isn't written in C (in Rust specifically). So I need to:

  1. Run a build command automatically.
  2. Add the -sv_lib foo.so (or whatever) to the simulator command.

Is that possible? I did find that Edalize supports file_type: dpiLibrary, but only for Xcelium??. So maybe that just needs to be extended to other simulators... and then how would you run the actual library build command before running the simulation?

Any help appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions