The document describes the design and layout of a 4-bit magnitude comparator using two techniques: transmission gate (TG) and gate diffusion input (GDI) technology, aimed at improving speed, area, and power consumption. It employs the Electric VLSI Design System for layout design and LTSPICE XVII for simulation, showing that the GDI technique uses 41.4% less chip area and has lower power consumption than the TG technique. The outcomes highlight the efficiency of GDI in digital circuit design, making it advantageous for various applications.