Here's a bit of weirdness:
I was modifying your file, compiling and simulating it without issue. I then decided to create a separate project, copy the header & initial pin assignments and the compile. So there is initially nothing other than a file call Logic.pld in the folder and that file contains:
Code:
Name Logic;
Partno C;
Date 17/07/2021;
Revision 01;
Designer tst;
Company shalewyn.com;
Assembly None;
Location None;
Device f1508ispplcc84;
property atmel {cascade_logic on };
property atmel {fast_inlatch on };
property atmel {foldback_logic on };
property atmel {logic_doubling on };
property atmel {optimize on };
property atmel {output_fast off };
property atmel {pin_keep off };
property atmel {preassign keep };
property atmel {security off };
property atmel {xor_synthesis off };
/* immutable inputs */
pin 1 = RESETB; /* system reset (GCLR, if needed) */
pin 2 = PHI2; /* MPU clock high phase (GCLK2) */
pin 12 = RWB; /* MPU read/!write */
pin 81 = VDA; /* MPU valid data address */
pin 83 = PHI1; /* MPU clock low phase (GCLK1) */
pin 84 = VPA; /* MPU valid program address */
This causes WinCUPL to just crash. I removed everything apart form the header and it works.
I add something like pin 11 = test; save it & compile: crashes. Try different, definite I/O only, pins with the same result.
I then uninstall and reinstall WinCUPL and go through the same steps: same thing.
Thinking it might be WIndows 10 compatibility, I install windows xp in virtualbox, install wincupl and clipboard-copy the text, save & complile: crashes.
Finally, thinking it might be hidden characters, I type the header & pin assingment, save & complile: crashes.
I go back to your file and it compiles without issue...
All along there has been no space in the file/folder names and it's not been in a user profile.
Tried the isp and non-ISP device and tried changing to the ATF1504AS isp device.
Tried removing the 'properties' lines
Tried disabling the simulator so only compiles
Tried run as administrator and windows xp compatibility mode
Oddly, if I open WinCUPL, click Open and select the Logic.pld (not your version) it says: '
The file f:\banedon1\logic.pld doesn't exist. New File assumed' then opens the file, but there is no project windows to the right. This happens in windows xp as well.
If I load in an example or another project it works fine.
Computer rebooted and antivirus disabled.
It keeps insisting that if I load the PLD file using Open or Open Project just after WinCUPL is started: '
The file f:\banedon1\logic.pld doesn't exist. New File assumed'. ALmost as if I've tried to import a file into an existing project.
These are the file produced after it complliles and then crashes to desktop:
CCxxxxxx
logic.abs
logic.oed
logic.pla
logic.pld
logic.sim
runfit.$$$
There are no errors that I can see. I've attached a copy in case anyone wants to give it a try. I'm going to bed and will look at it again with a fresh pair of eyes tomorrow. It's probably be something simple I've missed.