olofk / edalize

An abstraction library for interfacing EDA tools
BSD 2-Clause "Simplified" License
621 stars 183 forks source link

Add xsim DPI support #166

Open GCHQDeveloper560 opened 4 years ago

GCHQDeveloper560 commented 4 years ago

Xilinx's Vivado simulator supports DPI, though it doesn't seem to support VPI. The flow seems to be just like the Icarus VPI flow, with the xsc tool used to compile the library like iverilog-vpi and the xelab -sv_dpi <lib name> switch added to point to the libraries.

It seems like adding this using the existing VPI path would be straightforward even if the name isn't quite right. Does this make sense? Have any other tools added DPI support and if so did they reuse this path as well?

olofk commented 4 years ago

We have been talking about DPI support for along time and I know that @imphil among other are interested in this. I don't have that much hands-on experience with DPI but I want to make sure we get this right. VPI support has some shortcomings and I want to make sure we don't repeat any mistakes