A Simple AND Gate Design using Logical Expression (Data Flow Modeling Style)-
Verilog Code-
//-----------------------------------------------------------------------------
//
// Title : AND_Gate
// Design : vhdl_test
// Author : Naresh Singh Dobal
// Company : nsd
//
//-----------------------------------------------------------------------------
//
// File : AND Gate.v
module AND_Gate ( a ,b ,dout );
output dout ;
input a ;
input b ;
assign dout = a & b;
endmodule
Output Waveform : AND Gate |
Verilog Code-
//-----------------------------------------------------------------------------
//
// Title : AND_Gate
// Design : vhdl_test
// Author : Naresh Singh Dobal
// Company : nsd
//
//-----------------------------------------------------------------------------
//
// File : AND Gate.v
module AND_Gate ( a ,b ,dout );
output dout ;
input a ;
input b ;
assign dout = a & b;
endmodule
0 comments :
Post a Comment