Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Non-C DPI-C libraries

未关闭
#97 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
python, rust

调研方向

首先追踪 dvsim 如何将 file_type: cppSource 传递给 Edalize,然后比较 Edalize 在各个 simulator 中对 dpiLibrary 的处理方式。确定如何在仿真开始前运行库构建命令,以及 simulator 如何接收 -sv_lib;使用一个最小的 Rust DPI-C 示例验证该行为。

由索引模型根据 Issue 内容生成。

描述

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!

主要语言
Python
星标
15
派生
22
平均合并
4 天 3 小时
30 天内合并 PR
7

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lowRISC/dvsim 的其他 Issue

查看 lowRISC/dvsim 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。