verilog modelsim FPGA

发布于 2024-08-21 13:10:23 字数 172 浏览 15 评论 0 原文

很抱歉提出新问题。

我正在尝试学习FPGA编程。

在我花 1000 美元购买 FPGA 板之前:

如果我只想学习 Verilog,我可以完全在 Modelsim 中运行它吗? (我意识到有一些时序问题只出现在实际芯片中;但是为了学习语法/编码风格/...)_

谢谢!

Sorry for Newbish question.

I am trying to learn about FPGA programming.

Before I spend $1K on a FPGA board:

if I just want to learn Verilog, can I run it entirely in Modelsim? (I realize there are some timing issues that only show up in actual chips; but for learning syntax / style of coding / ...)_

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

临风闻羌笛 2024-08-28 13:10:24

你当然可以!

然而,有些事情模拟器可以让您摆脱,而 FPGA 编译器则不会。为 verilog 编码风格综合 等关键字设置 $FAVOURITE_SEARCH_ENGINE。

有关 HDL 编程和计算机编程之间差异的一些信息,请参阅学习 Verilog 的资源

You can of course!

However, there are a few things that a simulator will let you away with that the FPGA compiler will not. Have a $FAVOURITE_SEARCH_ENGINE around for keywords like verilog coding styles synthesis.

See Resources for learning Verilog for some info on the differences between HDL programming and computer programming.

慕烟庭风 2024-08-28 13:10:24

如果您对学习语言和模拟结果感到满意,那么您绝对不需要需要在开发板上投入大量资金。

您可以获取免费的 Xilinx ISE Webpack,其中包含 ModelSim 的基本版本。

正如您所提到的,仿真和测试平台是 FPGA 设计的一方面。实际上让设计在真实硬件上运行通常是更具挑战性的部分。然而,只需使用软件,您就可以学习该语言,掌握模拟,甚至综合您的设计,以确保它满足时序要求并适合目标设备。

我还建议您的第一块开发板 1000 美元相当高。我会从 低成本 Xilinx Spartan-6 之类的东西开始板,不到 300 美元。为此,您将获得具有相当数量的逻辑、内存和 DSP 片的设备。

You most definitely don't need to splashout on a dev board if you are happy with just learning the language and simulating the results.

You can get the free Xilinx ISE Webpack which includes a basic version of ModelSim.

As you have mentioned simulation and testbenching is one aspect of FPGA design. Actually getting a design to work on real hardware is usually the more challenging part. However, just using software you can learn the language, get to grips with simulation and even synthesize your design to make sure it will meet timing and fit on a target device.

I would also suggest that $1K for your first dev board is quite high. I would start with something like the low-cost Xilinx Spartan-6 board, which is a tad under $300. You'll get a device with a decent amount of logic, memory and DSP slices for that.

夜吻♂芭芘 2024-08-28 13:10:24

如果您想学习 Verilog,则无需实际购买 FPGA 板(不过,您可以获得 FPGA 开发板的价格远低于 1000 美元 - 您可以花 100 美元购买 Xilinx 的套件)。您可以而且应该首先使用模拟器学习 Verilog,不过如果您不想花任何钱,我建议 Icarus Verilog 是免费的(开源)。

If you're trying to learn Verilog there's no need to actually get an FPGA board (though, you can get FPGA development boards for much less than $1000 - you can get Xilinx's kit for $100). You can and should first learn Verilog using a simulator, though if you don't want to spend anything I'd suggest Icarus Verilog which is free (Open Source).

岁月苍老的讽刺 2024-08-28 13:10:24

我们有一门硬件系统课程,其中一些 FPGA 编程是使用 VHDL 完成的。我下载了 ModelSim-Altera 软件(入门版 此处提供)

我们的实验室中有 FPGA 板,因此很容易实际看到您的模型的行为。对于您的情况,我建议:

  1. 开始对加法器、解码器等基本电路进行建模。在 ModelSim 中,您还可以创建和配置(不同信号的频率等特性)测试台来验证(使用时序图)您的模型。开始

  2. 一旦您对语法和建模充满信心,您就可以在周围寻找一个可以让您亲自动手的实验室。

    一旦

我希望这有帮助。

干杯

We had a hardware systems course in which some FPGA programming was done using VHDL. I downloaded ModelSim-Altera Software (starter edition available here)

We had FPGA boards in our lab, so it was easy to actually see your model behave. In your case, I would suggest:

  1. Start modeling basic circuits like adder, decoders etc. In ModelSim you can also create and configure(characteristics like frequency of different signals) a test bench to verify (using timing diagrams) your model.

  2. Once you are confident with the syntax and modeling, you can look for a lab around you which will allow you to get your hands dirty.

I hope this helps.

cheers

薯片软お妹 2024-08-28 13:10:24

正如其他人所指出的,模拟器会让你走得很远。不过,没有什么比真正的 LED 闪烁更美妙的了 - 屏幕上的摆动波形并不相同:)

许多入门套件都有 VGA 输出,因此您可以显示自己的图片,这总是令人欣慰的(我已经无论如何都找到了!) 1000 美元是一笔很大的花费,试试这个 Xilinx 入门套件 售价 189 美元(有 VGA),或者这个 Altera 入门套件(没有)。

As others have noted, a simulator will get you a long way. There's nothing quite like flashing some real LEDs on and off though - wiggly waveforms on a screen just aren't the same :)

Many of the starter kits have VGA outputs so you can display your own pictures, which is always gratifying (I've found anyway!) $1000 is a lot to spend, try this Xilinx starter kit for $189 (which does have VGA), or this Altera starter kit (which doesn't).

悸初 2024-08-28 13:10:24

楼上各位都说得对。然而,Verilog 和 VDHL 有一个可综合的子集可用于实际硬件。例如不能使用$display。正如@Chiggs 在下面指出的那样,某些工具可能支持递归。如果代码将在芯片中使用,那么在编写代码时请记住这一点。然而,完整的语言可以在测试台中使用。

Everyone above is right. However there is a synthesizable subset of Verilog and VDHL that can be used for actual hardware. For example $display can't be used. Recursion may be supported in some tools, as @Chiggs pointed out below. Keep that in mind when writing your code if it will ever be used in a chip. However the full language can be used in test benches.

烂人 2024-08-28 13:10:24

没有人提到www.edaplayground.com来学习SystemVerilog和/或VHDL。来自主要供应商的 100% 免费版本的行业标准仿真工具。在云端运行。没什么可下载的。需要电子邮件才能注册。不要把你的雇主代码放在那里;它在别人的计算机上。 edaplaygroud 网站上有示例设计。其他网站有在 edaplayground 上运行的代码示例,因此您可以通过单击一个按钮来运行它们的代码示例作为学习课程。 verilog 示例列表如下: https://verificationguide.com/verilog-examples/

已经说过 FPGA 和 FPGA 有以下几个方面:您不会在仿真流程中学习 ASIC 设计,特别是那些相关的物理实现,但您可以从这种方法中学到很多东西,而且成本非常低(他们想要您的电子邮件)。

话虽如此,edaplaygroud 也有一个综合工具。

No one mentioned www.edaplayground.com to learn SystemVerilog and/or VHDL. 100% free versions of the industry standard tools for simulation from the major vendors. Runs in the cloud. Nothing to download. Need email to register. Don't put your employers code up there; its on someone else's computer. There are example designs on the edaplaygroud site itself. Other sites have code examples that run on edaplayground, so you can run their code examples as a learning lesson by clicking one button. A list of verilog examples here: https://verificationguide.com/verilog-examples/

As others have stated there are aspects of FPGA & ASIC design that you will not learn in the simulation flow, specifically those related physical implementation but you can learn a lot from this approach, and it is very low cost (they want your email).

That being said edaplaygroud also has a synthesis tool.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文