“…Many researchers have been designed 2D photonic crystal based logic gates and processors such as NAND, NOR, XOR, AND, Adder, Subtractor, Comparator, Encoder, Decoder, Multiplexer etc. [18][19][20][21][22][23][24][25][26][27][28][29][30][31][32]. Comparator is an essential device which is used in CPU and communication system.…”