10.1.7.3 Binary to Gray/Gray to Binary Converter Implementation Rules
The following table lists the implementation rules for a Binary to Gray/Gray to Binary Converter.
| Parameter | Value | Function |
|---|---|---|
| LPMTYPE | LPM_GRAYENCODE/ LPMGRAYDECODE | Binary to Gray and Gray to Binary Converter |
The following table describes the functionalities of a Binary to Gray/Gray to Binary Converter.
| Data | Aclr | Enable | Sload | Clock | Up down | Qn+1 | Tcnt n+1 |
|---|---|---|---|---|---|---|---|
| X | 0 | X | X | X | X | 0’s | 0 |
| X | 1 | X | X | ƒ | X | Qn | Qn+1== 2width-1 |
| X | 1 | 0 | 0 | ƒ | X | Qn | Qn+1== 2width-1 |
| m | 1 | X | 1 | ƒ | X | m | Qn+1== 2width-1 |
| X | 1 | 1 | 0 | ƒ | 1 | Qn + 1 | Qn+1== 2width-1 |
| X | 1 | 1 | 0 | ƒ | 0 | Qn - 1 | Qn+1== 2width-1 |
A. Assume Aclr is active low, Enable is active high, Sload is active high, Clock is rising and Tcnt is active high.
