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.

Table 10-28. Implementation Rules
ParameterValueFunction
LPMTYPELPM_GRAYENCODE/ LPMGRAYDECODEBinary to Gray and Gray to Binary Converter

The following table describes the functionalities of a Binary to Gray/Gray to Binary Converter.

Table 10-29. Functional Description
DataAclrEnableSloadClockUp downQn+1Tcnt n+1
X0XXXX0’s0
X1XXƒXQnQn+1== 2width-1
X100ƒXQnQn+1== 2width-1
m1X1ƒXm Qn+1== 2width-1
X110ƒ1Qn + 1 Qn+1== 2width-1
X110ƒ0Qn - 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.