几个月以来,我一直在使用 ghdl 进行学习。
现在我被迫使用 windows 并尝试在那里也使用 ghdl 和 gtkwave。
我的问题是:在我安装了 ghdl 之后,我试图编译一些代码。与:
ghdl -a aa.vhdl
ghdl -a bb.vhdl
...
ghdl -e test
与我在 Linux 中使用的相同。
但除了 work-obj93.cf 之外,它不会产生 ant 输出
如果我列出
ghdl -d
一切似乎都很好。所有执行都没有任何错误消息,但我没有得到二进制文件或任何东西。
最佳答案
参见 ghdl 用户指南 3.1.2 Elaboration command
On GNU/Linux the elaboration command creates an executable containing the code of the VHDL sources, the elaboration code and simulation code to execute a design hierarchy. On Windows this command elaborates the design but does not generate anything.
...
The actual elaboration is performed at runtime.
On Windows this command can be skipped because it is also done by the run command.
另见 1.3 What is GHDL? :
The Windows(TM) version of GHDL is not based on GCC but on an internal code generator.
称为 mcode 的内部代码生成器版本将可执行代码生成为内存数组,但不生成目标文件。没有优化,也没有可能链接到外部目标代码。
关于windows - ghdl 不生成二进制文件 (windows),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16515818/