Author Topic: FPGA and Processor Combination  (Read 5231 times)

0 Members and 1 Guest are viewing this topic.

Offline sanwal209Topic starter

  • Regular Contributor
  • *
  • Posts: 114
FPGA and Processor Combination
« on: February 01, 2017, 08:00:08 pm »
Hi,

I have a question and i am not able to figure it out. I have seen many military boards which contains both fpga and mpu. what i dont understand why they need both. Could anybody refer me to some document which explain the above combination and their applications?

Thanks
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 10095
  • Country: us
Re: FPGA and Processor Combination
« Reply #1 on: February 01, 2017, 08:13:44 pm »
The MPU might provide a user interface or communications to other pieces of equipment.  It might even provide the number crunching.  The FPGA would do the high frequency signal processing or interfacing with sensors with a difficult protocol.  In some cases, the FPGA may be doing the number crunching as a digital signal processor.  Or crypto...

Each technology has a place and that's why Xilinx brought out the Zynq chip which has a dual core ARM and FPGA fabric on the same device.
https://www.xilinx.com/support/documentation/data_sheets/ds190-Zynq-7000-Overview.pdf
 
The following users thanked this post: sanwal209

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3925
  • Country: it
Re: FPGA and Processor Combination
« Reply #2 on: February 01, 2017, 08:14:26 pm »
it's not that unusual, you may have tasks that can gain a lot of benefits from parallelization (so an fpga makes sense) and still have a processor for other tasks like handling an operating system

an oscilloscope is an example, without going to military stuff
 
The following users thanked this post: sanwal209

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: FPGA and Processor Combination
« Reply #3 on: February 01, 2017, 08:15:59 pm »
FPGAs and MPUs/MCUs/etc work in completely different ways.  They have very different strengths and weaknesses, and it's perfectly reasonable for a design to contain both types of chips to handle different aspects of the job, military or not.

I suggest doing some reading on what an FPGA is, how it's programmed, and how it differs from "traditional" CPUs/MPUs/MCUs.  The reasons why someone might want to use both in a design should be pretty clear.
 
The following users thanked this post: sanwal209

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21608
  • Country: us
Re: FPGA and Processor Combination
« Reply #4 on: February 01, 2017, 08:19:29 pm »
While you can implement a softcore processor within an FPGA, it's not a very efficient use of silicon. For old 8 bit stuff it works pretty well, but the more modern you get, the less efficient it is to do. Generally speaking, CPUs are cheap and FPGAs are expensive, for a commercial product it makes no sense to consume $50 worth of FPGA to implement a $2 microprocessor rather than use a smaller FPGA or fill the FPGA with logic that can better benefit from the strengths that an FPGA brings to the table.
 
The following users thanked this post: sanwal209

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4611
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: FPGA and Processor Combination
« Reply #5 on: February 01, 2017, 08:32:24 pm »
It's a very powerful combination.

I do a lot of designs in which a microcontroller takes care of the high level functions of the product, and an FPGA performs functions which are time critical, or which would result in a lot of data which might use a lot of CPU time to process.

For example, suppose you want to generate a signal, then digitise the response of a system to that signal. Something needs to drive the ADC, at exactly the right time and at exactly the right speed, capture the results, then perform some pre-processing such as averaging, filtering, multiply-accumulate operations and so on. The amount of data which the CPU ever has to deal with can be dramatically less than it would be otherwise, if you have an FPGA to do the repetitive operations.

Putting these functions into the FPGA also means that, while all this is happening, the CPU can be talking to the outside world, processing commands, talking on a serial bus, updating statistics or whatever.

I've also used FPGAs to implement interfaces that are uncommon, or perhaps not available in sufficient quantity in an off-the-shelf CPU. Need to build an interface card with 32 serial ports, all of which are active simultaneously? No problem: write one in VHDL, instantiate it 32 times in your FPGA, and use a high speed interface between the FPGA and your CPU.
 
The following users thanked this post: sanwal209

Offline sanwal209Topic starter

  • Regular Contributor
  • *
  • Posts: 114
Re: FPGA and Processor Combination
« Reply #6 on: February 01, 2017, 08:37:39 pm »
Thanks guys. I got the idea. I will study fpga and its programming first and then will move towards combination of MPU and FPGA. If you can refer to any documentation to kick start learning fpga that would be great.

Thanks again
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 30436
  • Country: nl
    • NCT Developments
Re: FPGA and Processor Combination
« Reply #7 on: February 01, 2017, 08:48:12 pm »
Don't write off softcores yet. If -for example- you have memory connected to an FPGA a softcore has much better (faster) access to this memory than from an external MCU which may rely on a UART or SPI interface. Modern FPGAs like Spartan 6 have plenty of resources to run a 32 bit softcore like the LM32 from Lattice.
« Last Edit: February 01, 2017, 08:58:26 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 23122
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: FPGA and Processor Combination
« Reply #8 on: February 01, 2017, 08:56:59 pm »
FPGAs excel w.r.t. low latency, predictable latency, many simultaneous predictable simple computations.

Processors excel w.r.t. complex conditional serial processing and computations, with longer latency, and unpredictable latency.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21608
  • Country: us
Re: FPGA and Processor Combination
« Reply #9 on: February 01, 2017, 11:38:18 pm »
Nobody is suggesting to write off soft cores, we are only saying that in some cases it makes sense to have a separate CPU, it just depends on what you're trying to do. FPGAs are really good at parallelism, and reconfigurability. If your processor needs are relatively simple then using a softcore will give you maximum flexibility, I mean you are then free to modify the CPU any way you choose by simply changing some code. One has to look at it on a case by case basis.

As far as learning about FPGAs, I got started with a free book called "Free Range VHDL" and found it to be an excellent tutorial. I also learned a lot by looking at existing projects out there, and after the basic stuff I started connecting together blocks of code others had written using my own glue logic code to make new things.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->