///////////////////////////////////////////////////////////////////////////////////////////////
// Author : Sidharth(DVLSI 31)
//Permission : This code only for educational purpose only
//contact :sidharth.sankar77@gmail.com
//////////////////////////////////////////////////////////////////////////////
primitive mux_4x1(muxed_out,sel_1,sel_0,data1,data2,data3,data4);
output muxed_out;
input sel_1,sel_0;
input data1,data2,data3,data4;
table
//sel_1 sel_0 data1 data2 data3 data4
0 0 1 ? ? ? :1;
0 0 0 ? ? ? :0;
0 1 ? 1 ? ? :1;
0 1 ? 0 ? ? :0;
1 0 ? ? 1 ? :1;
1 0 ? ? 0 ? :0;
1 1 ? ? ? 1 :1;
1 1 ? ? ? 0 :0;
? ? 0 0 0 0 :0;
? ? 1 1 1 1 :1;
endtable
endprimitive // mux_4x1
Saturday, June 15, 2013
4x1 mux primitive example in verilog
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment