6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 3:11 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jan 05, 2021 9:01 pm 
Offline

Joined: Tue Jan 05, 2021 8:55 pm
Posts: 1
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;}


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 19, 2021 1:37 am 
Offline
User avatar

Joined: Mon Mar 23, 2020 4:02 pm
Posts: 52
Location: Parker, CO
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:
File comment: BLDC Simulation
BLDC.png
BLDC.png [ 17.34 KiB | Viewed 1140 times ]
Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 19, 2021 4:51 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1748
Location: Sacramento, CA
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/


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 19, 2021 6:23 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: