WinCupl SIM and Code Help
Posted: Tue Jan 05, 2021 9:01 pm
Can someone have a look at this set up and tell me why it does not generate a simulation file ?
The compiler is throwing no errors or warnings.
The simulation throws an error but no description. I cant tell what is wrong at all. I know very little about this software or PALs.
The program is a simple INPUT-OUTPUT table. For 8 inputs and 7 outputs.
Thank you in advance.
Name BLDC Commutation ;
PartNo 00 ;
Date 12/10/2020 ;
Revision 01 ;
Designer Plad ;
Company Curtiss ;
Assembly None ;
Location New ;
Device g16v8a ;
/* *************** INPUT PINS *********************/
PIN 1 = CLK ; /* */
PIN 2 =HB ; /* */
PIN 3 =HC ; /* */
PIN 5 =DIR ; /* */
PIN 4 =INH ; /* */
PIN 6 =HE ; /* */
PIN 7 =HR ; /* */
PIN 8 =BRK ; /* */
/* *************** OUTPUT PINS *********************/
PIN 15 = A ; /* */
PIN 12 = AN ; /* */
PIN 16 = B; /* */
PIN 13 = BN ; /* */
PIN 17 = C ; /* */
PIN 14 = CN ; /* */
PIN 19 = F ; /* */
FIELD INPUT = [CLK,HB,HC,DIR,INH,HE,HR,BRK] ;
FIELD OUTPUT = [A,AN,B,BN,C,CN,F];
TABLE INPUT => OUTPUT {
'b'10000100 => 'b'0110000;
'b'11000100 => 'b'0100100;
'b'01000100 => 'b'0001100;
'b'01100100 => 'b'1001000;
'b'10100100 => 'b'1000010;
'b'00000100 => 'b'0010010;
'b'10000010 => 'b'1001000;
'b'11000010 => 'b'1000010;
'b'01000010 => 'b'0010010;
'b'01100010 => 'b'0110000;
'b'00100010 => 'b'0100100;
'b'10100010 => 'b'0001100;
'b'00001000 => 'b'0000000;
'b'00000001 => 'b'0101010;
'b'00000000 => 'b'0000001;
'b'00000010 => 'b'0000000;
'b'00010100 => 'b'0000000;
'b'00000000 => 'b'0000001;
'b'11100000 => 'b'0000001;}
The compiler is throwing no errors or warnings.
The simulation throws an error but no description. I cant tell what is wrong at all. I know very little about this software or PALs.
The program is a simple INPUT-OUTPUT table. For 8 inputs and 7 outputs.
Thank you in advance.
Name BLDC Commutation ;
PartNo 00 ;
Date 12/10/2020 ;
Revision 01 ;
Designer Plad ;
Company Curtiss ;
Assembly None ;
Location New ;
Device g16v8a ;
/* *************** INPUT PINS *********************/
PIN 1 = CLK ; /* */
PIN 2 =HB ; /* */
PIN 3 =HC ; /* */
PIN 5 =DIR ; /* */
PIN 4 =INH ; /* */
PIN 6 =HE ; /* */
PIN 7 =HR ; /* */
PIN 8 =BRK ; /* */
/* *************** OUTPUT PINS *********************/
PIN 15 = A ; /* */
PIN 12 = AN ; /* */
PIN 16 = B; /* */
PIN 13 = BN ; /* */
PIN 17 = C ; /* */
PIN 14 = CN ; /* */
PIN 19 = F ; /* */
FIELD INPUT = [CLK,HB,HC,DIR,INH,HE,HR,BRK] ;
FIELD OUTPUT = [A,AN,B,BN,C,CN,F];
TABLE INPUT => OUTPUT {
'b'10000100 => 'b'0110000;
'b'11000100 => 'b'0100100;
'b'01000100 => 'b'0001100;
'b'01100100 => 'b'1001000;
'b'10100100 => 'b'1000010;
'b'00000100 => 'b'0010010;
'b'10000010 => 'b'1001000;
'b'11000010 => 'b'1000010;
'b'01000010 => 'b'0010010;
'b'01100010 => 'b'0110000;
'b'00100010 => 'b'0100100;
'b'10100010 => 'b'0001100;
'b'00001000 => 'b'0000000;
'b'00000001 => 'b'0101010;
'b'00000000 => 'b'0000001;
'b'00000010 => 'b'0000000;
'b'00010100 => 'b'0000000;
'b'00000000 => 'b'0000001;
'b'11100000 => 'b'0000001;}