ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Topics relating to PALs, CPLDs, FPGAs, and other PLDs used for the support or creation of 65-family processors, both hardware and HDL.
LIV2
Posts: 173
Joined: 12 Feb 2014
Location: Sweden

ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by LIV2 »

Just thought I'd share some info I was given recently that ATF15xx CPLDs are pin & code compatible with the Altera MAX 7000 Series
It even says so on the microchip website: https://www.microchip.com/design-center ... plds-cplds

I thought this was awesome because it means we still have access to new 5V parts that can be programmed using Verilog/VHDL & don't cost a fortune

What you'll need: When creating the design in Quartus make sure to select the corresponding EPM7XXX device and the correct package/voltage

After you compile your design in Quartus you should have a .POF file in your output_files folder which you can convert to a compatible JED file using POF2JED, It's probably best to set JTAG mode to ON in POF2JED unless you wish to never program the device again
The resulting JED can be programmed using ATMISP and an ATDH1150 cable, or use ATMISP to convert that to an SVF file which can be programmed using OpenOCD/urJTAG and any cable supported by them.

I have tested by swapping an EPM7128S with an ATF1508AS and it works perfectly :)
There is a an (old) cross reference of Atmel > Altera CPLDs here but basically it seems that:
ATF1502AS == EPM7032S
ATF1504AS == EPM7064S
ATF1508AS == EPM7128S
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by ElEctric_EyE »

That is some great info! We really need more people to get into programmable logic. I mean retro is retro, but retro-mod is really where it's at IMO.
jds
Posts: 196
Joined: 10 Mar 2016

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by jds »

I had been using the Atmel tools to program the ATF1508AS with Verilog and they worked quite well. It was very sensitive to pin assignment which was a bit of a hassle once you have a board set up, but otherwise it worked well. I had a small boot ROM in the 1508 so I was pushing the limits of what I could fit in there. I had a license for these tools, but when I asked about renewing it they suggested using Quartus as above. I’ve downloaded but haven’t tried it out yet.

I was trying to do this all in Linux as I don’t have windows, but I don’t think that is currently possible. From memory I had POF2JED for Linux, but still needed ATMISP on windows.
User avatar
cbscpe
Posts: 491
Joined: 13 Oct 2013
Location: Switzerland
Contact:

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by cbscpe »

I'm still using all retro, that is a Windows XP in a VM with WinCUPL and ATMISP. But sometimes I wished I could avoid this Windows XP. So one question, does ATMISP work on Windows 10? I did not have much success. So what is the trick?
DerTrueForce
Posts: 483
Joined: 04 Jun 2016
Location: Australia

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by DerTrueForce »

it does kinda work, but I find it more expedient(and less crash-prone) to ignore the GUIs and just use the command-line tools they back onto directly. Finding the docs for them might be a little painful, and the help files WinCUPL comes with are actually fairly helpful for this.
User avatar
cbscpe
Posts: 491
Joined: 13 Oct 2013
Location: Switzerland
Contact:

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by cbscpe »

Does that mean there is a command line equivalent for ATMISP? I was not aware of this. Which is it?
DerTrueForce
Posts: 483
Joined: 04 Jun 2016
Location: Australia

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by DerTrueForce »

I wasn't talking about ATMISP, I was talking about WinCUPL.
I can't speak to ATMISP, I never ended up using it. But it does support the USB programmer, so it should probably "just work" on win10.
LIV2
Posts: 173
Joined: 12 Feb 2014
Location: Sweden

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by LIV2 »

I've been using ATMISP under Windows 10 but only to convert the .JED to a .SVF so I can program the CPLD with urJTAG.
User avatar
Proxy
Posts: 746
Joined: 03 Aug 2018
Location: Germany

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by Proxy »

cbscpe wrote:
I'm still using all retro, that is a Windows XP in a VM with WinCUPL and ATMISP. But sometimes I wished I could avoid this Windows XP. So one question, does ATMISP work on Windows 10? I did not have much success. So what is the trick?
I've been using both on Win10...
while the GUI on WinCUPL is definitely a bit glitchy (which is why i only use it to actually compile programs and use NP++ to write them), it still works and does it's job fine.
ATMISP works perfectly fine, i didn't have any problems with it though i only used it twice so far...

