Author Topic: Interfacing FPGA and Microcontroller  (Read 1686 times)

0 Members and 1 Guest are viewing this topic.

Offline samakit95Topic starter

  • Newbie
  • Posts: 1
  • Country: in
Interfacing FPGA and Microcontroller
« on: October 24, 2017, 09:36:10 am »
Hello,

I want to send my data from FPGA to micro-controller. Data is 32 bit and I want to use the 8-bit microcontroller. Can I use UART as I do not have SPI interface in my microcontroller?

Thanks.
 

Offline daqq

  • Super Contributor
  • ***
  • Posts: 2301
  • Country: sk
    • My site
Re: Interfacing FPGA and Microcontroller
« Reply #1 on: October 24, 2017, 09:43:12 am »
You can use any interface you want to communicate between an MCU and an FPGA.
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 
The following users thanked this post: Someone

Offline spudboy488

  • Regular Contributor
  • *
  • Posts: 136
Re: Interfacing FPGA and Microcontroller
« Reply #2 on: October 24, 2017, 11:27:06 am »
If you have the pins on the micro, you can use an 8-bit port (most should have one). If not, serial would be another option. Since you're designing, you can do whatever is the easiest and most efficient.
 

Offline hans

  • Super Contributor
  • ***
  • Posts: 1626
  • Country: nl
Re: Interfacing FPGA and Microcontroller
« Reply #3 on: October 24, 2017, 12:49:12 pm »
Without further specifying what you will send (size, frequency, latency requirements) you will get a wide range of answers.

In FPGA you can pretty much write an implementation for SPI, UART, parallel, etc. given that you're proficient enough with the protocol. You may want to choose to have the microcontroller firmware the easiest, i.e. make that a SPI master, or use an UART.

But really it requires much more detail to give any non-generalized advice.
 
The following users thanked this post: Someone

Offline asmi

  • Super Contributor
  • ***
  • Posts: 2728
  • Country: ca
Re: Interfacing FPGA and Microcontroller
« Reply #4 on: October 24, 2017, 02:25:59 pm »
It might be easier to just get rid of discrete MCU altogether and instead implement a softcore inside FPGA. Given that MCU is 8-bit, there should be no problems with performance.

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 8973
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Interfacing FPGA and Microcontroller
« Reply #5 on: October 24, 2017, 02:43:12 pm »
Does the UART support synchronous mode? That would make things a lot simpler since it would then basically be SPI.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf