abc9: suppress warnings when no compatible + used flop boxes formed
[yosys.git] / tests / asicworld / code_hdl_models_mux_using_assign.v
1 //-----------------------------------------------------
2 // Design Name : mux_using_assign
3 // File Name : mux_using_assign.v
4 // Function : 2:1 Mux using Assign
5 // Coder : Deepak Kumar Tala
6 //-----------------------------------------------------
7 module mux_using_assign(
8 din_0 , // Mux first input
9 din_1 , // Mux Second input
10 sel , // Select input
11 mux_out // Mux output
12 );
13 //-----------Input Ports---------------
14 input din_0, din_1, sel ;
15 //-----------Output Ports---------------
16 output mux_out;
17 //------------Internal Variables--------
18 wire mux_out;
19 //-------------Code Start-----------------
20 assign mux_out = (sel) ? din_1 : din_0;
21
22 endmodule //End Of Module mux