personally to me it doesn't seem worth it to use a VM on programs that are still completely functional
User avatar
cbscpe
Posts: 491
Joined: 13 Oct 2013
Location: Switzerland
Contact:

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by cbscpe »

Proxy wrote:

personally to me it doesn't seem worth it to use a VM on programs that are still completely functional
In the meantime I recognized there are two versions if ATMISP one for Windows XP and another one for Windows 7 and never. I switched to a VM runnning now Windows 10 and migrated al my tools. The VM however is due to the fact that my native OS is macOS.
User avatar
Proxy
Posts: 746
Joined: 03 Aug 2018
Location: Germany

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by Proxy »

cbscpe wrote:
In the meantime I recognized there are two versions if ATMISP one for Windows XP and another one for Windows 7 and never. I switched to a VM runnning now Windows 10 and migrated al my tools.
ye, it should be a bit better on Win10 as well just by being a newer OS.
cbscpe wrote:
The VM however is due to the fact that my native OS is macOS.
oh i see, i assume it's for work reasons or similar? otherwise you could just install Win10 as the native OS and not have to deal with any VM to run all your programs.
hoglet
Posts: 367
Joined: 29 Jun 2014

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by hoglet »

LIV2 wrote:
I have tested by swapping an EPM7128S with an ATF1508AS and it works perfectly :)
I've just been trying out this design flow, and have a question for you about POF2JED.

POF2JED works fine when I'm using the 64 macro cell ATF1504AS parts, but with the 128 macrocell ATF1508AS I get the following error in the console log:

Code: Select all

***************************************************************
Error! POF Conversion may not be correct.
       Please contact to Atmel EPLD Hotline (408)436-4333, or
       email address (pld@atmel.com)
***************************************************************
It still goes on to generate a sensible looking JEDEC file, but I'd like to understand what's going on here.

Do you see this error as well?

If not, is there any chance you could upload a sample POF file that I can try out?

Dave
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by Martin A »

POF from an experimental video board using the ATF1508 enclosed.

I've included the source VHDL and JED output I got from PO2JED 4.45.1 for reference
Attachments
6502Test2.zip
POG and JED file from POF2Jed
(14.99 KiB) Downloaded 233 times
hoglet
Posts: 367
Joined: 29 Jun 2014

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by hoglet »

Martin A wrote:
POF from an experimental video board using the ATF1508 enclosed.

I've included the source VHDL and JED output I got from PO2JED 4.45.1 for reference
That's very helpful.

I've just run your POF file through POF2JED and get the same JEDEC file as you did (except for the date).

But I still get the error logged to the console:

Code: Select all

***************************************************************
Error! POF Conversion may not be correct.
       Please contact to Atmel EPLD Hotline (408)436-4333, or
       email address (pld@atmel.com)
***************************************************************
Do you also see this error?
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: ATF15xx Verilog/VHDL using Quartus 13.0 SP1

Post by Martin A »

I don't remember any errors being produced, but memory being what it is, I re-ran the conversion, and this is the log output:

Code: Select all

Microchip Pof2jed  Version 4.45.1 Mar 13 2018
Copyright 2018 Microchip. All Rights Reserved.

  EPM7128SLC84-10 --> 1508asPLCC84
Input file                : C:\altera\13.0sp1\Projects\6502Test2\output_files\6502Test2.pof
Output file               : C:\altera\13.0sp1\Projects\6502Test2\output_files\6502Test2.jed
Conversion Report file    : C:\altera\13.0sp1\Projects\6502Test2\output_files\6502Test2.txt

Conversion is completed

Options :  (1508 only)
   Powerdown :		OFF
   Security Bit :	AUTO
   Slew Rate :		AUTO
   PinClk :		OFF
   Race Coverage :	ON
   Pin Keeper :		OFF
   Macrocell Low Power:	AUTO
   Power Reset :	ALWAYS
   ITD on GCLK1 :	ON
   ITD on GCLK2 :	ON
   ITD on GCLK3 :	ON
   Open Collector :	AUTO
   JTAG mode :		AUTO
   TDI Pullup :		OFF
   TMS Pullup :		OFF
              
Post Reply