6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 4:45 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Linux and CPLD's?
PostPosted: Sat Mar 19, 2022 4:47 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Hey guys...been a while but I thought I would jump back in to learning some CPLD.

I have a few ATF1504/8's and I no longer have a Windows machine. I'm running Fedora 35 and was wondering if there is a way to program these chips with Linux?

I haven't tried Wine (with WinCUPL) yet because I wanted to see if there was a more native way first.

Any help would be appreciated.

Thanks!

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux and CPLD's?
PostPosted: Tue Mar 29, 2022 2:22 am 
Offline

Joined: Sat Dec 30, 2017 3:19 pm
Posts: 116
Location: Detroit, Michigan, USA
cbmeeks wrote:
Hey guys...been a while but I thought I would jump back in to learning some CPLD.

I have a few ATF1504/8's and I no longer have a Windows machine. I'm running Fedora 35 and was wondering if there is a way to program these chips with Linux?

I haven't tried Wine (with WinCUPL) yet because I wanted to see if there was a more native way first.

Any help would be appreciated.

Thanks!


Sadly nothing fully native at the moment. It's possible to compile compatible Verilog code on Linux using the native Quartus suite, but you still need the DOS/Win tools to convert and program the resulting file. This is the workflow I used for the CLPDs on my JRC-1 build. I was almost able to program it natively using OpenOCD, but it didn't quite work. I think OpenOCD needs a bit of work to properly support the ATF1504.

I have not tried WinCUPL (I prefer writing Verilog). I have heard it runs under Wine but I don't know if it has the ability to actually use the programmer that way. You will have the best luck by setting up a WinXP virtual machine using Virtual Box and doing it from there. I have successfully used the official Atmel USB programmer this way and it works great.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux and CPLD's?
PostPosted: Fri Apr 15, 2022 1:27 pm 
Offline
User avatar

Joined: Tue Aug 11, 2020 3:45 am
Posts: 311
Location: A magnetic field
If you want a portable workflow, it might be preferable to skip CPLD and use something like Lattice iCE40 FPGA. This may also save energy because a typical blank CPLD draws 105mA. A programmed CPLD may be 247mA or more.

_________________
Modules | Processors | Boards | Boxes | Beep, Beep! I'm a sheep!


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux and CPLD's?
PostPosted: Sun May 01, 2022 7:28 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1043
Location: near Heidelberg, Germany
Although also somewhat outdated, I am using XILINX CPLDs and FPGAs with a linux only toolchain, using their WebISE toolset.

_________________
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/


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 6 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: