跳到主要内容

3.9对1多路复用器

创建一个16位宽的9选1多路复用器。当sel为0时选择a,sel为1时选择b,依此类推。对于未使用的案例(sel从9到15),将所有输出位设置为'1'。

模块声明

module top_module( 
input [15:0] a, b, c, d, e, f, g, h, i,
input [3:0] sel,
output [15:0] out );

做题区