新手,学习FPGA驱动LCD屏是遇到难题,求帮助

2020-01-30 16:35发布

本帖最后由 HEYsir 于 2012-6-26 15:14 编辑

我用VHDL语言写一个LCD屏的内容显示,在max-plusII软件上调试。结果在下面程序段出错:
出错一:

  1. architecture contral of LCD is
  2. ......
  3. type Ram is array(0 to 15) of std_logic_vector(7 downto 0);
  4.    constant MyRamUp:Ram:=(x"46",x"68",x"69",x"73",x"20",x"49",x"73",x"20",x"4d",x"79",x"20",x"46",x"69",x"72",x"73",x"74");
  5.                         --This   Is My First
  6.    constant MyRamDown:Ram:=(x"20",x"20",x"46",x"50",x"47",x"41",x"20",x"50",x"72",x"6f",x"67",x"72",x"61",x"6d",x"20",x"20");
  7.                         --FPGA Program
  8.    signal   LCD_Clk : std_logic :='0';
  9.    signal   datacnt : integer range 0 to 15;
  10. begin
  11. .......
复制代码其中以上代码从27行开始,错误提示为
Error:line 28:File e:fpga:Unsupported feature error:aggregates are supported only for types that map to an array of bits.
本人根本不知道如何解决。百度下发现有我那样应用的带买看到错。有错的,也没有人解决。就看到说好像是软件不支持。求帮助!

出错二:
  1. signal   datacnt : integer range 0 to 15:=1;
复制代码错误提示:VHDL语法错误,expected an integer value.说要一个整数值,试过:=‘1’,但错了!不知道怎么改。目前是投机取巧不赋值。希望得到帮助!

主要是第一个问题,急死人了!!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
9条回答
mr.king
1楼-- · 2020-01-30 19:16
从代码上看正常的
HEYsir
2楼-- · 2020-01-31 00:17
 精彩回答 2  元偷偷看……
ococ
3楼-- · 2020-01-31 03:36
在Q2上试过吗?
HEYsir
4楼-- · 2020-01-31 07:10
4# ococ 没有,没用过Q2,所以也没装
HEYsir
5楼-- · 2020-01-31 09:13
4#ococ 大哥,我把源程序上传了,帮忙看下吧,谢谢了
mr.king
6楼-- · 2020-01-31 09:20
编译你的文件正常没错,ISE编译

一周热门 更多>