0001e|module compexp
0002e|title 'Expansion logic for 64-bit comparator' 
0003e|" COMPEXP device 'P16V8'; 
0004e|
0005e|" Inputs from the individual comparators, all active-low, 7 = MSByte 
0006e|EQ_L7..EQ_L0, GT_L7..GT_L0                pin 1..11, 13..14, 21..23;
0007e|" Comparison outputs
0008e|PEQQ, PNEQ, PGTQ, PGEQ, PLTQ, PLEQ        pin 15..20 istype 'com';
0009e|
0010e|" Active-level conversions
0011e|EQ7 = !EQ_L7; EQ6 = !EQ_L6; EQ5 = !EQ_L5; EQ4 = !EQ_L4; 
0012e|EQ3 = !EQ_L3; EQ2 = !EQ_L2; EQ1 = !EQ_L1; EQ0 = !EQ_L0; 
0013e|GT7 = !GT_L7; GT6 = !GT_L6; GT5 = !GT_L5; GT4 = !GT_L4; 
0014e|GT3 = !GT_L3; GT2 = !GT_L2; GT1 = !GT_L1; GT0 = !GT_L0; 
0015e|
0016e|equations
0017e|
                         ^
Syntax Error 1099: Unsupported set range.
                                               ^
Syntax Error 1036: Can't compare set with 0 members to one with 8 members.
0018e|PEQQ = ([EQ0..EQ7] == [1,1,1,1,1,1,1,1]);
0019e|
                        ^
Syntax Error 1099: Unsupported set range.
                                              ^
Syntax Error 1036: Can't compare set with 0 members to one with 8 members.
0020e|PNEQ = [EQ0..EQ7] != [1,1,1,1,1,1,1,1];
0021e|
0022e|
0023e|
0024e|
0025e|end compexp
0026e|