(***************************************************************************)
(*                                                                         *)
(*                         Copyright (C) 1987-1990                         *)
(*                      by Gogesch Micro Systems, INC.                     *)
(*                                                                         *)
(*                           All rights reserved.                          *)
(*                                                                         *)
(***************************************************************************)


;MODELS WERE TAKEN FROM 1988 SAMSUNG CMOS PROGRAMMABLE
;LOGIC DATA BOOK.

;VALUES FOR TYPICAL DELAYS WERE NOT GIVEN. USED
;(`MAX'DELAY - 10 ns) FOR `OTHER' PROPAGATION DELAY
;IN MODEL.  DELAYS FOR SETUP,HOLD,PULSE WIDTH,ENABLE/DISABLE
;WERE MODELED WITH `MAX' VALUES.

%StartModel
%Manufacturer:Samsung
%Type:16L8
%PartNumber:CPL16L8-15
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P18 ~P18 P4 ~P4 P17 ~P17 P5 ~P5 P16 ~P16
     P6 ~P6 P15 ~P15 P7 ~P7 P14 ~P14 P8 ~P8 P13 ~P13 P9 ~P9 P11 ~P11 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 5,5,15,15);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 5,5,15,15);
  TSB(TNode, %InFuse; OutPin; 12,12,12,12,12,12,12,12);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR7ENABLE(%SF512, %FF512, P17, N3);
NOR7ENABLE(%SF768, %FF768, P16, N4);
NOR7ENABLE(%SF1024, %FF1024, P15, N5);
NOR7ENABLE(%SF1280, %FF1280, P14, N6);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16L8
%PartNumber:CPL16L8-20
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P18 ~P18 P4 ~P4 P17 ~P17 P5 ~P5 P16 ~P16
     P6 ~P6 P15 ~P15 P7 ~P7 P14 ~P14 P8 ~P8 P13 ~P13 P9 ~P9 P11 ~P11 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 10,10,20,20);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 10,10,20,20);
  TSB(TNode, %InFuse; OutPin; 20,20,20,20,20,20,20,20);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR7ENABLE(%SF512, %FF512, P17, N3);
NOR7ENABLE(%SF768, %FF768, P16, N4);
NOR7ENABLE(%SF1024, %FF1024, P15, N5);
NOR7ENABLE(%SF1280, %FF1280, P14, N6);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16L8
%PartNumber:CPL16L8-25
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P18 ~P18 P4 ~P4 P17 ~P17 P5 ~P5 P16 ~P16
     P6 ~P6 P15 ~P15 P7 ~P7 P14 ~P14 P8 ~P8 P13 ~P13 P9 ~P9 P11 ~P11 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 15,15,25,25);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 15,15,25,25);
  TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR7ENABLE(%SF512, %FF512, P17, N3);
NOR7ENABLE(%SF768, %FF768, P16, N4);
NOR7ENABLE(%SF1024, %FF1024, P15, N5);
NOR7ENABLE(%SF1280, %FF1280, P14, N6);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16L8
%PartNumber:CPL16L8-35
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P18 ~P18 P4 ~P4 P17 ~P17 P5 ~P5 P16 ~P16
     P6 ~P6 P15 ~P15 P7 ~P7 P14 ~P14 P8 ~P8 P13 ~P13 P9 ~P9 P11 ~P11 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 25,25,35,35);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 25,25,35,35);
  TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR7ENABLE(%SF512, %FF512, P17, N3);
NOR7ENABLE(%SF768, %FF768, P16, N4);
NOR7ENABLE(%SF1024, %FF1024, P15, N5);
NOR7ENABLE(%SF1280, %FF1280, P14, N6);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R4
%PartNumber:CPL16R4-15
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 P18 ~P18 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 P13 ~P13 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 5,5,15,15);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 5,5,15,15);
  TSB(TNode, %InFuse; OutPin; 12,12,12,12,12,12,12,12);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;2,2,12,0,10,10,12,12,12,0,10,10);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR8DFF(%FF512, N3, L2, P17);
NOR8DFF(%FF768, N4, L3, P16);
NOR8DFF(%FF1024, N5, L4, P15);
NOR8DFF(%FF1280, N6, L5, P14);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R4
%PartNumber:CPL16R4-20
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 P18 ~P18 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 P13 ~P13 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 10,10,20,20);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 10,10,20,20);
  TSB(TNode, %InFuse; OutPin; 20,20,20,20,20,20,20,20);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,15,0,15,15,15,15,15,0,15,15);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR8DFF(%FF512, N3, L2, P17);
NOR8DFF(%FF768, N4, L3, P16);
NOR8DFF(%FF1024, N5, L4, P15);
NOR8DFF(%FF1280, N6, L5, P14);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R4
%PartNumber:CPL16R4-25
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 P18 ~P18 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 P13 ~P13 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 15,15,25,25);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 15,15,25,25);
  TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,20,0,15,15,15,15,20,0,15,15);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR8DFF(%FF512, N3, L2, P17);
NOR8DFF(%FF768, N4, L3, P16);
NOR8DFF(%FF1024, N5, L4, P15);
NOR8DFF(%FF1280, N6, L5, P14);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R4
%PartNumber:CPL16R4-35
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 P18 ~P18 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 P13 ~P13 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 25,25,35,35);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 25,25,35,35);
  TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;15,15,30,0,20,20,25,25,30,0,20,20);
 TSB(NodeInp,L1;OutPin;25,25,25,25,25,25,25,25);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR7ENABLE(%SF256, %FF256, P18, N2);
NOR8DFF(%FF512, N3, L2, P17);
NOR8DFF(%FF768, N4, L3, P16);
NOR8DFF(%FF1024, N5, L4, P15);
NOR8DFF(%FF1280, N6, L5, P14);
NOR7ENABLE(%SF1536, %FF1536, P13, N7);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R6
%PartNumber:CPL16R6-15
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 5,5,15,15);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 5,5,15,15);
  TSB(TNode, %InFuse; OutPin; 12,12,12,12,12,12,12,12);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;2,2,12,0,10,10,12,12,12,0,10,10);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR8DFF(%FF256, N2, L2, P18);
NOR8DFF(%FF512, N3, L3, P17);
NOR8DFF(%FF768, N4, L4, P16);
NOR8DFF(%FF1024, N5, L5, P15);
NOR8DFF(%FF1280, N6, L6, P14);
NOR8DFF(%FF1536, N7, L7, P13);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R6
%PartNumber:CPL16R6-20
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 10,10,20,20);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 10,10,20,20);
  TSB(TNode, %InFuse; OutPin; 20,20,20,20,20,20,20,20);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,15,0,15,15,15,15,15,0,15,15);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR8DFF(%FF256, N2, L2, P18);
NOR8DFF(%FF512, N3, L3, P17);
NOR8DFF(%FF768, N4, L4, P16);
NOR8DFF(%FF1024, N5, L5, P15);
NOR8DFF(%FF1280, N6, L6, P14);
NOR8DFF(%FF1536, N7, L7, P13);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R6
%PartNumber:CPL16R6-25
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 15,15,25,25);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 15,15,25,25);
  TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,20,0,15,15,15,15,20,0,15,15);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR8DFF(%FF256, N2, L2, P18);
NOR8DFF(%FF512, N3, L3, P17);
NOR8DFF(%FF768, N4, L4, P16);
NOR8DFF(%FF1024, N5, L5, P15);
NOR8DFF(%FF1280, N6, L6, P14);
NOR8DFF(%FF1536, N7, L7, P13);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R6
%PartNumber:CPL16R6-35
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 P19 ~P19 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 P12 ~P12 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+31 = 1 %THEN
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; OutPin; 25,25,35,35);
 %ELSE
  NOR(%InFuse+32, %InFuse+64, %InFuse+96, %InFuse+128, %InFuse+160,
     %InFuse+192, %InFuse+224; TNode; 25,25,35,35);
  TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;15,15,30,0,20,20,25,25,30,0,20,20);
 TSB(NodeInp,L1;OutPin;25,25,25,25,25,25,25,25);
%MACEND;

LINV(P11;L1);
NOR7ENABLE(%SF00, %FF00, P19, N1);
NOR8DFF(%FF256, N2, L2, P18);
NOR8DFF(%FF512, N3, L3, P17);
NOR8DFF(%FF768, N4, L4, P16);
NOR8DFF(%FF1024, N5, L5, P15);
NOR8DFF(%FF1280, N6, L6, P14);
NOR8DFF(%FF1536, N7, L7, P13);
NOR7ENABLE(%SF1792, %FF1792, P12, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R8
%PartNumber:CPL16R8-15
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 N1 ~N1 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 N8 ~N8 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,20,0,20,20,15,15,20,0,20,20);
 TSB(NodeInp,L1;OutPin;12,12,12,12,12,12,12,12);
%MACEND;

LINV(P11;L1);
NOR8DFF(%FF00, N1, L2, P19);
NOR8DFF(%FF256, N2, L3, P18);
NOR8DFF(%FF512, N3, L4, P17);
NOR8DFF(%FF768, N4, L5, P16);
NOR8DFF(%FF1024, N5, L6, P15);
NOR8DFF(%FF1280, N6, L7, P14);
NOR8DFF(%FF1536, N7, L8, P13);
NOR8DFF(%FF1792, N8, L9, P12);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R8
%PartNumber:CPL16R8-20
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 N1 ~N1 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 N8 ~N8 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,20,0,20,20,15,15,20,0,20,20);
 TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P11;L1);
NOR8DFF(%FF00, N1, L2, P19);
NOR8DFF(%FF256, N2, L3, P18);
NOR8DFF(%FF512, N3, L4, P17);
NOR8DFF(%FF768, N4, L5, P16);
NOR8DFF(%FF1024, N5, L6, P15);
NOR8DFF(%FF1280, N6, L7, P14);
NOR8DFF(%FF1536, N7, L8, P13);
NOR8DFF(%FF1792, N8, L9, P12);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R8
%PartNumber:CPL16R8-25
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 N1 ~N1 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 N8 ~N8 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;5,5,20,0,20,20,15,15,20,0,20,20);
 TSB(NodeInp,L1;OutPin;25,25,25,25,25,25,25,25);
%MACEND;

LINV(P11;L1);
NOR8DFF(%FF00, N1, L2, P19);
NOR8DFF(%FF256, N2, L3, P18);
NOR8DFF(%FF512, N3, L4, P17);
NOR8DFF(%FF768, N4, L5, P16);
NOR8DFF(%FF1024, N5, L6, P15);
NOR8DFF(%FF1280, N6, L7, P14);
NOR8DFF(%FF1536, N7, L8, P13);
NOR8DFF(%FF1792, N8, L9, P12);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:16R8
%PartNumber:CPL16R8-35
%LastNode ? ?
%NumPins:20
%FDF AND 0 P2 ~P2 N1 ~N1 P3 ~P3 N2 ~N2 P4 ~P4 N3 ~N3 P5 ~P5 N4 ~N4
     P6 ~P6 N5 ~N5 P7 ~P7 N6 ~N6 P8 ~P8 N7 ~N7 P9 ~P9 N8 ~N8 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
 LNOR(%InFuse,%InFuse+32,%InFuse+64,%InFuse+96,%InFuse+128,%InFuse+160,%InFuse+192,%InFuse+224;TLNode);
 DQFF(TLNode,P1;NodeInp;15,15,30,0,20,20,25,25,30,0,20,20);
 TSB(NodeInp,L1;OutPin;35,35,35,35,35,35,35,35);
%MACEND;

LINV(P11;L1);
NOR8DFF(%FF00, N1, L2, P19);
NOR8DFF(%FF256, N2, L3, P18);
NOR8DFF(%FF512, N3, L4, P17);
NOR8DFF(%FF768, N4, L5, P16);
NOR8DFF(%FF1024, N5, L6, P15);
NOR8DFF(%FF1280, N6, L7, P14);
NOR8DFF(%FF1536, N7, L8, P13);
NOR8DFF(%FF1792, N8, L9, P12);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L10
%PartNumber:CPL20L10-15
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P15 ~P15 P11 ~P11 P13 ~P13 *

%MACRO NOR3ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120; OutPin; 5,5,15,15);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+150; TNode; 5,5,15,15);
  TSB(TNode, %InFuse; OutPin; 15,15,15,15,15,15,15,15);
 %END;
%MACEND;

NOR3ENABLE(%SF00, %FF00, P23, N1);
NOR3ENABLE(%SF160, %FF160, P22, N2);
NOR3ENABLE(%SF320, %FF320, P21, N3);
NOR3ENABLE(%SF480, %FF480, P20, N4);
NOR3ENABLE(%SF640, %FF640, P19, N5);
NOR3ENABLE(%SF800, %FF800, P18, N6);
NOR3ENABLE(%SF960, %FF960, P17, N7);
NOR3ENABLE(%SF1120, %FF1120, P16, N8);
NOR3ENABLE(%SF1280, %FF1280, P15, N9);
NOR3ENABLE(%SF1440, %FF1440, P14, N10);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L10
%PartNumber:CPL20L10-20
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P15 ~P15 P11 ~P11 P13 ~P13 *

%MACRO NOR3ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120; OutPin; 10,10,20,20);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+150; TNode; 10,10,20,20);
  TSB(TNode, %InFuse; OutPin; 15,15,15,15,15,15,15,15);
 %END;
%MACEND;

NOR3ENABLE(%SF00, %FF00, P23, N1);
NOR3ENABLE(%SF160, %FF160, P22, N2);
NOR3ENABLE(%SF320, %FF320, P21, N3);
NOR3ENABLE(%SF480, %FF480, P20, N4);
NOR3ENABLE(%SF640, %FF640, P19, N5);
NOR3ENABLE(%SF800, %FF800, P18, N6);
NOR3ENABLE(%SF960, %FF960, P17, N7);
NOR3ENABLE(%SF1120, %FF1120, P16, N8);
NOR3ENABLE(%SF1280, %FF1280, P15, N9);
NOR3ENABLE(%SF1440, %FF1440, P14, N10);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L10
%PartNumber:CPL20L10-25
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P15 ~P15 P11 ~P11 P13 ~P13 *

%MACRO NOR3ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120; OutPin; 15,15,25,25);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+120; TNode; 15,15,25,25);
  TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

NOR3ENABLE(%SF00, %FF00, P23, N1);
NOR3ENABLE(%SF160, %FF160, P22, N2);
NOR3ENABLE(%SF320, %FF320, P21, N3);
NOR3ENABLE(%SF480, %FF480, P20, N4);
NOR3ENABLE(%SF640, %FF640, P19, N5);
NOR3ENABLE(%SF800, %FF800, P18, N6);
NOR3ENABLE(%SF960, %FF960, P17, N7);
NOR3ENABLE(%SF1120, %FF1120, P16, N8);
NOR3ENABLE(%SF1280, %FF1280, P15, N9);
NOR3ENABLE(%SF1440, %FF1440, P14, N10);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L10
%PartNumber:CPL20L10-35
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P15 ~P15 P11 ~P11 P13 ~P13 *

%MACRO NOR3ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120; OutPin; 25,25,35,35);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+120; TNode; 25,25,35,35);
  TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

NOR3ENABLE(%SF00, %FF00, P23, N1);
NOR3ENABLE(%SF160, %FF160, P22, N2);
NOR3ENABLE(%SF320, %FF320, P21, N3);
NOR3ENABLE(%SF480, %FF480, P20, N4);
NOR3ENABLE(%SF640, %FF640, P19, N5);
NOR3ENABLE(%SF800, %FF800, P18, N6);
NOR3ENABLE(%SF960, %FF960, P17, N7);
NOR3ENABLE(%SF1120, %FF1120, P16, N8);
NOR3ENABLE(%SF1280, %FF1280, P15, N9);
NOR3ENABLE(%SF1440, %FF1440, P14, N10);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L8
%PartNumber:CPL20L8-15
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P23 ~P23 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P14 ~P14 P11 ~P11 P13 ~P13 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
     %InFuse+240, %InFuse+280; OutPin; 5,5,15,15);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 5,5,15,15);
  TSB(TNode, %InFuse; OutPin; 12,12,12,12,12,12,12,12);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P22, N1);
NOR7ENABLE(%SF320, %FF320, P21, N2);
NOR7ENABLE(%SF640, %FF640, P20, N3);
NOR7ENABLE(%SF960, %FF960, P19, N4);
NOR7ENABLE(%SF1280, %FF1280, P18, N5);
NOR7ENABLE(%SF1600, %FF1600, P17, N6);
NOR7ENABLE(%SF1920, %FF1920, P16, N7);
NOR7ENABLE(%SF2240, %FF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L8
%PartNumber:CPL20L8-20
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P23 ~P23 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P14 ~P14 P11 ~P11 P13 ~P13 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
     %InFuse+240, %InFuse+280; OutPin; 10,10,20,20);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 10,10,20,20);
  TSB(TNode, %InFuse; OutPin; 20,20,20,20,20,20,20,20);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P22, N1);
NOR7ENABLE(%SF320, %FF320, P21, N2);
NOR7ENABLE(%SF640, %FF640, P20, N3);
NOR7ENABLE(%SF960, %FF960, P19, N4);
NOR7ENABLE(%SF1280, %FF1280, P18, N5);
NOR7ENABLE(%SF1600, %FF1600, P17, N6);
NOR7ENABLE(%SF1920, %FF1920, P16, N7);
NOR7ENABLE(%SF2240, %FF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L8
%PartNumber:CPL20L8-25
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P23 ~P23 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P14 ~P14 P11 ~P11 P13 ~P13 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
     %InFuse+240, %InFuse+280; OutPin; 15,15,25,25);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 15,15,25,25);
  TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P22, N1);
NOR7ENABLE(%SF320, %FF320, P21, N2);
NOR7ENABLE(%SF640, %FF640, P20, N3);
NOR7ENABLE(%SF960, %FF960, P19, N4);
NOR7ENABLE(%SF1280, %FF1280, P18, N5);
NOR7ENABLE(%SF1600, %FF1600, P17, N6);
NOR7ENABLE(%SF1920, %FF1920, P16, N7);
NOR7ENABLE(%SF2240, %FF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20L8
%PartNumber:CPL20L8-35
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P1 ~P1 P3 ~P3 P23 ~P23 P4 ~P4 P21 ~P21 P5 ~P5 P20 ~P20
     P6 ~P6 P19 ~P19 P7 ~P7 P18 ~P18 P8 ~P8 P17 ~P17 P9 ~P9 P16 ~P16
     P10 ~P10 P14 ~P14 P11 ~P11 P13 ~P13 *

%MACRO NOR7ENABLE(EnableFuse:%SF, InFuse:%FF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
     %InFuse+240, %InFuse+280; OutPin; 25,25,35,35);
 %ELSE
  NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 25,25,35,35);
  TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

NOR7ENABLE(%SF00, %FF00, P22, N1);
NOR7ENABLE(%SF320, %FF320, P21, N2);
NOR7ENABLE(%SF640, %FF640, P20, N3);
NOR7ENABLE(%SF960, %FF960, P19, N4);
NOR7ENABLE(%SF1280, %FF1280, P18, N5);
NOR7ENABLE(%SF1600, %FF1600, P17, N6);
NOR7ENABLE(%SF1920, %FF1920, P16, N7);
NOR7ENABLE(%SF2240, %FF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R4
%PartNumber:CPL20R4-15
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 P16 ~P16 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;2,2,12,0,10,10,12,12,12,0,10,10);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 5,5,15,15);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 5,5,15,15);
   TSB(TNode, %InFuse; OutPin; 12,12,12,12,12,12,12,12);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR7ENABLE(%FF320, %SF320, P21, N2);
NOR8DFF(%FF640, N3, L2, P20);
NOR8DFF(%FF960, N4, L3, P19);
NOR8DFF(%FF1280, N5, L4, P18);
NOR8DFF(%FF1600, N6, L5, P17);
NOR7ENABLE(%FF1920, %SF1920, P16, N7);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R4
%PartNumber:CPL20R4-20
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 P16 ~P16 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;5,5,15,0,15,15,15,15,15,0,15,15);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 10,10,20,20);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 10,10,20,20);
   TSB(TNode, %InFuse; OutPin; 20,20,20,20,20,20,20,20);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR7ENABLE(%FF320, %SF320, P21, N2);
NOR8DFF(%FF640, N3, L2, P20);
NOR8DFF(%FF960, N4, L3, P19);
NOR8DFF(%FF1280, N5, L4, P18);
NOR8DFF(%FF1600, N6, L5, P17);
NOR7ENABLE(%FF1920, %SF1920, P16, N7);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R4
%PartNumber:CPL20R4-25
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 P16 ~P16 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;5,5,20,0,15,15,15,15,20,0,15,15);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 15,15,25,25);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 15,15,25,25);
   TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR7ENABLE(%FF320, %SF320, P21, N2);
NOR8DFF(%FF640, N3, L2, P20);
NOR8DFF(%FF960, N4, L3, P19);
NOR8DFF(%FF1280, N5, L4, P18);
NOR8DFF(%FF1600, N6, L5, P17);
NOR7ENABLE(%FF1920, %SF1920, P16, N7);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R4
%PartNumber:CPL20R4-35
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 P21 ~P21 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 P16 ~P16 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;15,15,30,0,20,20,25,25,30,0,20,20);
  TSB(NodeInp,L1;OutPin;25,25,25,25,25,25,25,25);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 25,25,35,35);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 25,25,35,35);
   TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR7ENABLE(%FF320, %SF320, P21, N2);
NOR8DFF(%FF640, N3, L2, P20);
NOR8DFF(%FF960, N4, L3, P19);
NOR8DFF(%FF1280, N5, L4, P18);
NOR8DFF(%FF1600, N6, L5, P17);
NOR7ENABLE(%FF1920, %SF1920, P16, N7);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R6
%PartNumber:CPL20R6-15
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;2,2,12,0,10,10,12,12,12,0,10,10);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 5,5,15,15);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 5,5,15,15);
  TSB(TNode, %InFuse; OutPin; 12,12,12,12,12,12,12,12);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR8DFF(%FF320, N2, L2, P21);
NOR8DFF(%FF640, N3, L3, P20);
NOR8DFF(%FF960, N4, L4, P19);
NOR8DFF(%FF1280, N5, L5, P18);
NOR8DFF(%FF1600, N6, L6, P17);
NOR8DFF(%FF1920, N7, L7, P16);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R6
%PartNumber:CPL20R6-20
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;5,5,15,0,15,15,15,15,15,0,15,15);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 10,10,20,20);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 10,10,20,20);
  TSB(TNode, %InFuse; OutPin; 20,20,20,20,20,20,20,20);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR8DFF(%FF320, N2, L2, P21);
NOR8DFF(%FF640, N3, L3, P20);
NOR8DFF(%FF960, N4, L4, P19);
NOR8DFF(%FF1280, N5, L5, P18);
NOR8DFF(%FF1600, N6, L6, P17);
NOR8DFF(%FF1920, N7, L7, P16);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R6
%PartNumber:CPL20R6-25
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;5,5,20,0,15,15,15,15,20,0,15,15);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 15,15,25,25);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 15,15,25,25);
  TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR8DFF(%FF320, N2, L2, P21);
NOR8DFF(%FF640, N3, L3, P20);
NOR8DFF(%FF960, N4, L4, P19);
NOR8DFF(%FF1280, N5, L5, P18);
NOR8DFF(%FF1600, N6, L6, P17);
NOR8DFF(%FF1920, N7, L7, P16);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R6
%PartNumber:CPL20R6-35
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 P22 ~P22 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 P15 ~P15
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;15,15,30,0,20,20,25,25,30,0,20,20);
  TSB(NodeInp,L1;OutPin;25,25,25,25,25,25,25,25);
%MACEND;

%MACRO NOR7ENABLE(InFuse:%FF, EnableFuse:%SF, OutPin:%TEXT, TNode:%TEXT);
 %IF %EnableFuse..%EnableFuse+39 = 1 %THEN
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; OutPin; 25,25,35,35);
 %ELSE
   NOR(%InFuse+40, %InFuse+80, %InFuse+120, %InFuse+160, %InFuse+200,
      %InFuse+240, %InFuse+280; TNode; 25,25,35,35);
  TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
 %END;
%MACEND;

LINV(P13; L1);
NOR7ENABLE(%FF00, %SF00, P22, N1);
NOR8DFF(%FF320, N2, L2, P21);
NOR8DFF(%FF640, N3, L3, P20);
NOR8DFF(%FF960, N4, L4, P19);
NOR8DFF(%FF1280, N5, L5, P18);
NOR8DFF(%FF1600, N6, L6, P17);
NOR8DFF(%FF1920, N7, L7, P16);
NOR7ENABLE(%FF2240, %SF2240, P15, N8);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R8
%PartNumber:CPL20R8-15
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 N1 ~N1 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 N8 ~N8
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;2,2,12,0,10,10,12,12,12,0,10,10);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P13; L1);
NOR8DFF(%FF00, N1, L2, P22);
NOR8DFF(%FF320, N2, L3, P21);
NOR8DFF(%FF640, N3, L4, P20);
NOR8DFF(%FF960, N4, L5, P19);
NOR8DFF(%FF1280, N5, L6, P18);
NOR8DFF(%FF1600, N6, L7, P17);
NOR8DFF(%FF1920, N7, L8, P16);
NOR8DFF(%FF2240, N8, L9, P15);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R8
%PartNumber:CPL20R8-20
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 N1 ~N1 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 N8 ~N8
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;5,5,15,0,15,15,15,15,15,0,15,15);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P13; L1);
NOR8DFF(%FF00, N1, L2, P22);
NOR8DFF(%FF320, N2, L3, P21);
NOR8DFF(%FF640, N3, L4, P20);
NOR8DFF(%FF960, N4, L5, P19);
NOR8DFF(%FF1280, N5, L6, P18);
NOR8DFF(%FF1600, N6, L7, P17);
NOR8DFF(%FF1920, N7, L8, P16);
NOR8DFF(%FF2240, N8, L9, P15);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R8
%PartNumber:CPL20R8-25
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 N1 ~N1 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 N8 ~N8
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;5,5,20,0,15,15,15,15,20,0,15,15);
  TSB(NodeInp,L1;OutPin;20,20,20,20,20,20,20,20);
%MACEND;

LINV(P13; L1);
NOR8DFF(%FF00, N1, L2, P22);
NOR8DFF(%FF320, N2, L3, P21);
NOR8DFF(%FF640, N3, L4, P20);
NOR8DFF(%FF960, N4, L5, P19);
NOR8DFF(%FF1280, N5, L6, P18);
NOR8DFF(%FF1600, N6, L7, P17);
NOR8DFF(%FF1920, N7, L8, P16);
NOR8DFF(%FF2240, N8, L9, P15);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:20R8
%PartNumber:CPL20R8-35
%LastNode ? ?
%NumPins:24
%FDF AND 0 P2 ~P2 P23 ~P23  P3 ~P3 N1 ~N1 P4 ~P4 N2 ~N2 P5 ~P5 N3 ~N3 P6 ~P6
   N4 ~N4 P7 ~P7 N5 ~N5 P8 ~P8 N6 ~N6 P9 ~P9 N7 ~N7 P10 ~P10 N8 ~N8
   P11 ~P11 P14 ~P14 *

%MACRO NOR8DFF(InFuse:%FF, NodeInp:%TEXT, TLNode:%TEXT, OutPin:%TEXT);
  LNOR(%InFuse,%InFuse+40,%InFuse+80,%InFuse+120,%InFuse+160,%InFuse+200,%InFuse+240,%InFuse+280;TLNode);
  DQFF(TLNode,P1;NodeInp;15,15,30,0,20,20,25,25,30,0,20,20);
  TSB(NodeInp,L1;OutPin;25,25,25,25,25,25,25,25);
%MACEND;

LINV(P13; L1);
NOR8DFF(%FF00, N1, L2, P22);
NOR8DFF(%FF320, N2, L3, P21);
NOR8DFF(%FF640, N3, L4, P20);
NOR8DFF(%FF960, N4, L5, P19);
NOR8DFF(%FF1280, N5, L6, P18);
NOR8DFF(%FF1600, N6, L7, P17);
NOR8DFF(%FF1920, N7, L8, P16);
NOR8DFF(%FF2240, N8, L9, P15);
%EndModel

%StartModel
%Manufacturer:SAMSUNG
%Type:22V10
%PartNumber:CPL22V10-25
%LastNode ? ?
%NumPins: 24
%FDF AND 0 P1 ~P1 N1 ~N1 P2 ~P2 N2 ~N2 P3 ~P3 N3 ~N3 P4 ~P4 N4 ~N4 P5 ~P5
     N5 ~N5 P6 ~P6 N6 ~N6 P7 ~P7 N7 ~N7 P8 ~P8 N8 ~N8 P9 ~P9 N9 ~N9
     P10 ~P10 N10 ~N10 P11 ~P11 P13 ~P13 *

%MACRO LOR16(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396,%InFuse+440,%InFuse+484,
     %InFuse+528,%InFuse+572,%InFuse+616,%InFuse+660; OutLNode);
%MACEND;

%MACRO LOR14(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396,%InFuse+440,%InFuse+484,
     %InFuse+528,%InFuse+572; OutLNode);
%MACEND;

%MACRO LOR12(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396,%InFuse+440,
     %InFuse+484; OutLNode);
%MACEND;

%MACRO LOR10(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396; OutLNode);
%MACEND;

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308; OutLNode);
%MACEND;

%MACRO V10Mac(S1:%SF, S0:%SF, FeedBack:%TEXT, OrOutput:%TEXT, TNode:%TEXT,
              OutPin:%TEXT, InFuse:%FF, EnableFuse:%SF, TLNode:%TEXT);
 %CASE %S1,%S0
   0:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 5,5,15,0,15,15,15,15,25,25,15,15,15,0,15,15,25,25,25,25);
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
    %END;
    INV(TNode; FeedBack; 0,0,0,0);
  |1:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 5,5,15,0,15,15,15,15,25,25,15,15,15,0,15,15,25,25,25,25);
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
    %END;
    INV(TNode; FeedBack; 0,0,0,0);
  |2:
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     INV(OrOutput; OutPin; 15,15,25,25);
    %ELSE
     INV(OrOutput; TNode; 15,15,25,25);
     TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
    %END;
    BUF(OutPin; FeedBack; 0,0,0,0);
  |3:
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     BUF(OrOutput; OutPin; 15,15,25,25);
    %ELSE
     BUF(OrOutput; TNode; 15,15,25,25);
     TSB(TNode, %InFuse; OutPin; 25,25,25,25,25,25,25,25);
    %END;
    BUF(OutPin; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LAND(%FF5764; L21);
LNOR(%FF00, IPH; L22);

LOR8(%FF88, L1);
LOR10(%FF484, L2);
LOR12(%FF968, L3);
LOR14(%FF1540, L4);
LOR16(%FF2200, L5);
LOR16(%FF2948, L6);
LOR14(%FF3696, L7);
LOR12(%FF4356, L8);
LOR10(%FF4928, L9);
LOR8(%FF5412, L10);

V10Mac(%SF5809, %SF5808, N1, L1, N11, P23, %FF44, %SF44, L11);
V10Mac(%SF5811, %SF5810, N2, L2, N12, P22, %FF440, %SF440, L12);
V10Mac(%SF5813, %SF5812, N3, L3, N13, P21, %FF924, %SF924, L13);
V10Mac(%SF5815, %SF5814, N4, L4, N14, P20, %FF1496, %SF1496, L14);
V10Mac(%SF5817, %SF5816, N5, L5, N15, P19, %FF2156, %SF2156, L15);
V10Mac(%SF5819, %SF5818, N6, L6, N16, P18, %FF2904, %SF2904, L16);
V10Mac(%SF5821, %SF5820, N7, L7, N17, P17, %FF3652, %SF3652, L17);
V10Mac(%SF5823, %SF5822, N8, L8, N18, P16, %FF4312, %SF4312, L18);
V10Mac(%SF5825, %SF5824, N9, L9, N19, P15, %FF4884, %SF4884, L19);
V10Mac(%SF5827, %SF5826, N10, L10, N20, P14, %FF5368, %SF5368, L20);
%EndModel

%StartModel
%Manufacturer:Samsung
%Type:22V10
%PartNumber:CPL22V10-35
%LastNode ? ?
%NumPins: 24
%FDF AND 0 P1 ~P1 N1 ~N1 P2 ~P2 N2 ~N2 P3 ~P3 N3 ~N3 P4 ~P4 N4 ~N4 P5 ~P5
     N5 ~N5 P6 ~P6 N6 ~N6 P7 ~P7 N7 ~N7 P8 ~P8 N8 ~N8 P9 ~P9 N9 ~N9
     P10 ~P10 N10 ~N10 P11 ~P11 P13 ~P13 *

%MACRO LOR16(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396,%InFuse+440,%InFuse+484,
     %InFuse+528,%InFuse+572,%InFuse+616,%InFuse+660; OutLNode);
%MACEND;

%MACRO LOR14(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396,%InFuse+440,%InFuse+484,
     %InFuse+528,%InFuse+572; OutLNode);
%MACEND;

%MACRO LOR12(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396,%InFuse+440,
     %InFuse+484; OutLNode);
%MACEND;

%MACRO LOR10(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308,%InFuse+352,%InFuse+396; OutLNode);
%MACEND;

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+44,%InFuse+88,%InFuse+132,%InFuse+176,%InFuse+220,
     %InFuse+264,%InFuse+308; OutLNode);
%MACEND;

%MACRO V10Mac(S1:%SF, S0:%SF, FeedBack:%TEXT, OrOutput:%TEXT, TNode:%TEXT,
              OutPin:%TEXT, InFuse:%FF, EnableFuse:%SF, TLNode:%TEXT);
 %CASE %S1,%S0
   0:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 15,15,30,0,25,25,25,25,35,35,25,25,30,0,25,25,25,25,35,35);
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    INV(TNode; FeedBack; 0,0,0,0);
  |1:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 15,15,30,0,25,25,25,25,35,35,25,25,30,0,25,25,35,35,35,35);
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    INV(TNode; FeedBack; 0,0,0,0);
  |2:
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     INV(OrOutput; OutPin; 25,25,35,35);
    %ELSE
     INV(OrOutput; TNode; 25,25,35,35);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(OutPin; FeedBack; 0,0,0,0);
  |3:
    %IF %EnableFuse..%EnableFuse+43 = 1 %THEN
     BUF(OrOutput; OutPin; 25,25,35,35);
    %ELSE
     BUF(OrOutput; TNode; 25,25,35,35);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(OutPin; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LAND(%FF5764; L21);
LNOR(%FF00, IPH; L22);

LOR8(%FF88, L1);
LOR10(%FF484, L2);
LOR12(%FF968, L3);
LOR14(%FF1540, L4);
LOR16(%FF2200, L5);
LOR16(%FF2948, L6);
LOR14(%FF3696, L7);
LOR12(%FF4356, L8);
LOR10(%FF4928, L9);
LOR8(%FF5412, L10);

V10Mac(%SF5809, %SF5808, N1, L1, N11, P23, %FF44, %SF44, L11);
V10Mac(%SF5811, %SF5810, N2, L2, N12, P22, %FF440, %SF440, L12);
V10Mac(%SF5813, %SF5812, N3, L3, N13, P21, %FF924, %SF924, L13);
V10Mac(%SF5815, %SF5814, N4, L4, N14, P20, %FF1496, %SF1496, L14);
V10Mac(%SF5817, %SF5816, N5, L5, N15, P19, %FF2156, %SF2156, L15);
V10Mac(%SF5819, %SF5818, N6, L6, N16, P18, %FF2904, %SF2904, L16);
V10Mac(%SF5821, %SF5820, N7, L7, N17, P17, %FF3652, %SF3652, L17);
V10Mac(%SF5823, %SF5822, N8, L8, N18, P16, %FF4312, %SF4312, L18);
V10Mac(%SF5825, %SF5824, N9, L9, N19, P15, %FF4884, %SF4884, L19);
V10Mac(%SF5827, %SF5826, N10, L10, N20, P14, %FF5368, %SF5368, L20);
%EndModel
