23、在空格中填写正确的数据 module decoder_using_case (binary_in , decoder_out , enable ); input [3:0] binary_in ; input enable ; output [15:0] decoder_out ; reg [15:0] decoder_out ; always @ (enable or binary_in) begin decoder_out = 0; if (enable) begin case (binary_in) 4'h0 : decoder_out = 16'h0001; 4'h1 : decoder_out = 16'h0002; 4'h2 : decoder_out = 16'h0004; 4'h3 : decoder_out = 16'h0008; 4'h4 : decoder_out = 16'h0010; 4'h5 : decoder_out = 16'h0020; 4'h6

时间:2024-06-19 14:42:53

相似题目