R&Y: Added DAY RTA Tapp Card and Additional BKK BEM Stored Value Card AIDs to `aid_de...
[RRG-proxmark3.git] / fpga / mux2_onein.v
blob24a53bbe40703482ed1eab25fee73ebd3efe76cc
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
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.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
17 // 2 inputs to 1 output multiplexer
18 module mux2_one(
19 input [1:0] sel,
20 output reg y,
21 input x0,
22 input x1
25 always @(*)
26 begin
27 case (sel)
28 1'b0: y = x1;
29 1'b1: y = x0;
30 endcase
31 end
33 endmodule