【VHDL ERROR】Actual for formal port a is neither a static name nor a globally static expression

在2002版本的VHDL中,除了类型转换外,不允许在端口映射(port map)时调用函数。

可以将语言版本更新到VHDL 2008,就不再有这个限制。

 

In VHDL up to 2002, it was illegal to have a function call in a port map, other than a type conversion.

In VHDL 2008, this limit no longer applies. So change the language version to VHDL 2008 and there is no error.
posted @ 2022-06-23 22:14  AnchorX  阅读(731)  评论(0编辑  收藏  举报