Given, that X consist of three bits x2, x1, x0 and Y consists of three bits y2, y1, y0.
The logic functions should be written in way that are true if and only if
, where X and Y are thought of as unsigned binary numbers
, where X and Y are thought of as signed (two’s complement) numbers
First, the 1-bit comparison will be made as follows:
The truth tables for these conditions are as follows:
For
For
For
From the above conditions, the logical equations can be derived.
, where X and Y are thought of as unsigned binary numbers
For an unsigned binary number, any of the following conditions must be satisfied.
Hence, the logical function is:
The logical network:

By the hierarchical approach, the 6 bit extension is as follows:

, where X and Y are thought of as signed (two’s complement) numbers
For signed binary number, any of the following conditions must be satisfied.
Hence, the logical function is:
0
The logical network:

By the hierarchical approach, the 6 bit extension is as follows:

,
The logical function is,
The logical network is shown below:
