summaryrefslogtreecommitdiff
path: root/tests/asicworld/code_verilog_tutorial_mux_21.v
blob: a6a0d35eb70cd637d0863456d13594590ef5bbdb (plain)
1
2
3
4
5
6
7
8
9
module mux_21 (a,b,sel,y);
  	  	input a, b;
  	  	output y;
  	  	input sel;
  	  	wire y;
  	  	 
  	  	assign y = (sel) ? b : a;
  	  	 
endmodule