Statistics
| Branch: | Tag: | Revision:

root / usrp2 / control_lib / mux_32_4.v @ c7adcbe4

History | View | Annotate | Download (934 Bytes)

1
//
2
// Copyright 2011 Ettus Research LLC
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
//
17

    
18

    
19

    
20
module mux_32_4
21
  (input [1:0] sel,
22
   input [31:0] in0,
23
   input [31:0] in1,
24
   input [31:0] in2,
25
   input [31:0] in3,
26
   output [31:0] out);
27

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

    
30
endmodule // mux_32_4