Good evening everyone.
So I am dusting off my old ATF1508 and the first thing I wanted to do is simply take a clock input and divide it way down to blink an LED.
It's been a while since I did this but I am 90% sure I got it to work previously. But tonight, I am getting errors.
Here is the code I am using (keep in mind I've just about forgotten everything I know about CPLD...lol):
Code:
Name 1508Blink ;
PartNo ATF1508AS ;
Date 8/27/2021 ;
Revision 01 ;
Designer Engineer ;
Company Cecil Meeks ;
Assembly None ;
Location Soddy-Daisy, TN USA;
Device f1508ispplcc84; /** ATF1508AS with In-System programming **/
/***************** INPUT PINS *********************/
PIN 83 = GCLK;
/**************** OUTPUT PINS *********************/
PIN 27 = BLINK;
/**************** BURRIED STATES ******************/
Pinnode [51..48] = [S3..0]; /** 4-bit counter to divide global clock **/
/**************** Clock Divider ******************/
S3.t = [S2..0];
S2.t = [S1..0];
S1.t = S0;
S0.t = 'b'1;
[S3..0].ck = GCLK;
[S3..0].ce = 'b'1;
BLINK = ![S3..0];
Attached are the errors I am getting (sorry, I can't seem to copy the text from WinCUPL's output).
Any help would be appreciated.
Thanks