Page 1 of 9 1234 ... LastLast
Results 1 to 12 of 103

Thread: Using a CPLD to replace a few CMOS gates

  1. #1
    Registered acondit's Avatar
    Join Date
    Apr 2005
    Location
    USA
    Posts
    1,778
    Downloads
    0
    Uploads
    0

    Using a CPLD to replace a few CMOS gates

    Is it possible to use a CPLD to replace just a few CMOS 4000 series logic gates?

    Lets say that I wanted to use a Xilinx XC2C32A (cost $1.15) to replace 3 cmos gates that cost $1.20 but it allowed me to fit it all on a much smaller board. Would it make sense?

    Alan


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,952
    Downloads
    0
    Uploads
    0
    This used to be traditionally done with PLD's when 'simple' custom logic was needed, I am not sure whether it is still popular.
    This is obviously when you do not need processing power.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2,782
    Downloads
    0
    Uploads
    0
    The XC2C32A is a very capable little CPLD. All the G250 microstep drive logic fits inside (and uses all 32 macrocells). The G203V uses the XC2C64A with room to spare.

    Mariss


  4. #4
    Registered acondit's Avatar
    Join Date
    Apr 2005
    Location
    USA
    Posts
    1,778
    Downloads
    0
    Uploads
    0
    Mariss,

    I downloaded the Xilinx webpak, created a project, and a schematic. Then I compiled the project and it went through without error.

    So did you build your own JTAG programmer or did you buy one? How does one get from the compiled project to a loaded CPLD?

    I assume that it is a good idea to put in circuit programming pads on the board?

    Alan


  • #5
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2,782
    Downloads
    0
    Uploads
    0
    Alan,

    Quick as a bunny, dump schematic entry and immediately go to learning Verilog. Schematic entry is in my opinion a sideshow Carney trick. It wows you at the start but like any trick you very quickly learn its limitations.

    I hate programming, I hate programming languages but I love Verilog. Avoid VHDL; it's for programmers that love programming languages; don't mess with VHDL, don't mess with schematic entry (designed for rubes just getting into CPLDs). Go straight to Verilog.

    All you need to learn in Verilog is "assign", "wire" and "behavioral" (if, then, else) for counter, D-Flop and other primitives. Simple as dirt.

    About programming a target device. I use a parallel-port cable that cost $15. We have USB programmers at work to program G203Vs and G250/G251s. They can be a PIA. A parallel port cable never is.

    If you do a board, pull out to pads TMS, TDI, TDO and TCK. Include VCCIO and GND. I have on my lab cable a pair of AAA 1.5V cells connected in series and attached to the VCCIO and GND pins. The programming head is 6 pogo-pins that match the board programming pad spacing. The AAA battery provides the power to the CPLD and its 1.8V regulator. Get a parallel port JTAG cable (<$15).

    This way you can take a 'cold' board (no power supply attached), snick on the programming head and JTAG the board. Go to IMPACT, select your .jed file, pick "read protect" in IMPACT if you want to keep the contents protected and select "program". Bing boom bang, 2 seconds later and you are done. If you have any of our G250 or G203V drives, look for 6 thru-hole pads arraigned in an array. Those are the programming head target pads.

    About Verilog. I cannot stress it enough. Dump schematic entry. If you or others are interested, I can do a short and sweet, really practical, Verilog tutorial. The non-academic kind that gets you up and running in no time.

    Mariss


  • #6
    Registered acondit's Avatar
    Join Date
    Apr 2005
    Location
    USA
    Posts
    1,778
    Downloads
    0
    Uploads
    0
    A Verilog tutorial sounds great. I used to write software for a living so one more language shouldn't be a killer.

    Alan


  • #7
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2,782
    Downloads
    0
    Uploads
    0
    I assume you bought a CoolRunner II development board? If not, spend $29 or so and get one now. It will be invaluable for any tutorial. Check at Xylinx; they are always running some ridiculous deal (ISE, development board, power supply and USB programming cable kit from Digilent). These things are $29 on promotion, $49 when not (www.digilent.com).

    Mariss


  • #8
    Registered port_huon's Avatar
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    348
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by acondit View Post
    A Verilog tutorial sounds great. I used to write software for a living so one more language shouldn't be a killer.

    Alan
    Here's a good site about Verilog with some examples and tutorials.
    Regards
    Geoff


  • #9
    Registered Bubba's Avatar
    Join Date
    Mar 2004
    Location
    LaGrange, GA USA
    Posts
    1,494
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Mariss Freimanis View Post
    I assume you bought a CoolRunner II development board? If not, spend $29 or so and get one now. It will be invaluable for any tutorial. Check at Xylinx; they are always running some ridiculous deal (ISE, development board, power supply and USB programming cable kit from Digilent). These things are $29 on promotion, $49 when not (www.digilent.com).

    Mariss
    Mariss,
    You just fell off your pedistal:})

    The correct link is:
    http://www.digilentinc.com/

    Have a good day.
    Art
    AKA Country Bubba (Older Than Dirt)


  • #10
    Registered acondit's Avatar
    Join Date
    Apr 2005
    Location
    USA
    Posts
    1,778
    Downloads
    0
    Uploads
    0
    Bubba and Mariss,

    Yeah, I caught the link, I already had DigilentInc bookmarked. I will have to order a CoolRunner II development board.

    Alan


  • #11
    Registered acondit's Avatar
    Join Date
    Apr 2005
    Location
    USA
    Posts
    1,778
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Mariss Freimanis View Post
    Alan,

    <snip>

    If you do a board, pull out to pads TMS, TDI, TDO and TCK. Include VCCIO and GND. I have on my lab cable a pair of AAA 1.5V cells connected in series and attached to the VCCIO and GND pins. The programming head is 6 pogo-pins that match the board programming pad spacing. The AAA battery provides the power to the CPLD and its 1.8V regulator. Get a parallel port JTAG cable (<$15).

    <snip>

    Mariss
    Mariss,

    In the XC2C32A documentation, they talk about programming using VCCAUX rather than VCCIO. Which is correct or does it not make any difference?

    Alan


  • #12
    PEU
    PEU is offline
    Registered PEU's Avatar
    Join Date
    May 2005
    Location
    Buenos Aires - Argentina (I like Ribs)
    Posts
    944
    Downloads
    0
    Uploads
    0
    I want a Mariss made tutorial about CPLD, I enjoy every time you write technical stuff, and your writings lately include CPLD a lot. I learned to program PIC microcontrollers, and these seem to be nice devices to know something about. If you commit to writing I buy a coolrunnerII (sold out at xilinx Edit: available here )to learn along.

    Thanks!


    Pablo
    Last edited by PEU; 03-02-2009 at 10:42 AM.


  • Page 1 of 9 1234 ... LastLast

    Similar Threads

    1. CPLD breadboard
      By Mariss Freimanis in forum General Electronics Discussion
      Replies: 1
      Last Post: 12-22-2009, 02:24 PM
    2. JTAG CPLD programmer
      By kreutz in forum General Electronics Discussion
      Replies: 5
      Last Post: 09-25-2007, 12:17 AM
    3. Bill Gates & his Table.
      By Switcher in forum CNCzone Club House
      Replies: 0
      Last Post: 06-09-2007, 07:54 AM
    4. cmos ?
      By MegaMoog in forum Bridgeport and Hardinge Mills
      Replies: 5
      Last Post: 09-20-2006, 10:55 PM
    5. Tunnel gates in Aluminum molds
      By mtechserv in forum Moldmaking
      Replies: 12
      Last Post: 03-12-2006, 02:53 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.