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

%StartModel
%Manufacturer:Altera
%Type:EP310
%PartNumber:EP310DC
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P11 P11 ~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 LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO Output(Out1:%SF, OrOutput:%TEXT, TLNode:%TEXT, TNode:%TEXT,
             EnableFuse:%SF, OutPin:%TEXT, InFuse:%FF);

%CASE %Out1, %Out1+1, %Out1+2, %Out1+3
  14:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 28,28,32,0,16,16,55,55,1,1,28,28,32,0,16,16,55,55,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  |13:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 28,28,32,0,16,16,55,55,1,1,28,28,32,0,16,16,55,55,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
 |11:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 50,50,50,50);
    %ELSE
     INV(OrOutput; TNode; 50,50,50,50);
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  |7:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 50,50,50,50);
    %ELSE
     BUF(OrOutput; TNode; 50,50,50,50);
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  %END;
%MACEND;

%MACRO 310FeedBack(FB1:%SF, OutPin:%TEXT, TNode:%TEXT, OutLNode:%TEXT,
                FeedBack:%TEXT);

%CASE %FB1, %FB1+1, %FB1+2
   6:
    BUF(OutPin; FeedBack; 2,2,2,2);
  |5:
    BUF(TNode; FeedBack; 0,0,0,0);
  |3:
    BUF(OutLNode; FeedBack; 0,0,0,0);
%END;
%MACEND;


LAND(%FF2592; L21);
LNOR(%FF2628, IPH; L22);

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

Output(%SF2664, L1, L9, N9, %SF288, P19, %FF288);
Output(%SF2671, L2, L10, N10, %SF612, P18, %FF612);
Output(%SF2678, L3, L11, N11, %SF936, P17, %FF936);
Output(%SF2685, L4, L12, N12, %SF1260, P16, %FF1260);
Output(%SF2692, L5, L13, N13, %SF1584, P15, %FF1584);
Output(%SF2699, L6, L14, N14, %SF1908, P14, %FF1908);
Output(%SF2706, L7, L15, N15, %SF2232, P13, %FF2232);
Output(%SF2713, L8, L16, N16, %SF2556, P12, %FF2556);

310FeedBack(%SF2668, P19, N9, L1, N1);
310FeedBack(%SF2675, P18, N10, L2, N2);
310FeedBack(%SF2682, P17, N11, L3, N3);
310FeedBack(%SF2689, P16, N12, L4, N4);
310FeedBack(%SF2696, P15, N13, L5, N5);
310FeedBack(%SF2703, P14, N14, L6, N6);
310FeedBack(%SF2710, P13, N15, L7, N7);
310FeedBack(%SF2717, P12, N16, L8, N8);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP310
%PartNumber:EP310DC-2
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P11 P11 ~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 LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO Output(Out1:%SF, OrOutput:%TEXT, TLNode:%TEXT, TNode:%TEXT,
             EnableFuse:%SF, OutPin:%TEXT, InFuse:%FF);

%CASE %Out1, %Out1+1, %Out1+2, %Out1+3
  14:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 22,22,28,0,14,14,45,45,1,1,22,22,28,0,14,14,45,45,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
 |13:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 22,22,28,0,14,14,45,45,1,1,22,22,28,0,14,14,45,45,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
 |11:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 35,35,35,35);
    %ELSE
     INV(OrOutput; TNode; 35,35,35,35);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
  |7:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 35,35,35,35);
    %ELSE
     BUF(OrOutput; TNode; 35,35,35,35);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
  %END;
%MACEND;

%MACRO 310FeedBack(FB1:%SF, OutPin:%TEXT, TNode:%TEXT, OutLNode:%TEXT,
                FeedBack:%TEXT);

%CASE %FB1, %FB1+1, %FB1+2
   6:
    BUF(OutPin; FeedBack; 2,2,2,2);
  |5:
    BUF(TNode; FeedBack; 0,0,0,0);
  |3:
    BUF(OutLNode; FeedBack; 0,0,0,0);
%END;
%MACEND;


LAND(%FF2592; L21);
LNOR(%FF2628, IPH; L22);

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

Output(%SF2664, L1, L9, N9, %SF288, P19, %FF288);
Output(%SF2671, L2, L10, N10, %SF612, P18, %FF612);
Output(%SF2678, L3, L11, N11, %SF936, P17, %FF936);
Output(%SF2685, L4, L12, N12, %SF1260, P16, %FF1260);
Output(%SF2692, L5, L13, N13, %SF1584, P15, %FF1584);
Output(%SF2699, L6, L14, N14, %SF1908, P14, %FF1908);
Output(%SF2706, L7, L15, N15, %SF2232, P13, %FF2232);
Output(%SF2713, L8, L16, N16, %SF2556, P12, %FF2556);

310FeedBack(%SF2668, P19, N9, L1, N1);
310FeedBack(%SF2675, P18, N10, L2, N2);
310FeedBack(%SF2682, P17, N11, L3, N3);
310FeedBack(%SF2689, P16, N12, L4, N4);
310FeedBack(%SF2696, P15, N13, L5, N5);
310FeedBack(%SF2703, P14, N14, L6, N6);
310FeedBack(%SF2710, P13, N15, L7, N7);
310FeedBack(%SF2717, P12, N16, L8, N8);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP310
%PartNumber:EP310DC-3
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P11 P11 ~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 LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO Output(Out1:%SF, OrOutput:%TEXT, TLNode:%TEXT, TNode:%TEXT,
             EnableFuse:%SF, OutPin:%TEXT, InFuse:%FF);

%CASE %Out1, %Out1+1, %Out1+2, %Out1+3
  14:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 24,24,30,0,15,15,50,50,1,1,24,24,30,0,15,15,50,50,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 40,40,40,40,40,40,40,40);
    %END;
 |13:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 24,24,30,0,15,15,50,50,1,1,24,24,30,0,15,15,50,50,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 40,40,40,40,40,40,40,40);
    %END;
 |11:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 40,40,40,40);
    %ELSE
     INV(OrOutput; TNode; 40,40,40,40);
     TSB(TNode, %InFuse; OutPin; 40,40,40,40,40,40,40,40);
    %END;
  |7:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 40,40,40,40);
    %ELSE
     BUF(OrOutput; TNode; 40,40,40,40);
     TSB(TNode, %InFuse; OutPin; 40,40,40,40,40,40,40,40);
    %END;
  %END;
%MACEND;

%MACRO 310FeedBack(FB1:%SF, OutPin:%TEXT, TNode:%TEXT, OutLNode:%TEXT,
                FeedBack:%TEXT);

%CASE %FB1, %FB1+1, %FB1+2
   6:
    BUF(OutPin; FeedBack; 2,2,2,2);
  |5:
    BUF(TNode; FeedBack; 0,0,0,0);
  |3:
    BUF(OutLNode; FeedBack; 0,0,0,0);
%END;
%MACEND;


LAND(%FF2592; L21);
LNOR(%FF2628, IPH; L22);

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

Output(%SF2664, L1, L9, N9, %SF288, P19, %FF288);
Output(%SF2671, L2, L10, N10, %SF612, P18, %FF612);
Output(%SF2678, L3, L11, N11, %SF936, P17, %FF936);
Output(%SF2685, L4, L12, N12, %SF1260, P16, %FF1260);
Output(%SF2692, L5, L13, N13, %SF1584, P15, %FF1584);
Output(%SF2699, L6, L14, N14, %SF1908, P14, %FF1908);
Output(%SF2706, L7, L15, N15, %SF2232, P13, %FF2232);
Output(%SF2713, L8, L16, N16, %SF2556, P12, %FF2556);

310FeedBack(%SF2668, P19, N9, L1, N1);
310FeedBack(%SF2675, P18, N10, L2, N2);
310FeedBack(%SF2682, P17, N11, L3, N3);
310FeedBack(%SF2689, P16, N12, L4, N4);
310FeedBack(%SF2696, P15, N13, L5, N5);
310FeedBack(%SF2703, P14, N14, L6, N6);
310FeedBack(%SF2710, P13, N15, L7, N7);
310FeedBack(%SF2717, P12, N16, L8, N8);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP310
%PartNumber:EP310DI
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P11 P11 ~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 LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO Output(Out1:%SF, OrOutput:%TEXT, TLNode:%TEXT, TNode:%TEXT,
             EnableFuse:%SF, OutPin:%TEXT, InFuse:%FF);

%CASE %Out1, %Out1+1, %Out1+2, %Out1+3
  14:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 28,28,32,0,16,16,55,55,1,1,28,28,32,0,16,16,55,55,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
 |13:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 28,28,32,0,16,16,55,55,1,1,28,28,32,0,16,16,55,55,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
 |11:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 50,50,50,50);
    %ELSE
     INV(OrOutput; TNode; 50,50,50,50);
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  |7:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 50,50,50,50);
    %ELSE
     BUF(OrOutput; TNode; 50,50,50,50);
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  %END;
%MACEND;

%MACRO 310FeedBack(FB1:%SF, OutPin:%TEXT, TNode:%TEXT, OutLNode:%TEXT,
                FeedBack:%TEXT);

%CASE %FB1, %FB1+1, %FB1+2
   6:
    BUF(OutPin; FeedBack; 2,2,2,2);
  |5:
    BUF(TNode; FeedBack; 0,0,0,0);
  |3:
    BUF(OutLNode; FeedBack; 0,0,0,0);
%END;
%MACEND;


LAND(%FF2592; L21);
LNOR(%FF2628, IPH; L22);

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

Output(%SF2664, L1, L9, N9, %SF288, P19, %FF288);
Output(%SF2671, L2, L10, N10, %SF612, P18, %FF612);
Output(%SF2678, L3, L11, N11, %SF936, P17, %FF936);
Output(%SF2685, L4, L12, N12, %SF1260, P16, %FF1260);
Output(%SF2692, L5, L13, N13, %SF1584, P15, %FF1584);
Output(%SF2699, L6, L14, N14, %SF1908, P14, %FF1908);
Output(%SF2706, L7, L15, N15, %SF2232, P13, %FF2232);
Output(%SF2713, L8, L16, N16, %SF2556, P12, %FF2556);

310FeedBack(%SF2668, P19, N9, L1, N1);
310FeedBack(%SF2675, P18, N10, L2, N2);
310FeedBack(%SF2682, P17, N11, L3, N3);
310FeedBack(%SF2689, P16, N12, L4, N4);
310FeedBack(%SF2696, P15, N13, L5, N5);
310FeedBack(%SF2703, P14, N14, L6, N6);
310FeedBack(%SF2710, P13, N15, L7, N7);
310FeedBack(%SF2717, P12, N16, L8, N8);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP310
%PartNumber:EP310DM
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P11 P11 ~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 LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO Output(Out1:%SF, OrOutput:%TEXT, TLNode:%TEXT, TNode:%TEXT,
             EnableFuse:%SF, OutPin:%TEXT, InFuse:%FF);

%CASE %Out1, %Out1+1, %Out1+2, %Out1+3
  14:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 28,28,32,0,16,16,55,55,1,1,28,28,32,0,16,16,55,55,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(TNode; OutPin; 0,0,0,0);
    %ELSE
     ITSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
 |13:
     LOR(OrOutput, L21; TLNode);
     DQFFC(TLNode, P1, L22; TNode; 28,28,32,0,16,16,55,55,1,1,28,28,32,0,16,16,55,55,1,1);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
 |11:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 50,50,50,50);
    %ELSE
     INV(OrOutput; TNode; 50,50,50,50);
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  |7:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 50,50,50,50);
    %ELSE
     BUF(OrOutput; TNode; 50,50,50,50);
     TSB(TNode, %InFuse; OutPin; 50,50,50,50,50,50,50,50);
    %END;
  %END;
%MACEND;

%MACRO 310FeedBack(FB1:%SF, OutPin:%TEXT, TNode:%TEXT, OutLNode:%TEXT,
                FeedBack:%TEXT);

%CASE %FB1, %FB1+1, %FB1+2
   6:
    BUF(OutPin; FeedBack; 2,2,2,2);
  |5:
    BUF(TNode; FeedBack; 0,0,0,0);
  |3:
    BUF(OutLNode; FeedBack; 0,0,0,0);
%END;
%MACEND;


LAND(%FF2592; L21);
LNOR(%FF2628, IPH; L22);

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

Output(%SF2664, L1, L9, N9, %SF288, P19, %FF288);
Output(%SF2671, L2, L10, N10, %SF612, P18, %FF612);
Output(%SF2678, L3, L11, N11, %SF936, P17, %FF936);
Output(%SF2685, L4, L12, N12, %SF1260, P16, %FF1260);
Output(%SF2692, L5, L13, N13, %SF1584, P15, %FF1584);
Output(%SF2699, L6, L14, N14, %SF1908, P14, %FF1908);
Output(%SF2706, L7, L15, N15, %SF2232, P13, %FF2232);
Output(%SF2713, L8, L16, N16, %SF2556, P12, %FF2556);

