A comparator is used to determine whether two signals have equal values. A one bit comparator is described by
where EQI is the result of the comparison of other bits and EQO is passed to the next comparison operation. Write a model of an n-bit iterative comparator.