将 make 与 Verilog 模拟器和 VPI 代码结合使用的最佳实践是什么
我的第一个 VPI 项目已经进入了一些合理的阶段,该项目的目的是 帮助数字滤波器设计。不过目前我正在和伊卡洛斯一起工作 我也想测试 Verilator 和其他模拟器。
到目前为止,我有这个makefile,尽管这是为了构建C代码并且 一个简单的测试平台。我希望能够包含 makefile 并构建/模拟 不同的新 Verilog 项目。
我在网上没有找到太多 HDL 项目的 Makefile 示例。 我对我的实施在某种程度上感到非常满意并且可以继续下去 自己滚动,但希望看到任何组织良好的更大规模 项目。我还没有看过 OpenRISC 中的 Makefiles ...
我真正寻找的一个例子是 VPI testbench 项目,例如你 已经完成了您的 VPI 代码,现在想要围绕它构建一个小型生态系统 使用 Makefile 的层次结构。
假设我们只使用两个模拟器 - Icarus 和 Verilator。
I have go to some reasonable stage with my first VPI project, which is intended
to aid digital filter design. At the moment I was working with Icarus, though
I'd like to test Verilator too and other simulator as some point.
So far I have this makefile, though this is intended to build the C code and
one simple testbench. I'd like to be able to include a makefile and build/simulate
different new Verilog projects.
I haven't found much example of Makefiles for HDL projects on the net.
I'm quite happy with my implementation to some extend and can carry-on
rolling my own, though would like to see any well organised larger scale
projects. I have't yet looked at the Makefiles in OpenRISC ...
An example that I'm really looking for is of VPI testbench project, e.g. you
have done your VPI code and now want to build a small ecosystem around it
using a hierarchy of Makefiles.
Let's say, we are taking just two simulators - Icarus and Verilator.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是一个不同的基本 makefile。在我们的 makefile 中,我们通常有更多的目标,其中还包括综合、par 和模拟。遗憾的是,它们包含非常特定于供应商(Xilinx 和 Synopsys)的内容,这使得它不是很通用。而且我们通常有一个 makefile 的层次结构。我们有一个一般性的、一些模块细节,以及一些特定的子项目(例如内存系统)。
但如果你有兴趣,我在这里发布一个,让你印象一下它的样子:
This seems to be a vary basic makefile. In our makefiles we have usually far more targets which also include the synthesis, par and simulation. Sadly they contain very vendor specific (Xilinx & Synopsys) stuff, which make it not very generic. Also we usually have a hierarchy of makefiles. We have a general, some module specifics, and also some subprojects (e.g. the memorysystem) specific.
But in case you are interrested I post one here, to give you an impression how one could look like: