集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 1995|回复: 2

请教vhdl中关于type的问题

[复制链接]
ANG 发表于 2010-6-27 22:05:48 | 显示全部楼层 |阅读模式
本帖最后由 fpgaw 于 2010-7-18 13:30 编辑

有没有哪位大侠对vhdl中的type有深入研究?我想知道type放的位置,因为我写了一个这样的东西:
constant length : integer := 36;
type index_rom is array(0 to length -1) of integer;
constant index : index_rom :=
    (0,12,24,4,16,28,8,20,32,
     1,13,25,5,17,29,9,21,33,
     2,14,26,6,18,30,10,22,34,
     3,15,27,7,19,31,11,23,35
     );
用debussy load的时候总是报错:Type error resolving infix expression.
                   Type conflict in expression.
usb 发表于 2010-6-27 23:18:13 | 显示全部楼层
对不起各位,我自己弄好了,是因为我在内部调用的时候取rom表中数据时给出的地址不是integer型造成的。<br>
给各位添麻烦了
Sunlife 发表于 2015-6-28 10:21:38 | 显示全部楼层
      厉害 厉害
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|fpga论坛|fpga设计论坛 ( 京ICP备20003123号-1 )

GMT+8, 2025-5-6 16:49 , Processed in 0.058585 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表