WinCupl SIM and Code Help

Topics relating to PALs, CPLDs, FPGAs, and other PLDs used for the support or creation of 65-family processors, both hardware and HDL.
Post Reply
pladi
Posts: 1
Joined: 05 Jan 2021

WinCupl SIM and Code Help

Post by pladi »

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;}
User avatar
Shawn Odekirk
Posts: 52
Joined: 23 Mar 2020
Location: Parker, CO

Re: WinCupl SIM and Code Help

Post by Shawn Odekirk »

My experience with WinCupl is that it doesn't like spaces in file paths or names.
My advice:
  • Make sure the path to your WinCupl program does not contain spaces
    Make sure the path to your WinCupl project does not contain spaces
    Make sure the name of your WinCupl project does not contain spaces
    Make sure the "Name" line in your .pld file matches the name of your .pld file
I created a directory named D:\Dev\Test\BLDC and created the file BLDC.pld in that directory. I copied your source and pasted it into the BLDC.pld file. I then changed the first line from "Name BLDC Commutation ;" to "Name BLDC ;"
Here is the result of my simulation.
Let me know if this helps.

Shawn
Attachments
BLDC Simulation
BLDC Simulation
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Re: WinCupl SIM and Code Help

Post by 8BIT »

Everything Shawn said plus, the file name should start with a letter, not a number. When I converted the 65SPI project over, I had to rename the file to a65spi.pld, as it would not work with 65spi.pld

Daryl
Please visit my website -> https://sbc.rictor.org/
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: WinCupl SIM and Code Help

Post by BigDumbDinosaur »

Also, be careful with the names you assign to signals, pin nodes, etc. Although the WinCUPL manual says such names are case-sensitive, that is not so. RESET, ReSet, Reset, reset, etc., in the same design file will give you some grief, as I discovered some time ago.

WinCUPL is actually pretty junky software that has not been maintained for many years. It originated in MS-DOS and was "windows-fied" around 1996. The last significant "improvement" to it appears to have been around 2003. That said, it is free, so no matter what, you will be getting your money's worth. :D
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Post Reply