Verilog HDL: Gray Counter

author-image

By

This example describes an 8 bit Gray-code counter design in Verilog HDL. The Gray code outputs differ in only one bit for every two successive values. 

Figure 1. Gray counter top-level diagram.

Download the files used in this example: