element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Role for FPGA or CPLD with Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 143 replies
  • Subscribers 682 subscribers
  • Views 21437 views
  • Users 0 members are here
Related

Role for FPGA or CPLD with Raspberry Pi

michaelkellett
michaelkellett over 13 years ago

Interesting - we obviously move in rather different circles despite being in the same business:

 

Take the current project:

 

One master processor (ARM Cortex M4 with ARM serial debugging port and 4 wire trace, Ethernet, USB and serial for debugging)

One supervisor processor (ARM Cortext M0 with ARM serial debugging port)

FPGA with JTAG port

Up to 6 slave processors (ARM Cortex M4s with ARM serial debugging ports)

All in one little box about 25cm x 160cm x 5cm

 

Now to bring up the Ethernet on the master processor I can use its serial port for "printf" error messages (from the Ethernet/TCP/IP library) and the ARM debugging port to load/run/trace the processor. The ARM trace interace box (Keil Ulink Pro) is a USB interface to the development PC.

The superivisor processor is connected via another Ulink to another PC.

The FPGA JTAG interface is USB to yet another PC.

The fourth PC runs Wiresharc and is connected by Ethernet to see what's coming out.

 

It would be nice if the debug tools had Ethernet rather than USB interfaces but they don't.

I could isolate the serial debug port but since I must have three other non-isolated connections it's not worth the effort.

 

This system is all quite low power - so certainly safe to humans and fairly safe to computers. (The really exposed parts are the debug interfaces and there is nothing to be done about that since they need fast conenctions to the hardware.)

In the last 10 years I've lost one debugger and one PC due to my mistakes and in the same time at least 10 PCs have just died (as they do) so it's a cost effective approach.

 

Of course when these things connect to external systems handling real power different rules apply.

 

(AFIK most Ethernet interfaces are not specifically tested for mains safety - either during qualification or as part of normal regular safety checks (and the flash test requirement for Ethernet magnetics is 1500V AC which is OK for some equipment but not for all)).

 

Michael Kellett

  • Sign in to reply
  • Cancel
