Design a serial comparator that compares two inputs $X$ and $Y$, which arrive LSB first. There are three outputs: L, G, and E. L is high if $\mathrm{X}<\mathrm{Y}, \mathrm{G}$ is high if $\mathrm{X}>\mathrm{Y}$, and $\mathrm{E}$ is high if $\mathrm{X}=\mathrm{Y}$.