Trung tâm đào tạo thiết kế vi mạch Semicon


  • ĐĂNG KÝ TÀI KHOẢN ĐỂ TRUY CẬP NHIỀU TÀI LIỆU HƠN!
  • Create an account
    *
    *
    *
    *
    *
    Fields marked with an asterisk (*) are required.
semicon_lab.jpg

Verilog Code for Gray to Binary Code Converter

E-mail Print PDF
Block diagram for Gray to Binary Converter ->



Verilog code for Gray to Binary converter.

//-----------------------------------------------------------------------------
// Title       : Gray_to_Binary
// Design      : verilog upload
// Author      : Rahul Jain
//-----------------------------------------------------------------------------
//
// File        : Gray to Binary Code Converter 

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

Gray to Binary Table for 4-bit.




Below is the simulation result using modelsim. 




Thanks for reading my Blog

Bạn Có Đam Mê Với Vi Mạch hay Nhúng      -     Bạn Muốn Trau Dồi Thêm Kĩ Năng

Mong Muốn Có Thêm Cơ Hội Trong Công Việc

Và Trở Thành Một Người Có Giá Trị Hơn

Bạn Chưa Biết Phương Thức Nào Nhanh Chóng Để Đạt Được Chúng

Hãy Để Chúng Tôi Hỗ Trợ Cho Bạn. SEMICON  

 

Last Updated ( Tuesday, 17 August 2021 13:31 )  

Related Articles

Chat Zalo