gpt4 book ai didi

verilog - icarus 的 SystemVerilog 支持(iverilog 编译器)

转载 作者:行者123 更新时间:2023-12-05 00:41:01 60 4
gpt4 key购买 nike

我在 Mac 上使用 iverilog,但在编译一些包含 always_ffalways_comb block 的代码时遇到问题。 ModelSim 编译这些代码没有任何问题。是否可以配置 iverilog 以支持 always_ffalways_comb block ,或者编译器不支持它们?

最佳答案

AndresM 的回答并不完全准确。 Icarus verilog 默认为 IEEE Std 1364-2005,它是更好支持的标准,但可以通过 -g 开关进行更改。来自 man iverilog:

-g1995|-g2001|-g2001-noconfig|-g2005|-g2005-sv|-g2009|-g2012

Select the Verilog language generation to support in the compiler. This selects between IEEE1364-1995, IEEE1364-2001, IEEE1364-2005, IEEE1800-2005, IEEE1800-2009, or IEEE1800-2012. Icarus Verilog currently defaults to the IEEE1364-2005 generation of the language. This flag is used to restrict the language to a set of keywords/features, this allows simulation of older Verilog code that may use newer keywords and for compatibility with other tools. Much of the IEEE1800 generations functionality is not currently supported. The IEEE1800 generations do parse all the keywords, so they can be used to verify that IEEE1364 compliant Verilog code does not use any of the new IEEE1800 keywords.

确实,当您尝试在端口中使用未打包的数组时,它会告诉您:

error: Ports cannot be unpacked arrays. Try enabling SystemVerilog support.

关于verilog - icarus 的 SystemVerilog 支持(iverilog 编译器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43595585/

60 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com