多路选择器 多路选择器的逻辑功能是在地址选择信号的控制下,从多路输入数据中选择一路数据作为输出端口的输出数据. 4选1多路选择器 Library IEEE; Use IEEE.std_logic_1164.all; Entity mux4 is port ( input : in std_logic_vector (3 downto 0 ); a, b: in std_logic; y: out std_logic ); End mux4; Architecture behav of mux4 is signal sel :std_logic_vector(1 downto 0); Begin sel=b a; process(input , sel) begin 信号需在结构体中说明,而变量可在进程中说明。 P48 4选1多路选择器 if (sel=“00”) then y=input(0); elsif (sel=“01”) then y=input(1); elsif (sel=“10”) then y=input(2); elsif (sel=“11”)
您可能关注的文档
最近下载
- 第七章海洋中的混响资料.doc VIP
- 2025年长沙环境保护职业技术学院辅导员招聘考试笔试模拟试题及答案解析.docx VIP
- 《安规》题库及答案.pdf VIP
- GE巴纳OXYIQ氧量分析仪用户使用手册.PDF
- 三级减速器设计_毕业设计论文.doc VIP
- 生命周期评价方法(life cycle assessment,LCA).pdf
- 2025 八年级上册新文化运动与思想解放潮流课件.pptx
- 农药的使用(全套105页PPT课件).pptx VIP
- 2025版中华民族共同体概论课件第三讲文明初现与中华民族起源(史前时期)第四讲天下秩序与华夏共同体演进(夏商周时期).pptx VIP
- 人教版(2024)新教材七年级数学下册第9章平面直角坐标系中的面积问题【八大题型】(含答案).docx VIP
原创力文档

文档评论(0)