Buffer digital
TITLE 'Comparador'
A,B,C,D,E,F PIN 6,7,8,9,10,11;
I,P,L PIN 14,15,16;
//A=B
X=(!A&!B&!C&!D&!F&!E)#(!A&!B&C&!D&!F&E)#(A&!B&!C&D&!F&!E)#(A&!B&C&D&!F&E)#(!A&B&!C&!D&F&!E)#(!A&B&C&!D&F&E)#(A&B&!C&D&F&!E);
//A<B
Y=(A&!B&!C&!D)#(A&!B&!D&E)#(A&!C&!D&F)#(A&!D&F&E)#(!B&!C&E)#(!C&F&E)#(!B&F);
//A>B
W=(!A&D&!F&!E)#(!A&C&D&!F)#(!A&B&D&!E)#(!A&B&C&D)#(C&!F&!E)#(B&C&!E)#(B&!F);
EQUATIONS
I=X;
P=Y;
L=W;
TEST_VECTORS