In the comparators, the LessThan254 template has a component hiBitGt = GreaterThan(4) for comparing the high two bits (not four) but it looks like this is redundant. The output is calculated as out <== (hiBitEq.out * lt.out) + (hiBitLt.out * 1) + (hiBitGt.out * 0), where hiBitGt.out * 0 will always be 0. Can this be simplified to just: out <== (hiBitEq.out * lt.out) + (hiBitLt.out * 1)?
In the comparators, the
LessThan254
template has acomponent hiBitGt = GreaterThan(4)
for comparing the high two bits (not four) but it looks like this is redundant. The output is calculated asout <== (hiBitEq.out * lt.out) + (hiBitLt.out * 1) + (hiBitGt.out * 0)
, wherehiBitGt.out * 0
will always be 0. Can this be simplified to just:out <== (hiBitEq.out * lt.out) + (hiBitLt.out * 1)
?FYI @OBrezhniev