4选1选通器verilog代码.pdf

3 实验 3 3.1 实验内容 题目:设计一个 1 位的四选一多路选择器 要求: 1.使用二选一多路选择器模块进行搭建 2. 出现正确的仿真波形,无需板子上验证。 3.2 实验步骤 1. 系统设计 利用 3 个 2 选 1 选通器搭建 4 选 1 一位选通器。利用第二题中已编写好的 2 选 1 选通器,在新编写的 4 选 1 中实例化三个子模块实现。设计原理图如下: 2. 重要源代码及注释 4 选 1: module mux4to1(a,b,c,d,s1,s2,out); input wire a,b,c,d; input wire s1,s2; output wire out; wire out1,out2; mux2to1 f1(.a(a),.b(b),.sel(s1),.out(out1)); mux2to1 f2(.a(c),.b(d),.sel(s1),.out(out2)); mux2to1 f3(.a(out1

文档评论(0)

1亿VIP精品文档

相关文档