summaryrefslogtreecommitdiff
path: root/usrp2/fpga/control_lib/mux_32_4.v
blob: fef5812e92531a8ffbfbdb0c3bc7973dfb107687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13


module mux_32_4
  (input [1:0] sel,
   input [31:0] in0,
   input [31:0] in1,
   input [31:0] in2,
   input [31:0] in3,
   output [31:0] out);

   assign 	 out = sel[1] ? (sel[0] ? in3 : in2) : (sel[0] ? in1 : in0);

endmodule // mux_32_4