Introduction - If you have any usage issues, please Google them yourself
Modeling comparator is implemented by using basic logic function modules of medium-scale MSI (medium-scale and language are required respectively):
Functional requirements: Its input is two 8-bit unsigned binary integers X and Y, and a control signal S; the output signal is an 8-bit unsigned binary integer Z. The relationship between input and output is: when S = 1, Z = min (X, Y); when S = 0, Z = max (X, Y).