/** Inputs **/
Pin 1 = A13;
Pin 2 = A12;
Pin 3 = A11;
Pin 4 = A10;
Pin 5 = A8;
Pin 6 = A7;
Pin 7 = A6;
Pin 8 = A5;
Pin 9 = A4;
Pin 11 = GATECS;
Pin 13 = OBJB;
Pin 14 = WR;
Pin 15 = GATEB;
/** Outputs **/
Pin 12 = SGCS; /**(Combinatorial, No output feedback, Active high) **/
Pin 16 = IOCS; /**(Combinatorial, Output feedback output, Active low) **/
Pin 17 = CRCS; /**(Combinatorial, Output feedback output, Active high) **/
Pin 18 = UNK; /**(Combinatorial, Output feedback output, Active low) **/
Pin 19 = MGCS; /**(Combinatorial, No output feedback, Active low) **/
/** Equations **/
SGCS = !CRCS
# GATECS
# !A13 & !A6 & !A5 & A4
# A10 & A8 & WR & !GATEB
# A12 & !A10 & !OBJB & !GATEB
# A12 & !A8 & !OBJB & !GATEB
# !A12 & WR & !GATEB;
!IOCS = !A13 & !A12 & !A11 & !A10 & !A8 & !A7 & !A6 & !A5 & A4 & !GATECS;
CRCS = A13
# GATECS
# !A12 & !A11 & !A10 & !A8 & !A7 & !A6
# !A12 & !A11 & !A10 & !A8 & !A7 & !A5;
!UNK = A13 & A12 & !A10 & !GATECS
# A13 & A12 & !A8 & !GATECS;
!MGCS = A13 & A10 & A8 & !GATECS & !GATEB
# A13 & !GATECS & !OBJB & !GATEB
# A13 & !A12 & !GATECS & !GATEB
# !A12 & !A11 & !A10 & !A8 & !A7 & !A6 & A5 & !GATECS & !GATEB
# !A12 & !A11 & !A10 & !A8 & !A7 & A6 & !A5 & !GATECS & !GATEB
# !A12 & !A11 & !A10 & !A8 & !A7 & !A6 & !A4 & !GATECS & !GATEB;