Parents
  • michaelkellett
    michaelkellett over 13 years ago

    @ John Beetem,

    The Spartan chip on the Special Computing board is £8.60 one at a time from Farnell.

     

    Let's assume a pcb 50mm x 75mm, FPGA image stored in RPi, a little processor to manage FPGA boot up (might not be needed), 3.3V regulator, 1.2V regulator,

     

    To keep it cheap we'll clock the FPGA from the uP's built in oscillator.

     

    If this is for playing with we need some buffering and 5V or better drive - so we'll stick on a couple of ULN2003A which are dead cheap and can switch a bit of power.

    These chips are at mega risk so we'll use DIL parts in sockets

     

    And we had better have some buffered inputs to protect the FPGA - so we'll have 4 x dual comparators with resistor input networks to give us some toughened inputs.

     

    DescriptionPart NoFarnell Pricenext
    FPGA 100pinXC3S200A-4VQG100C18762048.601.008.60
    ARM M0 uPLPC1113FBD48/302,120721861.691.001.69
    3.3V regNX1117C33Z20572740.191.000.19
    5V  regNX1117CE12Z20572770.181.000.18
    200mA driverULN2003A10944210.552.001.10
    dual comparatorMCP6562-E/SN17158750.634.002.52
    Rswild guess 0.50
    Cswild guess 1.00
    pcb4 layer 7.00
    Total parts 22.78

     

    All the component prices are from Farnell's website today and for one off. The pcb prices is 50 off from pcbtrain.

    It should be quite easy to do better than these prices so all it needs is for someone to finance the board.

     

    I still think the Lattice XP2 is a better choice than the Xilinx part (on chip flash, easier to use (IMO) free tools and I always feel that because Lattice are the PGA underdog they try harder.

    Uisng a 100 pin XP2 might push the price up a tiny bit.

     

    Anyway -the point of all this - if you can use a soldering iron an FPGA add on board that you could use with an RPi or lots of other things should cost you <£25.

     

    If you want it built and tested it's a bit harder to guess - all depends on volume but 50 isn't enough to be viable (take too long to explain why here) - you need to think in terms of 1000 at which point the BOM cost will be down to about £13 - so think of it retailing at £40 + VAT.

    .

    If there is any interest I can take it further .... I'm quite happy to do the hardware design (and probably the ARM code)  as an open source project - with all this talk in the UK of encouraging engineering can anyone get a grant to apy for some boards - I don't mind spending time but I can't put actual cash into it.

     

     

    Michael Kellett

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • michaelkellett
    michaelkellett over 13 years ago

    @ John Beetem,

    The Spartan chip on the Special Computing board is £8.60 one at a time from Farnell.

     

    Let's assume a pcb 50mm x 75mm, FPGA image stored in RPi, a little processor to manage FPGA boot up (might not be needed), 3.3V regulator, 1.2V regulator,

     

    To keep it cheap we'll clock the FPGA from the uP's built in oscillator.

     

    If this is for playing with we need some buffering and 5V or better drive - so we'll stick on a couple of ULN2003A which are dead cheap and can switch a bit of power.

    These chips are at mega risk so we'll use DIL parts in sockets

     

    And we had better have some buffered inputs to protect the FPGA - so we'll have 4 x dual comparators with resistor input networks to give us some toughened inputs.

     

    DescriptionPart NoFarnell Pricenext
    FPGA 100pinXC3S200A-4VQG100C18762048.601.008.60
    ARM M0 uPLPC1113FBD48/302,120721861.691.001.69
    3.3V regNX1117C33Z20572740.191.000.19
    5V  regNX1117CE12Z20572770.181.000.18
    200mA driverULN2003A10944210.552.001.10
    dual comparatorMCP6562-E/SN17158750.634.002.52
    Rswild guess 0.50
    Cswild guess 1.00
    pcb4 layer 7.00
    Total parts 22.78

     

    All the component prices are from Farnell's website today and for one off. The pcb prices is 50 off from pcbtrain.

    It should be quite easy to do better than these prices so all it needs is for someone to finance the board.

     

    I still think the Lattice XP2 is a better choice than the Xilinx part (on chip flash, easier to use (IMO) free tools and I always feel that because Lattice are the PGA underdog they try harder.

    Uisng a 100 pin XP2 might push the price up a tiny bit.

     

    Anyway -the point of all this - if you can use a soldering iron an FPGA add on board that you could use with an RPi or lots of other things should cost you <£25.

     

    If you want it built and tested it's a bit harder to guess - all depends on volume but 50 isn't enough to be viable (take too long to explain why here) - you need to think in terms of 1000 at which point the BOM cost will be down to about £13 - so think of it retailing at £40 + VAT.

    .

    If there is any interest I can take it further .... I'm quite happy to do the hardware design (and probably the ARM code)  as an open source project - with all this talk in the UK of encouraging engineering can anyone get a grant to apy for some boards - I don't mind spending time but I can't put actual cash into it.

     

     

    Michael Kellett

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • michaelkellett
    michaelkellett over 13 years ago in reply to michaelkellett

    arg - the table looked OK in the add reply box - it's useable as it is so I'll leave it.

     

    Michael Kellett

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to michaelkellett

    Terrific BOM cost estimate, thank you Michael!  And using DIL packs for the buffers is very much "designing for reality", given the target user in mind.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to michaelkellett

    Chasing around Lattice XP2 links, I see that the Brevia dev kit http://www.latticesemi.com/products/developmenthardware/developmentkits/xp2brevia2developmentkit.cfm originally launched with a promotional price of $29 !!!  Damn, wish I'd known at the time. image  It's still not too bad today at $49, although I can't seem to find a UK supplier.

     

    Lattice XP2 device prices seem to be about double those for Xilinx XC3S200A, UKP 14.91 for 5K LUTS from Farnell for 144TQFP -- http://uk.farnell.com/lattice-semiconductor/lfxp2-5e-5tn144c/fpga-5k-luts-100-i-o-dsp-144tqfp/dp/1571999 and UKP 16.14 from RS for 100VQFP -- http://uk.rs-online.com/web/p/fpga/7030840/ .

     

    For personal use where BOM cost is not very critical, the higher device price of XP2 versus Spartan-3A is probably not a hurdle, if there are good reasons for choosing Lattice as Michael mentioned.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • michaelkellett
    michaelkellett over 13 years ago in reply to morgaine

    Lattice don't do a part in the 4000 LUT range in a 100 pin package so that hurts a bit on price.

     

    Another nice Lattice candidiate is the MachXO2  - a 144 pin 4000LUT part is just under $15 one off from their website.

     

    It's an FPGA/CPLD crossover but has hard logic for SPI, I2C and some other goodies. No multipliers.

     

    I'll go thinking but must rush now having just had word of a six person canoe going cheep !

     

    Michael Kellett

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube