李广军-ASIC设计-习题答案-Chapter_2_Solutions.pdfVIP

  • 10
  • 0
  • 约2.18千字
  • 约 2页
  • 2020-10-27 发布于浙江
  • 举报

李广军-ASIC设计-习题答案-Chapter_2_Solutions.pdf

Problems 2.1 Write a behavioral description for a 4-to-1 multiplexer. The multiplexer has s1 and s0 select inputs and four data inputs. `timescale 1ns/100ps module Multiplexer (input in0, in1, in2, in3, s0, s1,output reg w); always @ (s0,s1) begin case (s0) 0: if (s1) = in2; else w = in0; 1: if (s1) w = in3; else w = in1; endcase end endmodule 2.2 Using an assign statement describe a majority circuit with three inputs and one output. When the majority of the inputs are 1, the output of the

文档评论(0)

1亿VIP精品文档

相关文档