Dangerous Prototypes

In development => Project logs => Topic started by: schazamp on September 23, 2011, 09:52:39 pm

Title: CPLD (XC2C64A) Breakout Free PCB
Post by: schazamp on September 23, 2011, 09:52:39 pm
I finally put together the free CPLD breakout PCB I received some time ago, see attached.

For some reason, this surface mount IC was easier to solder than I was expecting (and it didn't seem like it was because I was getting better at doing it).

Anyway, now that I've downloaded the WebPack software dev kit (which was an ordeal in its own right) I'm going to run through the LED tutorials, and after that, try implementing a 74185 or roughly equivalent 8-bit binary to 2x 4-bit BCD converter as a part of my entry in the 7400 contest (since I can't seem to find any other binary-to-bcd converter ICs still produced).
Title: Re: CPLD (XC2C64A) Breakout Free PCB
Post by: schazamp on September 23, 2011, 10:33:13 pm
I just wanted to say thanks, Ian and everyone else involved, for putting together those tutorials.  There are many, many steps, but I was able to successfully program my board (using my BusPirate v3 FTDI with the XSVF player firmware (http://dangerousprototypes.com/docs/Bus ... SVF_player (http://dangerousprototypes.com/docs/Bus_Pirate_JTAG_XSVF_player))), following the first two schematic tutorials (http://dangerousprototypes.com/docs/CPL ... ight_a_LED (http://dangerousprototypes.com/docs/CPLD_intro_1:_Light_a_LED), http://dangerousprototypes.com/docs/CPL ... h_a_button (http://dangerousprototypes.com/docs/CPLD_intro_2:_Toggle_a_LED_with_a_button)), and implementing the 3rd on top of the 2nd by myself, all with a minimum of pain.

Now on to the Verilog and VHDL tutorials, for a crash course on this stuff that is very, very new to me.
Title: Re: CPLD (XC2C64A) Breakout Free PCB
Post by: schazamp on September 24, 2011, 08:17:14 pm
Okay, so I think I've successfully implemented a basic 8-bit binary to 3x 4-bit bcd converter, based on the code here: http://www.delorie.com/electronics/bin2seven/ (http://www.delorie.com/electronics/bin2seven/) .
The original provided a driver for 3 7-segment displays, but I am already using 74hc4511s to drive my displays, and I successfully removed that functionality and exposed the BCD output directly.
The code is GPLv2, and I've stashed in a git repository here: https://github.com/schamp/CPLD_Development (https://github.com/schamp/CPLD_Development) , or see the attached zip file.
Title: Re: CPLD (XC2C64A) Breakout Free PCB
Post by: ian on September 25, 2011, 09:10:04 am
Very cool! I can't wait to see a CPLD with 7400 logic in the 7400 contest ;)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01122063080session_write_close ( )...(null):0
20.01152194672ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01152195448Database_MySQL->query( ).../DatabaseHandler.php:119
40.05542334184Database_MySQL->error( ).../Db-mysql.class.php:273