shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序

shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序

ID:11521190

大小:250.00 KB

页数:5页

时间:2018-07-12

shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序_第1页
shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序_第2页
shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序_第3页
shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序_第4页
shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序_第5页
资源描述:

《shiyan4_16译码器设计vhdl设计256_8 rom实验源程序vhdl 16-8rom设计源程序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、4_16译码器设计libraryieee;useieee.std_logic_1164.all;entitydecode4_16isport(a:instd_logic_vector(3downto0);y:outstd_logic_vector(15downto0));end;architectureoneofdecode4_16isbeginprocess(a)begincaseaiswhen"0000"=>y<="1111111111111110";when"0001"=>y<="1111111111111101";when"0010"

2、=>y<="1111111111111011";when"0011"=>y<="1111111111110111";when"0100"=>y<="1111111111101111";when"0101"=>y<="1111111111011111";when"0110"=>y<="1111111110111111";when"0111"=>y<="1111111101111111";when"1000"=>y<="1111111011111111";when"1001"=>y<="1111110111111111";when"1010"=>

3、y<="1111101111111111";when"1011"=>y<="1111011111111111";when"1100"=>y<="1110111111111111";when"1101"=>y<="1101111111111111";when"1110"=>y<="1011111111111111";when"1111"=>y<="0111111111111111";whenothers=>y<="ZZZZZZZZZZZZZZZZ";endcase;endprocess;end;VHDL设计256_8ROM实验源程序librar

4、yieee;useieee.std_logic_1164.all;entityrom256_8isport(address:instd_logic_vector(7downto0);relt:outstd_logic_vector(7downto0));end;architectureoneofrom256_8issignalcs:std_logic_vector(3downto0);signaladdress1:std_logic_vector(3downto0);signalallen:std_logic_vector(15downto0

5、);componentdecode4_16port(a:instd_logic_vector(3downto0);y:outstd_logic_vector(15downto0));endcomponent;componentrom16_8port(addr:instd_logic_vector(3downto0);en:instd_logic;data:outstd_logic_vector(7downto0));endcomponent;begincs<=address(7downto4);address1<=address(3downt

6、o0);yima:decode4_16portmap(cs,allen);gesrom16_8:fornin0to15generatesrom16_8:rom16_8portmap(address1,allen(n),relt);endgenerate;end;VHDL16-8ROM设计源程序libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entityrom16_8isport(addr:instd_logic_vector(3downto0);en:

7、instd_logic;data:outstd_logic_vector(7downto0));end;architectureoneofrom16_8istypememoryisarray(0to15)ofstd_logic_vector(7downto0);signaldata1:memory:=("01000001","01000010","01000011","01000100","01000101","01000110","01000111","01001000","01001001","01001010","01001011","

8、01001100","01001101","01001110","01001111","01010001");signaladdr1:integerrange0to

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。