【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.