Monday, 15 July 2013

Design of Gray to Binary Code Converter using Logical Gates (Verilog CODE).

Design of Gray to Binary Code Converter using Logical Gates (Data Flow Modeling Style)-


Output Waveform  :  Gray to Binary Code Converter



Verilog CODE-



//-----------------------------------------------------------------------------
//
// Title       : Gray_to_Binary
// Design      : verilog upload
// Author      : Naresh Singh Dobal
// Company     : nsd
//
//-----------------------------------------------------------------------------
//
// File        : Gray to Binary Code Converter using Gates.v



module Gray_to_Binary ( din ,dout );

output [3:0] dout ;

input [3:0] din ;

assign dout[3] = din[3];
assign dout[2] = din[3]^din[2];
assign dout[1] = din[3]^din[2]^din[1];
assign dout[0] = din[3]^din[2]^din[1]^din[0];

endmodule

0 comments :

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes