- 8
- 0
- 约15.35万字
- 约 82页
- 2021-01-04 发布于湖北
- 举报
部分习题参考答案
3.6 习题3
3.合法标识符:my_counter 、Decoder_1 、data__BUS、Sig_N
非法标识符:2FFT、Sig_#N、Not-Ack 、ALL_RST_ 、return 、entity
7.参考程序为:
entity NOR2a is
Port( A,B: in std_logic;
C : out std_logic );
end NOR2a;
15. Q=
4.4 习题4
1.用PROCESS 语句和CASE-WHEN 语句,参考程序如下:
library ieee;
use ieee.std_logic_1164.all;
entity decoder3_8 is
port(a,b,c,g1,g2a,g2b: in std_logic;
y: out std_logic_vector(7 downto 0));
end decoder3_8;
architecture a of decoder3_8 is
signal dz:std_logic_vector(2 downto 0);
begin
dz=cba;
process (dz,g1,g2a,g2b)
begin
if(g1=1and g2a=0and g2b=0)then
case dz is
when 000= y
when 001= y
when 010= y
when 011= y
when 100= y
when 101= y
when 110= y
when 111= y
when others=y=XXXXXXXX;
end case;
else
46
y
end if;
end process;
end ;
用WHEN-ELSE 语句,参考程序如下:
……
architecture a1 of decoder3_8 is
signal dz:std_logic_vector(2 downto 0);
begin
dz=cba;
with dz select
doutwhen 000,
when 001,
when 010,
when 011,
when 100,
when 101,
when 110,
您可能关注的文档
最近下载
- 医院实习心得版5篇.docx VIP
- 《电力设备典型消防规程》(DL-5027—2025).docx VIP
- 新课标高考75篇必背古诗文(全篇).pdf VIP
- 201302产业生态学第八讲.pdf VIP
- 产品质量监督抽查复查抽样单.pdf VIP
- 利用产线大数据进行电池内阻预测与快速分选的方法.docx VIP
- 大副实习报告附页.doc VIP
- 201503产业生态学第七章生态工业园.pdf VIP
- 人教版2019必修第一册Unit 2 Travelling around Reading for Writing & Other Parts—Language Points课件.pptx VIP
- 2022-2023学年河北省沧州市七年级(上)期末数学试卷(附答案详解).docx VIP
原创力文档

文档评论(0)