将库添加到VHDL项目 [英] Adding Library to VHDL Project

查看:125
本文介绍了将库添加到VHDL项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的VHDL项目中使用定点数,但是在实现该库时一直遇到困难(请在此处找到 http://www.eda-stds.org/fphdl/fixed_pkg_c.vhdl ).尝试模拟时收到的错误是

I am trying to use fixed point numbers in my VHDL project, but I keep having trouble implementing the library (found here http://www.eda-stds.org/fphdl/fixed_pkg_c.vhdl). The error I receive when trying to simulate is this

<ufixed> is not declared

我的问题是,应该如何准确地实现一个库以便可以使用它?截至目前,我已将其添加到IEEE_PROPOSED库中的项目中,但无法正常工作.所有源代码都可以在此处找到 https://github.com/srohrer32/beamformer/tree/fixed_num ,位于hdl文件夹和libraries文件夹下.

My question is how exactly should a library be implemented so it can be used? As of now I have added it to the project in the IEEE_PROPOSED library, but it is not working. All source code can be found here https://github.com/srohrer32/beamformer/tree/fixed_num, under the hdl folder and libraries folder.

推荐答案

大概您想做的是在ISE GUI中为 synthesis 模式设置库映射.由于iSim具有自己的管理库映射的系统,因此被iSim完全忽略了.我不是iSim用户,但在查看了文档并进行了一些测试之后,看来最简单的设置库的方法是从命令行进行:

Presumably what you've tried to do is set up the library mapping for synthesis mode in the ISE GUI, which is straightforward but completely ignored by iSim since it has its own system for managing library mappings. I'm not an iSim user but after looking at the documentation and a little testing it looks like the easiest way to set up a library is from the command line:

# This creates an ieee_proposed directory with a partially compiled object.
vhpcomp --work ieee_proposed=ieee_proposed fixed_pkg_c.vhdl

# Add a mapping from the logical library to the physical path.
# *nix shown. Windows would be similar or just use a text editor.
#   <logical name>=<physical path>
echo ieee_proposed=`pwd`/ieee_proposed >> path/to/your/xilinxisim.ini

确保xilinxisim.ini文件对iSim是可见的,并且应选择到已编译库的映射.您应该能够继续从ieee_proposed的父级运行vhpcomp,以将更多文件添加到库中.您可能必须手动复制系统默认版本才能维护标准库映射.

Make sure the xilinxisim.ini file is visible to iSim and it should pick up the mapping to your compiled library. You should be able to keep running vhpcomp from the parent of ieee_proposed to add more files to the library. You may have to manually copy the system default version to maintain the standard library mappings.

这篇关于将库添加到VHDL项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