Chargement…
Chargement…
The internal counter is binary, and the output is its combinational Gray conversion.
Behaviour
i_en=1 increments the binary counter.o_gray = binary xor (binary >> 1).| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_reset | Input | 1 bit | Active-high asynchronous reset |
i_en | Input | 1 bit | Enable |
o_gray | Output | 4 bits | Output gray |