A Beginners Guide to Programmable Logic Devices by powerguy
Featured
fpga.jpg
CoolRunnerII Family.jpg
s3an_family.jpg

I put this instructable together after noticing that there really isn’t anything on the website about programmable logic except for one question and one instructable about a programmer (see links below).

 http://www.instructables.com/answers/Whats-an-FPGA-Whats-an-CPLD/

 http://www.instructables.com/id/Ghetto-Programmable-Logic-CPLD-Development-Syste/


So in an effort to try to help everyone understand what a programmable logic device is and as a
means of posting my first instructable here you are.
 
 

Programmable logic devices, what are they? Specifically they are an integrated circuit that you program using a hardware description language such as VHDL or Verilog. Other languages that you may have heard of are CUPL or ADA. With the correct tools you can even generate a schematic that is used to build the file that will be used to program the device.
 
 

 There are several types of programmable logic available. Older versions like the programmable array logic (PAL) such as the PAL20R8, the generic array logic (GAL) such as the GAL22v10, the programmable logic device (PLD) such as the 22V10, the simple programmable logic device (SPLD) such as the 20V8 have been around for quite some time.
 
 

The complex programmable logic device (CPLD) such as the XC2C32A from Xilinx, and the field programmable gate array (FPGA) such as the XC3S50 from Xilinx are some of the newer versions of programmable logic that are a result of improvements to the original types of devices.



These types of devices are available from several manufacturers such as Texas Instruments, Cypress Semiconductor, Atmel, Lattice Semi, Altera, Actel, and Xilinx. Some of these suppliers no longer manufacture these devices themselves but have sold the rights to Rochester Electronics who manufactures them with the same part numbers and logos while some like Lattice still offer GAL devices in addition to newer CPLDs and FPGAs.

 
Remove these adsRemove these ads by Signing Up

Step 1: Types of Programmable Logic Devices.

sp2_blk.jpg
xilinxin.jpg

For those that noticed, I mentioned two types of parts, a PLD (and variants) and FPGA. What are the differences? The short answer is architecture. The FPGAs generally have lots of Flip Flops while PLDs have much fewer if any at all.

In addition today’s FPGAs usually get other features such as built in multipliers, dedicated block ram, and can generally handle more interface standards (such as LVDS). Most FPGA devices need a separate device to program them (the exception to this is  Actel and the Spartan 3AN series from Xilinx). This is due to the fact that most FPGAs are SRAM based devices and when power goes out, the program is lost. The FPGA architecture is structured similar to the pictures below:


charlieb000 says: Mar 6, 2013. 4:50 PM
I noticed PLD's are used to increase the number of PCI slots a computer has above 4, the larger DIP20 chip is a ATF16V8B-15PC.
powerguy (author) says: Mar 6, 2013. 6:17 PM
PLDs can be a part of the solution but they are generally not the main component behind the addition of a PCI or PCIe slot.
charlieb000 says: Mar 8, 2013. 4:20 PM
to add PCIe slots you need a bridge. for extra PCI slots, there are 1-slot to two-slot products out there with DIP or SMD PLD chips with a header for slot selection, so i assumed that is all that is required - plus the program it needs to forward commands.
powerguy (author) says: Mar 9, 2013. 8:13 AM
PCI and PCIe needs a bridge or as I refer to that, a controller/UART. There is a bit more than a device or method to select what port or slot as you stated.
I work with devices from PLX specifically their OXPCIe952, 954, and 958 devices. Xilinx also has a hard coded solution in their Spartan 6 line but compared to the PLX solution its expensive so it generally only gets used in really high end systems.
Check those out especially the PLX products. They have a lot good resources available.
componentsdirect says: Feb 24, 2012. 5:50 PM
Components Direct offers a wide selection of programmable logic devices (PLD) from Xilinx, which include FPGA and PROM. These devices come in a variety of package types, such as BGA-256, BGA-225, PLCC-84, PQFP-240, PQFP-160 and TSOP-48. Their choice of operating temperature range cover from -40°C to 85°C. These quality programmable logic devices (PLD) are suitable for general-purpose use as well as specific applications.

http://www.componentsdirect.com
http://www.componentsdirect.com/programmable-logic-devices.html
zombielord says: Oct 11, 2011. 5:29 AM
you sir, are a scholar and a gentleman.
powerguy (author) says: Jun 6, 2010. 7:35 AM
ratgod thanks for the comment! Below are a couple of links to a Cyclone II dev kit but they are bit on the expensive side. I would suggest if you havent done so already, then download the web version of Quartus II from Altera. You can get it here: http://www.altera.com/products/software/quartus-ii/web-edition/qts-we-index.html Here is a link to get a Cyclone II dev kit. Its a bit pricey at $199 but it does come with a lot of capability. http://www.buyaltera.com/scripts/partsearch.dll?Detail&name=544-1736-ND The one below is from Newark and is more expensive then the one from Altera directly. http://www.newark.com/altera/dk-cycii-2c20n/cyclone-ii-fpga-starter-development/dp/51R0453?whydiditmatch=rel_1&matchedProduct=DK-CYCII-2C20N&Ntt=DK-CYCII-2C20N I am working on a few low cost dev kits for CPLD and FPGA devices and do have plans for some Altera kits but havent gotten to them yet. If there is enough interest for them I will move them up to the front of the list. Just send me a PM. As for the NIOS processor I would hold off on that until you are familiar with the Altera products that support that soft core before jumping into that.
Steamdnt says: Jun 5, 2010. 8:37 PM
Favored, Thanks, I really needed a primer on this, Info is hard to get unless you know where to go.
ratgod says: Jun 5, 2010. 3:57 AM
Nice instructable, You said you have used Altera, do you have any information (or links to some information) that would help me get started with an Cyclone II development kit? I've been trying to find tutorials and I'm not getting very far, the best I've done is build a 4-bit adder. I would love to set up a NIOS processor but I think that is getting a little far for the time being.
AndyGadget says: Jun 3, 2010. 2:38 PM
I used to do a lot of design with 22V10 and 20R8 devices back in the 80's, using PALASM as the development tool. The Xilinx devices with JTAG were just appearing, but before that I was putting extra shifters into circuit blocks to improve node visibility as I was also writing the functional test programs for these boards.
Fun times.
kelseymh says: Jun 3, 2010. 11:34 AM
Very nice introduction!  Rated and featured.  I am curious that you chose not to include microcontrollers as programmable devices in this analysis.  They seem to be the most common for DIY developers, probably because they provide I/O for process monitoring and control as part of the device.

Several years ago, my former high-energy physics experiment (BaBar) completed an upgrade of some of our front-end electronics to use Spartan 3 FPGAs.  We were able to move all the data processing (waveform feature extraction) that had been programmed in C++ on a rack of Motorola PPC boards, down to FPGAs mounted directly on the detector.  We reduced the data volume by a factor of 5 (32 bytes per channel down to 6), and the maximum trigger rate from ~2.2 kHz to well over 10 kHz (with zero deadtime).
powerguy (author) says: Jun 3, 2010. 12:36 PM
kelseymh thanks for the comment.

I didnt include the micro controllers in this instructable for a couple of reasons; The website already has quite a bit of material on them and I wanted to focus on the digital logic side of things and not so much on the embedded side where you would see micro controllers used.

I do plan on doing a future instructable that talks about using a micro controller core (i.e. IP)  such as the PicoBlaze or MicroBlaze micro controller cores from Xilinx.

Thanks again!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!