Name xnueva ;
PartNo 00 ;
Date 14/12/2016 ;
Revision 01 ;
Designer Engineer ;
Company Universidad ;
Assembly None ;
Location ;
Device g22v10 ;
PIN 1 = sum ;
PIN 2 = inc1 ;
PIN 3 = inc2 ;
PIN 4 = up ;
PIN 5 = down ;
PIN 14 = D ;
PIN 15 = C ;
PIN 16 = B ;
PIN 17 = A ;
$define s0 \'b\'0000
$define s1 \'b\'0001
$define s2 \'b\'0010
$define s3 \'b\'0011
$define s4 \'b\'0100
$define s5 \'b\'0101
$define s6 \'b\'0110
$define s7 \'b\'0111
$define s8 \'b\'1000
$define s9 \'b\'1001
$define s10 \'b\'1010
$define s11 \'b\'1011
$define s12 \'b\'1100
$define s13 \'b\'1101
$define s14 \'b\'1110
$define s15 \'b\'1111
sequence D, C, B, A
{
present s0
if inc1&up next s1;
if inc2&up next s2;
if inc1&down next s0;
if inc2&down next s0;
present s1
if inc1&up next s2;
if inc2&up next s3;
if inc1&down next s0;
if inc2&down next s0;
present s2
if inc1&up next s3;
if inc2&up next s4;
if inc1&down next s1;
if inc2&down next s0;
present s3
if inc1&up next s4;
if inc2&up next s5;
if inc1&down next s2;
if inc2&down next s1;
present s4
if inc1&up next s5;
if inc2&up next s6;
if inc1&down next s3;
if inc2&down next s2;
present s5
if inc1&up next s6;
if inc2&up next s7;
if inc1&down next s4;
if inc2&down next s3;
present s6
if inc1&up next s7;
if inc2&up next s8;
if inc1&down next s5;
if inc2&down next s4;
present s7
if inc1&up next s8;
if inc2&up next s9;
if inc1&down next s6;
if inc2&down next s5;
present s8
if inc1&up next s9;
if inc2&up next s10;
if inc1&down next s7;
if inc2&down next s6;
present s9
if inc1&up next s10;
if inc2&up next s11;
if inc1&down next s8;
if inc2&down next s7;
present s10
if inc1&up next s11;
if inc2&up next s12;
if inc1&down next s9;
if inc2&down next s8;
present s11
if inc1&up next s12;
if inc2&up next s13;
if inc1&down next s10;
if inc2&down next s9;
present s12
if inc1&up next s13;
if inc2&up next s14;
if inc1&down next s11;
if inc2&down next s10;
present s13
if inc1&up next s14;
if inc2&up next s15;
if inc1&down next s12;
if inc2&down next s11;
present s14
if inc1&up next s15;
if inc2&up next s15;
if inc1&down next s13;
if inc2&down next s12;
present s15
if inc1&up next s15;
if inc2&up next s15;
if inc1&down next s14;
if inc2&down next s13;
}