310FeedBack(%SF2668, P19, N9, L1, N1);
310FeedBack(%SF2675, P18, N10, L2, N2);
310FeedBack(%SF2682, P17, N11, L3, N3);
310FeedBack(%SF2689, P16, N12, L4, N4);
310FeedBack(%SF2696, P15, N13, L5, N5);
310FeedBack(%SF2703, P14, N14, L6, N6);
310FeedBack(%SF2710, P13, N15, L7, N7);
310FeedBack(%SF2717, P12, N16, L8, N8);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320DC
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     INV(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     BUF(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320DC-1
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 29,29,29,29);
    %ELSE
     INV(OrOutput; TNode; 29,29,29,29);
     TSB(TNode, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 29,29,29,29);
    %ELSE
     BUF(OrOutput; TNode; 29,29,29,29);
     TSB(TNode, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 17,17,20,0,10,10,17,17,20,0,10,10);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 17,17,20,0,10,10,17,17,20,0,10,10);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320DC-2
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     INV(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     BUF(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320DI
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     INV(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     BUF(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320DI-2
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     INV(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     BUF(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320DM
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT,QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     INV(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     BUF(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320PC
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     INV(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     BUF(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320PC-1
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 29,29,29,29);
    %ELSE
     INV(OrOutput; TNode; 29,29,29,29);
     TSB(TNode, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 29,29,29,29);
    %ELSE
     BUF(OrOutput; TNode; 29,29,29,29);
     TSB(TNode, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 17,17,20,0,10,10,17,17,20,0,10,10);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 17,17,20,0,10,10,17,17,20,0,10,10);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 30,30,30,30,30,30,30,30);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320PC-2
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     INV(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     BUF(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320PI
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     INV(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     BUF(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320PI-2
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     INV(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 34,34,34,34);
    %ELSE
     BUF(OrOutput; TNode; 34,34,34,34);
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 20,20,25,0,12,12,20,20,25,0,12,12);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 35,35,35,35,35,35,35,35);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel

%StartModel
%Manufacturer:Altera
%Type:EP320
%PartNumber:EP320PM
%LastNode ? ?
%NumPins: 20
%FDF AND 0 ~P1 P1 ~P2 P2 ~P3 P3 ~P4 P4 ~P5 P5 ~P6 P6 ~P7 P7 ~P8 P8 ~P9 P9
     ~P11 P11 ~N1 N1 ~N2 N2 ~N3 N3 ~N4 N4 ~N5 N5 ~N6 N6 ~N7 N7 ~N8 N8*

%MACRO LOR8(InFuse:%FF, OutLNode:%TEXT);
 LOR(%InFuse,%InFuse+36,%InFuse+72,%InFuse+108,%InFuse+144,%InFuse+180,
     %InFuse+216,%InFuse+252; OutLNode);
%MACEND;

%MACRO EP320(ArchFuse:%SF, EnableFuse:%SF, OrOutput:%TEXT, OutPin:%TEXT,
             TNode:%TEXT, InFuse:%FF, FeedBack:%TEXT, QOut:%TEXT);

%CASE %ArchFuse+3, %ArchFuse+2, %ArchFuse+1, %ArchFuse
   0:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     INV(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     INV(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(OutPin; FeedBack; 1,1,1,1);
  |3:
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(OrOutput; OutPin; 44,44,44,44);
    %ELSE
     BUF(OrOutput; TNode; 44,44,44,44);
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
     BUF(OutPin; FeedBack; 1,1,1,1);
  |12:
     INV(OrOutput; TNode; 0,0,0,0);
     DQFF(TNode, P1; QOut; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(QOut; OutPin; 0,0,0,0);
    %ELSE
     TSB(QOut, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(QOut; FeedBack; 0,0,0,0);
  |15:
     DQFF(OrOutput, P1; TNode; 25,25,33,0,16,16,25,25,33,0,16,16);
    %IF %EnableFuse..%EnableFuse+35 = 1 %THEN
     BUF(TNode; OutPin; 0,0,0,0);
    %ELSE
     TSB(TNode, %InFuse; OutPin; 45,45,45,45,45,45,45,45);
    %END;
    BUF(TNode; FeedBack; 0,0,0,0);
  %END;
%MACEND;

LOR8(%FF00, L1);
LOR8(%FF324, L2);
LOR8(%FF648, L3);
LOR8(%FF972, L4);
LOR8(%FF1296, L5);
LOR8(%FF1620, L6);
LOR8(%FF1944, L7);
LOR8(%FF2268, L8);

EP320(%SF2880, %SF288, L1, P19, N9, %FF288, N8, N17);
EP320(%SF2884, %SF612, L2, P18, N10, %FF612, N7, N18);
EP320(%SF2888, %SF936, L3, P17, N11, %FF936, N6, N19);
EP320(%SF2892, %SF1260, L4, P16, N12, %FF1260, N5, N20);
EP320(%SF2896, %SF1584, L5, P15, N13, %FF1584, N4, N21);
EP320(%SF2900, %SF1908, L6, P14, N14, %FF1908, N3, N22);
EP320(%SF2904, %SF2232, L7, P13, N15, %FF2232, N2, N23);
EP320(%SF2908, %SF2556, L8, P12, N16, %FF2556, N1, N24);
%EndModel