Implement a circuit that will compare two 3-bit binary numbers, X = x2x1x0 and Y = y2y1y0, and generate separate outputs corresponding to the conditions X = Y, X < Y, X > Y. The circuit is implemented using NAND gates only. Write the VHDL code for the circuit using a for-generate statement.