4 to 1 Multiplexer Design using Logical Expression (Data Flow Modeling Style)-
Program -
//-----------------------------------------------------------------------------
//
// Title : multiplexer4_1
// Design : vhdl_test
// Author : Naresh Singh Dobal
// Company : nsd
//
//-----------------------------------------------------------------------------
//
// File : 4 : 1 Multiplexer using Logical Expression.v
module multiplexer4_1 ( a ,b ,c ,d ,x ,y ,dout );
output dout ;
input a ;
input b ;
input c ;
input d ;
input x ;
input y ;
assign dout = (a & (~x) & (~y)) |
(b & (~x) & (y)) |
(c & x & (~y)) |
(d & x & y);
endmodule
Output Waveform : 4 to 1 Multiplexer |
Program -
//-----------------------------------------------------------------------------
//
// Title : multiplexer4_1
// Design : vhdl_test
// Author : Naresh Singh Dobal
// Company : nsd
//
//-----------------------------------------------------------------------------
//
// File : 4 : 1 Multiplexer using Logical Expression.v
module multiplexer4_1 ( a ,b ,c ,d ,x ,y ,dout );
output dout ;
input a ;
input b ;
input c ;
input d ;
input x ;
input y ;
assign dout = (a & (~x) & (~y)) |
(b & (~x) & (y)) |
(c & x & (~y)) |
(d & x & y);
endmodule
1 comments :
Hello Naresh could u tell me how to implement multiplexer with active low output?
Post a Comment