some reordering of comparators and constants. Signal definitions for ZZ pairs