UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor richiechen
Visitor
12,086 Views
Registered: ‎05-12-2013

communication between ARM core and FPGA

Dear Friends

 

I am a newbie on FPGA programming. It would be definitely appreciated if you could give me some advices.

 

I would like to use ARM to trigger my I2C module. I2C module is implemented with VHDL in FPGA block.

It means that when ARM load a command into the registers of I2C module, I2C module will send the data into I2C devices and read back.

 

Here comes my questions:

1. How could ARM ask I2C(in FPGA) to do a designed operation? Is it achieved by ARM setting registers in FPGA?

2. If so, how to set the registers in FPGA by ARM? Could I use AXI? If AXI should be used, there are many AXI IPs, so which one should be used?

3. Upon the FPGA registers received the bytes from ARM, how could the I2C FPGA know that "new data has arrived, so I should start my FSM"?

 

Sorry my questions are too basic. It would be great if you could also give me some material to start with.

 

Thank you very much.

 

Best regards

Richie CHEN

0 Kudos
19 Replies
Scholar austin
Scholar
12,074 Views
Registered: ‎02-27-2008

Re: communication between ARM core and FPGA

How about,

 

You tell us what FPGA device you are thinking of using?  Is it Zynq, which has both a built in ARM processor system, and also has I2C peripherals?  If so, you don't need to write any VHDL.  Only program in c.

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Visitor richiechen
Visitor
12,060 Views
Registered: ‎05-12-2013

Re: communication between ARM core and FPGA

Dear Mr. Austin

 

Thanks for your reply. Yes we are using Zynq. However, we have decided to write a I2C in VHDL. It means that ARM needs to communicate with the I2C VHDL block. 

 

Could you please inform me the way to communicate between VHDL COMPONENT and ARM? 

Thank you very much.

 

Best regards

Richie CHEN

0 Kudos
Scholar austin
Scholar
12,051 Views
Registered: ‎02-27-2008

Re: communication between ARM core and FPGA

Study the demo programs that come with the kit.

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Visitor richiechen
Visitor
12,045 Views
Registered: ‎05-12-2013

Re: communication between ARM core and FPGA

Could you please explain more?

 I have not got the demo kit yet. But we would like to develop a bit first.

 

Is there a web address for the demo?

 

Thank you very much.

0 Kudos
Scholar austin
Scholar
12,043 Views
Registered: ‎02-27-2008

Re: communication between ARM core and FPGA

http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-G.htm

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Visitor richiechen
Visitor
12,014 Views
Registered: ‎05-12-2013

Re: communication between ARM core and FPGA

Hi Austin

 

I did not find any demo on the website

Could you please illustrate more?

 

Regards

Richie 

0 Kudos
Scholar austin
Scholar
12,010 Views
Registered: ‎02-27-2008

Re: communication between ARM core and FPGA

http://www.wiki.xilinx.com/Zynq+Base+TRD+14.1

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Visitor sumit8915
Visitor
11,555 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Hi Richie,

  

   I am also working on same kind of application.

   If you have done with the implementation of  your mentioned application, please tell me the solution for the same.

 

Brief description of my application is: 

I want to interface a small DAC circuit through pmod connectors of the zed board.
the data bus and the control signals of the DAC are wired with the pmod connectors
i am using planahead tool to create my project.
i want to write the a small state machine for controlling the DAC on my PL side of the ZYNQ.
for that i want to create some control registers and data register inside the PL side of the Zynq which i will be accessing from the ARM side.
Please help me how i can proceed for the Same.

 

Thanks

Sumit Sharma

 

 

0 Kudos
Visitor sumit8915
Visitor
11,543 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Any Other friend Who can answer the above post Please. ?

 

 

0 Kudos
Teacher muzaffer
Teacher
10,161 Views
Registered: ‎03-31-2012

Re: communication between ARM core and FPGA

What you need to do is to create an axi4 lite slave peripheral for your device which implements the dac interface and exposes a register interface which then you connect to PS AXI GP port.
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Visitor sumit8915
Visitor
10,154 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Hi Muzaffer,

Thanks for your quick reply .

 

i am using dac7728 IC from TI. and i am interfacing that with the Pmod connectors. 

I have written a state machine in a seperate ise project for controlling the DAC7728 .

but how do i create the AXI4 lite slave peripheral for dac in the XPS.

Please send me some screen shots for step by step procedure or send me a link for the same.

 

Thanks friend

Sumit Sharma

 

 

0 Kudos
Teacher muzaffer
Teacher
10,152 Views
Registered: ‎03-31-2012

Re: communication between ARM core and FPGA

Hardware | Create or Import Peripheral | Create templates | enter name | select axi4-lite in the next page. | finish creating the peripheral.

then insert your own code to the peripheral source files.
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Visitor sumit8915
Visitor
10,144 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Thanks Friend, i will try to do this way.

0 Kudos
Visitor sumit8915
Visitor
10,137 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Hi Muzaffer,

 

    I have create the peripheral in the EDK and imported in my design. iam able to open the ise project file which is created during project creation. after that i have added my code in the user_logic.v file .

But in my code i am assigning some signals to the FPGA I/O pins which i have to give to the pmod connectors of the zed board. During Bitstream generation im getting the error of not getting the pins as Constraint not found . 

 

Could you please tell me how do i interface my user logic code again with the main .v file for assigning the signals to the FPGA I/O pins.

 

Thanks and Regards

Sumit Sharma

0 Kudos
Teacher muzaffer
Teacher
10,130 Views
Registered: ‎03-31-2012

Re: communication between ARM core and FPGA

I am afraid I am not clear on what you issue is. Could you attach your project which shows the error to duplicate ?
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
0 Kudos
Visitor sumit8915
Visitor
10,129 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Hello,

 

 I am attching the two screenshots and my ISE project file which has been generated after ip creation.

 Also i have editted the user_logic. v file of the project for my own state machine.

 

 Please find the attachments.

 

Thanks and Regards

Sumit Sharma

 

 

 

 

PROJECT_LOG.jpg
USER_LOIC FILE ERROR DURING BITSTREAM.jpg
0 Kudos
Teacher muzaffer
Teacher
10,104 Views
Registered: ‎03-31-2012

Re: communication between ARM core and FPGA

You need to add the ports in the dac ucf to your hdl design too. Add them to the dac7728 module and propagate them down to the level where they are used/driven.
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Visitor sumit8915
Visitor
10,101 Views
Registered: ‎11-21-2013

Re: communication between ARM core and FPGA

Thanks for the reply.

 

I will try this way... !!!

0 Kudos
Explorer
Explorer
9,809 Views
Registered: ‎03-22-2014

Re: communication between ARM core and FPGA

hello,

i readed your post, and i work on Zedboard ( Zynq-7000 based on 2 ARM ( Cortx-A9 ) processor 

 

maybe it's similar to your question:

 

i have a question, can i make a simulaion on XPS or Vivado (  because, i haven't the board for this moment ?

thank you 

My blog : www.xilinx-video.blogspot.com
Tags (4)
0 Kudos