找回密码
 注册
搜索
查看: 876|回复: 1

[讨论] 菜鸟求教 如何定义buffer

[复制链接]
发表于 2006-11-10 19:20:06 | 显示全部楼层 |阅读模式
我是初学者 尝试用VHDL语言生成一个8bit 和一个32bit的buffer  代码如下
type buf_32_t is array(0 to 3) of std_logic_vector(7 downto 0);
signal buf_32 : buf_32_t                       -- buffer
signal buf_8 : std_logic_vector(7 downto 0);
但综合的时候就是通不过  如下
ERROR:HDLParsers:164 - E:/Xilinx/bin/AES/key.vhd Line 34. parse error, unexpected SIGNAL, expecting AFFECT or SEMICOLON
ERROR:HDLParsers:3312 - E:/Xilinx/bin/AES/key.vhd Line 70. Undefined symbol 'buf_8'.
ERROR:HDLParsers:3312 - E:/Xilinx/bin/AES/key.vhd Line 71. Undefined symbol 'buf_32'.
ERROR:HDLParsers:1209 - E:/Xilinx/bin/AES/key.vhd Line 75. buf_8: Undefined symbol (last report in this block)
ERROR:HDLParsers:1209 - E:/Xilinx/bin/AES/key.vhd Line 76. buf_32: Undefined symbol (last report in this block)
请问各位老大这是怎么回事??
发表于 2006-12-18 12:52:16 | 显示全部楼层
signal buf_32 : buf_32_t   后面加个;
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-9-29 18:24 , Processed in 0.045936 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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