小白求解 MAX PLUS 2运行提示错误。。

[复制链接]
1567|2
 楼主| liuliuqiu051 发表于 2012-12-18 16:17 | 显示全部楼层 |阅读模式
library ieee;
use ieee.std_logic_1164.all;
entity lq123 is
port(
     a   : in  integer range 0 to 15;
     din : in  std_logic_vector(7 downto 0);
     dout: out std_logic_vector(7 downto 0);
          clk,cs,we,ce:in std_logic    );
end entity lq123;
architecture one of lq123 is
type ram_type is array (0 to 15)of std_logic_vector(7 downto 0);
begin
    process(clk,a,din,cs,we,ce)is
      variable mem:ram_type;
begin
if clk'event and clk ='1'then
      dout <=(others => 'Z');
    if cs ='0'then
      if ce='0'then
        dout <= mem(a);
      elsif we='0'then
        mem(a):=din;
      end if;
    end if;
  end if ;
end process;
end one;

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| liuliuqiu051 发表于 2012-12-20 08:21 | 显示全部楼层
自己顶起来
zbhbyc 发表于 2012-12-20 09:32 | 显示全部楼层
maxplus II 的孙子Quqrtus II 都到12.0。a的定义问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

0

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部