* SPICE netlist
M9 N011 A N005 N012 PMOS
M10 N005 A 0 N013 NMOS
M11 N015 B N014 N016 PMOS
M12 N014 B 0 N017 NMOS
V1 A 0 PULSE(0 1 0 500p 500p 10n 30n)
V2 B 0 PULSE(0 1 0 500p 500p 30n 40n)
M27 N001 N005 N007 N003 PMOS
M28 N001 B N007 N004 PMOS
M29 N007 B N009 0 NMOS
M30 N009 N005 0 N010 NMOS
V5 N001 0 1
M31 N002 N007 A_Less_B N006 PMOS
M32 A_Less_B N007 0 N008 NMOS
V6 N002 0 1
V10 N011 0 1
V11 N015 0 1
M1 A_Equal_B B N005 NC_01 PMOS
M2 A_Equal_B N014 A NC_02 PMOS
M3 N005 N014 A_Equal_B NC_03 NMOS
M4 A B A_Equal_B NC_04 NMOS
M5 A_Grater_B N005 N014 NC_05 PMOS
M6 N014 A A_Grater_B NC_06 NMOS
M13 A_Grater_B A 0 NC_07 PMOS
M14 0 N005 A_Grater_B NC_08 NMOS
.tran 100n

* LTspice schematic (.asc)
Version 4.1
SHEET 1 2464 2944
WIRE 368 -1456 48 -1456
WIRE 48 -1440 48 -1456
WIRE 48 -1440 -96 -1440
WIRE 176 -1440 48 -1440
WIRE -96 -1392 -96 -1440
WIRE 176 -1392 176 -1440
WIRE 912 -1392 768 -1392
WIRE -96 -1344 -96 -1376
WIRE 176 -1344 176 -1376
WIRE 768 -1344 768 -1392
WIRE -144 -1312 -256 -1312
WIRE 128 -1312 -48 -1312
WIRE 768 -1296 768 -1328
WIRE 720 -1264 656 -1264
WIRE -96 -1248 -96 -1296
WIRE 48 -1248 -96 -1248
WIRE 176 -1248 176 -1296
WIRE 176 -1248 48 -1248
WIRE 48 -1184 48 -1248
WIRE 656 -1184 656 -1264
WIRE 656 -1184 48 -1184
WIRE 768 -1184 768 -1248
WIRE 1232 -1184 768 -1184
WIRE -48 -1168 -48 -1312
WIRE -48 -1168 -1232 -1168
WIRE 48 -1152 48 -1184
WIRE -256 -1104 -256 -1312
WIRE -256 -1104 -528 -1104
WIRE 144 -1104 48 -1104
WIRE 656 -1104 656 -1184
WIRE 720 -1104 656 -1104
WIRE 768 -1104 768 -1136
WIRE -48 -1072 -48 -1168
WIRE 0 -1072 -48 -1072
WIRE 48 -976 48 -1056
WIRE -256 -896 -256 -1104
WIRE 0 -896 -256 -896
WIRE 48 -896 48 -928
WIRE 48 -848 48 -880
WIRE 144 -848 144 -1104
WIRE 144 -848 48 -848
WIRE 48 -784 48 -848
WIRE -96 -704 -208 -704
WIRE -704 -608 -848 -608
WIRE -848 -560 -848 -608
WIRE -704 -496 -704 -608
WIRE -96 -496 -96 -704
WIRE -704 -448 -704 -480
WIRE -112 -448 -160 -448
WIRE 64 -448 -16 -448
WIRE -528 -432 -528 -1104
WIRE -384 -432 -528 -432
WIRE -752 -416 -784 -416
WIRE -880 -400 -1200 -400
WIRE 64 -400 64 -448
WIRE 192 -400 64 -400
WIRE -384 -384 -384 -432
WIRE -160 -384 -160 -448
WIRE -160 -384 -384 -384
WIRE -880 -352 -880 -400
WIRE -880 -352 -912 -352
WIRE -848 -352 -880 -352
WIRE -784 -352 -784 -416
WIRE -784 -352 -848 -352
WIRE -704 -352 -704 -400
WIRE -656 -352 -704 -352
WIRE -528 -352 -528 -432
WIRE -528 -352 -656 -352
WIRE -704 -336 -704 -352
WIRE -208 -320 -208 -704
WIRE -208 -320 -560 -320
WIRE -160 -304 -160 -384
WIRE -112 -304 -160 -304
WIRE 64 -304 64 -400
WIRE 64 -304 -16 -304
WIRE 192 -304 192 -400
WIRE 576 -304 192 -304
WIRE -912 -272 -912 -352
WIRE -784 -256 -784 -352
WIRE -752 -256 -784 -256
WIRE -704 -256 -704 -288
WIRE -32 -256 -336 -256
WIRE -96 -128 -224 -128
WIRE -112 -80 -176 -80
WIRE 16 -80 -16 -80
WIRE 576 -80 576 -304
WIRE 1008 -80 576 -80
WIRE -560 -32 -560 -320
WIRE -560 -32 -816 -32
WIRE 16 -32 16 -80
WIRE 192 -32 192 -304
WIRE 192 -32 16 -32
WIRE -848 -16 -848 -352
WIRE -176 -16 -176 -80
WIRE -176 -16 -848 -16
WIRE -592 48 -720 48
WIRE -176 48 -176 -16
WIRE -112 48 -176 48
WIRE 16 48 16 -32
WIRE 16 48 -16 48
WIRE -720 80 -720 48
WIRE -592 80 -592 48
WIRE -336 112 -336 -256
WIRE -336 112 -480 112
WIRE -320 112 -336 112
WIRE -720 128 -720 96
WIRE -1232 160 -1232 -1168
WIRE -912 160 -1232 160
WIRE -768 160 -784 160
WIRE -912 208 -912 160
WIRE -912 208 -960 208
WIRE -848 208 -912 208
WIRE -816 208 -816 -32
WIRE -816 208 -848 208
WIRE -784 208 -784 160
WIRE -784 208 -816 208
WIRE -720 208 -720 176
WIRE -624 208 -720 208
WIRE -480 208 -480 112
WIRE -480 208 -624 208
WIRE -720 240 -720 208
WIRE -960 272 -960 208
WIRE -784 320 -784 208
WIRE -768 320 -784 320
WIRE -720 320 -720 288
WIRE -480 432 -480 208
WIRE -224 432 -224 -128
WIRE -224 432 -480 432
WIRE -208 432 -224 432
WIRE -848 496 -848 208
WIRE -32 496 -32 96
WIRE -32 496 -848 496
WIRE -656 864 -656 -352
WIRE -512 864 -656 864
WIRE -432 976 -432 912
WIRE -320 976 -432 976
WIRE -192 976 -320 976
WIRE -624 992 -624 208
WIRE -528 992 -528 912
WIRE -528 992 -624 992
WIRE -528 1072 -528 992
WIRE -432 1072 -432 976
WIRE -1200 1168 -1200 -400
WIRE -448 1168 -448 1120
WIRE -448 1168 -1200 1168
WIRE -1200 1216 -1200 1168
WIRE -512 1216 -1200 1216
WIRE -528 1328 -528 1264
WIRE -528 1328 -720 1328
WIRE -432 1328 -432 1264
WIRE -320 1328 -320 976
WIRE -320 1328 -432 1328
WIRE -720 1376 -720 1328
WIRE -528 1424 -528 1328
WIRE -432 1424 -432 1328
WIRE -656 1472 -656 864
WIRE -448 1472 -656 1472
FLAG -720 336 0
FLAG -704 -240 0
FLAG -912 -192 0
FLAG -960 352 0
FLAG -912 -352 A
IOPIN -608 48 In
FLAG -960 208 B
IOPIN -656 608 In
FLAG 48 -784 0
FLAG 368 -1376 0
FLAG 1232 -1184 A_Less_B
IOPIN 1536 -784 Out
FLAG 768 -1088 0
FLAG 912 -1312 0
FLAG -848 -480 0
FLAG -592 160 0
FLAG -192 976 A_Grater_B
IOPIN 112 1376 Out
FLAG 1008 -80 A_Equal_B
IOPIN 1312 320 Out
FLAG -720 1376 0
SYMBOL pmos4 -752 -496 R0
SYMATTR InstName M9
SYMBOL nmos4 -752 -336 R0
SYMATTR InstName M10
SYMBOL pmos4 -768 80 R0
SYMATTR InstName M11
SYMBOL nmos4 -768 240 R0
SYMATTR InstName M12
SYMBOL voltage -912 -288 R0
SYMATTR Value PULSE(0 1 0 500p 500p 10n 30n)
SYMATTR InstName V1
SYMBOL voltage -960 256 R0
SYMATTR Value PULSE(0 1 0 500p 500p 30n 40n)
SYMATTR InstName V2
SYMBOL pmos4 -144 -1392 R0
SYMATTR InstName M27
SYMBOL pmos4 128 -1392 R0
SYMATTR InstName M28
SYMBOL nmos4 0 -1152 R0
SYMATTR InstName M29
SYMBOL nmos4 0 -976 R0
SYMATTR InstName M30
SYMBOL voltage 368 -1472 R0
SYMATTR InstName V5
SYMATTR Value 1
SYMBOL pmos4 720 -1344 R0
SYMATTR InstName M31
SYMBOL nmos4 720 -1184 R0
SYMATTR InstName M32
SYMBOL voltage 912 -1408 R0
SYMATTR InstName V6
SYMATTR Value 1
SYMBOL voltage -848 -576 R0
SYMATTR InstName V10
SYMATTR Value 1
SYMBOL voltage -592 64 R0
SYMATTR InstName V11
SYMATTR Value 1
SYMBOL pmos4 -16 -496 R90
SYMATTR InstName M1
SYMBOL pmos4 -16 -128 R90
SYMATTR InstName M2
SYMBOL nmos4 -112 -256 R270
SYMATTR InstName M3
SYMBOL nmos4 -112 96 R270
SYMATTR InstName M4
SYMBOL pmos4 -432 864 R90
SYMATTR InstName M5
SYMBOL nmos4 -528 1120 R270
SYMATTR InstName M6
SYMBOL pmos4 -432 1216 R90
SYMATTR InstName M13
SYMBOL nmos4 -528 1472 R270
SYMATTR InstName M14