集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 1359|回复: 0

快来看看啊,有高手嘛,帮帮忙

[复制链接]
谢修森 发表于 2011-5-11 20:09:20 | 显示全部楼层 |阅读模式
-----4选1
     LIBRARY   IEEE;
     USE IEEE.STD_LOGIC_1164.ALL;
      entity  project5 is
      port(a,b,i0,i1,i2,i3:in std_logic;
                  data_outut std_logic);
      end project5;
      architecture  set41 of project5 is
        begin
          process(a,b,i0,i1,i2,i3)
           variable sel:integer range 0 to 3;
           begin
           sel:=0;
        if a='1' then
            sel:=sel+1;
        end if;
        if b='1' then
            sel:=sel+2;
       end if;
      data_out<=i0 when sel=0 else
                i1 when sel=1 else
                i2 when sel=2 else
                i3 when sel=3;      
      end process;
        end set41;                     
      ---提示错误         Error: Peak virtual memory: 212 megabytes
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

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

QQ|小黑屋|手机版|Archiver|集成电路技术分享 ( 京ICP备20003123号-1 )

GMT+8, 2024-5-18 06:22 , Processed in 0.068246 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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